• 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

Need to fit JTree to JPanel

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi. Maybe this is a beginner question...
How do you expand JTree so it fits to the JPanel?
I keep getting a little JPanel icon. I am using GridBagLayout/GridBagConstraints.
Thanks,
Peter
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by peter dushkin:
Hi. Maybe this is a beginner question...
How do you expand JTree so it fits to the JPanel?


I'm not sure I got your question right, but I can't imagine to fit a JTree to a JPanel.
Instead I use a JScrollpane, so the Tree has a lot of place to grow.
Do you think of resizing font (and icons)?
reply
    Bookmark Topic Watch Topic
  • New Topic