Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

Sponsored Links

Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs

Speed up your Swing GUI construction with better building blocks

Use two helper classes to reduce dialog development time

  • Print
  • Feedback

Page 6 of 8

    // Create a data entry panel

StandardDialog dialog = new StandardDialog( (Frame)null, "Customer Details");
dialog.setContentPane(panel);
dialog.pack();
dialog.show();
if(!dialog.hasUserCancelled()) { // Process the data in the panel }


An example of using StandardDialog by subclassing is shown in the following code fragment:

  • Print
  • Feedback

Resources