This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes 3 Java Swing Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "3 Java Swing Questions" Watch "3 Java Swing Questions" New topic
Author

3 Java Swing Questions

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
1) If I use GridBagLayout for the JFrame, how do I expect GUI consistency with the target production machine?
I am not 100% confident that it will be deployed correctly.

2) In this snippet, how come the 2nd and 3rd label and textfield are not in the second row if I use a BorderLayout outside of the
SalesReportUpperPanel?

3) When a Panel derives from JLayeredPane, I put placeholders in the GridLayout of the Pane, However, when I replace one of these placeholders such as a JTextField,
The text field cannot gain focus, some of the buttons displayed/refreshed in a very wierd way...

Thanks



Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

Jacky Luk wrote:1) If I use GridBagLayout for the JFrame, how do I expect GUI consistency with the target production machine?
I am not 100% confident that it will be deployed correctly.

Your question is not completely clearly to me. Layout managers are used to have consistency in layouts irrespective of the target platform.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
Consider Paul's rocket mass heater.
 
subject: 3 Java Swing Questions
 
Similar Threads
how to display textfield in a gridbaglayout
Problem with GridBagLayout
Moving the scrollbar on tab to a specified field
GridBagLayout question
GridBag help