After SWT has successfully activated
New One JDialog
Adjust to Design view
The default view mode is BorderLayout, no matter how you drag, you can only put it in the East position
So, we adjust the view mode to absolutelayout so that we can drag the widget to whatever position we need.
found that the skin of this window is not very good-looking, the text box and buttons are right-angled rectangles
How to change the skin?
Replace Swing's own Nimbus skin
Jframe.setdefaultlookandfeeldecorated (TRUE);
Jdialog.setdefaultlookandfeeldecorated (TRUE);
Uimanager.setlookandfeel ("Javax.swing.plaf.nimbus.NimbusLookAndFeel");
Add a text box label button
Set Window Caption
Setting window size cannot be modified resizable set to False
Window effects such as:
Java online chat project use SWT to quickly make Login window, Visual window Design Change window default skin (toggle swing with several skins such as rectangular fillet)