Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Looking at content of JPanel  RSS feed

 
Paul Keohan
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking at a GUI display of information which I want to be able to access from my own Java classes. This is waht I see when I println() the object parent.
javax.swing.JPanel[null.contentPane,0,0,690x281,layout=javax.swing.BoxLayout,ali
gnmentX=null,alignmentY=null,border=,flags=50,maximumSize=,minimumSize=,preferre
dSize=,defaultLayout=java.awt.FlowLayout[hgap=5,vgap=5,align=center]]

The children are specific classes written by someone else. Can I get to the content somehow from what I have above? What is the significance of the 'null.contentPane' in the signature?
Thanks for any help.
Paul
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not quite sure what you mean by content. But in the Container getComponents() returns all of the components on the container. That will give you everything on the JPanel.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!