Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Display Graphics2D Component on JInternalFrame  RSS feed

 
Prakhar Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi !!

I am creating a linear graph by using Graphics 2D components and want to display over JInternalFrame. How can I achieve this?

regards,
Prakher
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would draw your graph in the paintComponent method override of a JPanel or JComponent and then add this JPanel or JComponent into the conentPane of your JInternalFrame. It's no different than if you were drawing in a JFrame or JApplet. To understand this better, I suggest that you study the graphics tutorials on the Sun Tutorial site.

Originally posted by Prak$ Singh:
I am creating a linear graph by using Graphics 2D components and want to display over JInternalFrame. How can I achieve this?

[ December 05, 2008: Message edited by: pete stein ]
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Prak$ Singh" welcome to JavaRanch

I am afraid I have had to send you a private message about an internal administrative matter, which you will have to take note of.

CR
 
Prakhar Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okey, I am sorry
I updated my profile
 
Prakhar Singhal
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your help Mr. Pete Stein
 
Campbell Ritchie
Sheriff
Posts: 53720
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Prakhar Singhal:
Okey, I am sorry
I updated my profile


Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!