This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Layout managers and JNLP...do they blend? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Layout managers and JNLP...do they blend?" Watch "Layout managers and JNLP...do they blend?" New topic
Author

Layout managers and JNLP...do they blend?

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 660

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

Jon
 
 
subject: Layout managers and JNLP...do they blend?