Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTree / Resizable question

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, guys, I have two questions about Swing
1. about JTree. how can I select one JTree node and right click to pop up a menu ? Please give me a simple example.
2. about Resizable. How can I keep the JFrame and its child component resizable when it is maximumed or resized ?
I have tried form editor of the Sun One studio. I like to use the nullLayout in the bottom-level JFrame so that I can easily drag the component, usually , JPanel to place I like. and then I use GridLayout in the child component. I found this way is easy for me. But I found I lose the Resizable. Anybody can share your experience in using Form Editor?
Thanks.
Edward
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic