Download - Java swing tips

Transcript
Page 1: Java swing tips

Java Swing tips

[email protected]

Page 2: Java swing tips

Don't use Flow Layout for complex GUI

Page 3: Java swing tips

Use Border Layout, Grid Bag Layout for complex GUI.

Page 4: Java swing tips

Need to align center, use Flow Layout.

Page 5: Java swing tips

Don't calculate and set preferredSize property by hand.

Page 6: Java swing tips

Don't mix business logic with presentation Don’t Do this, instead:

Page 7: Java swing tips

MVC is your friend.


Top Related