Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Layout managers and they blend?  RSS feed

Jon Camilleri
Ranch Hand
Posts: 664
Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know of any project (preferably open source) that uses GroupLayout, or GridBagLayout so I can go through the source code?

Are the following Layout Managers used? So far I'm fine with using NetBeans to draw desktop and other applications, however, I'm also
wondering whether this would affect my coding since I'm planning to move towards creating layouts that are good enough to be hosted on the cloud, rather than on the desktop.

a. BorderLayout
b. BoxLayout
c. CardLayout
d. FlowLayout
e. GridBagLayout
f. GridLayout
g. GroupLayout
h. SpringLayout

I have also noted that LayoutManager and LayoutManager2 (interfaces) are implemented by other Layout managers, are these other Layout Managers as well?
When is it recommended that they are used?

i. javax.swing.plaf.basic.BasicComboBoxUI.ComboBoxLayoutManager
j. BasicInternalFrameTitlePane.TitlePaneLayout.html
k. BasicInternalFrameUI.InternalFrameLayout.html
l. BasicOptionPaneUI.ButtonAreaLayout.html
m. JRootPane.RootLayout.html
n. ScrollPaneLayout.html
o. ViewportLayout.html
p. BasicSplitPaneUI.BasicHorizontalLayoutManager.html and BasicSplitPaneUI.BasicVerticalLayoutManager.html
q. DefaultMenuLayout
r. OverlayLayout

I think LayoutManager and LayoutManager2, should be grouped into a single interface, just for the sake of neatness anyway,
how come nobody bothers with this trivial issue so far?

I am under the impression that creating JNLP
gives the advantage of utilizing client-side processing which is efficient when you can design an application into different layers of logic (e.g. database, business logic, presentation logic).

Why do you think it is not that popular given the advantages? Or am I under the impression that it is underutilized or unpopular?

Are there any known technical issues? Are there any APIs that are considered better? Why? Why not?

"First, a user may choose a larger font for button labels and other
dialog text. If you try this out for yourself in Windows, you will find that many applica-
tions deal with this exceedingly poorly. The buttons do not grow, and the larger font is
simply crammed into the same space as before. The same problem can occur when the
strings in an application are translated to a foreign language. For example, the German
word for “Cancel” is “Abbrechen.” If a button has been designed with just enough room
for the string “Cancel”, then the German version will look broken, with a clipped command string."

Core Java Vol I (8th Ed) P. 425 (439)

Can the layouts be adjusted to programmatically allow for the automatic resizing, when, looking to implement internationalization features within
web and desktop applications? Would you have a code snippet?

Related links
1. Article about Java Web Start
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!