• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic