File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

3 Java Swing Questions

 
Jacky Luk
Ranch Hand
Posts: 634
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic