A
Allen
public class OptionDialog extends JDialog {
...
public Insets getInsets() {
return new Insets(28, 10, 10, 10);
}
...
}
OptionDialog dlg = new OptionDialog();
dlg.pack();
dlg.setLocationRelativeTo(adaptee);
dlg.setSize(400, 400);
dlg.setVisible(true);
When the option dialog is shown, the inset area will not be painted,
i.e. the inset area looks same as
the parent pane of the option dialog.
But if I remove the getInsets method, the inset area will be painted.
Unfortunately, it is too small for me.
Pls help me.
...
public Insets getInsets() {
return new Insets(28, 10, 10, 10);
}
...
}
OptionDialog dlg = new OptionDialog();
dlg.pack();
dlg.setLocationRelativeTo(adaptee);
dlg.setSize(400, 400);
dlg.setVisible(true);
When the option dialog is shown, the inset area will not be painted,
i.e. the inset area looks same as
the parent pane of the option dialog.
But if I remove the getInsets method, the inset area will be painted.
Unfortunately, it is too small for me.
Pls help me.