• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting part of Jpanel  RSS feed

 
narayana murthy pedapudi
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi buddies,
can anyone help me to get a part of JPanel (i have to add a part of JPanel to another Jpanel).
please le me know
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to explain what you mean by "a part of a JPanel." Do you mean one particular component inside a JPanel? You can use the getComponentCount() and getComponent(int) method to iterate through the contents of the JPanel; perhaps that's what you want.
 
narayana murthy pedapudi
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi thanks for the intrest,
i have a JPanel i am drawing a graph by using paint method in that panel,
in some particular bounds, and then i am adding that to the JFrame.
what i want is i have to get that particular area where i painted this graph.
so that i can keep that in a different panel.
can u please help in this regard.
thank u.
regards
narayana
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!