• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

3 Java Swing Questions

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic