• Post Reply Bookmark Topic Watch Topic
  • New Topic

JPanel question  RSS feed

 
Brandt Charles
Ranch Hand
Posts: 57
Chrome IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When displaying graphics, is it not possible to draw them directly to the container of JFrame? All the examples I've seen in my text involve using JPanel, but I was curious. Does JPanel provide a separate container from that of JFrame?

I am quite the graphics novice, so forgive my naivete.
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a tip: If it starts with "J", post it in the Swing forum...

As for your question: don't confuse the painting with its frame. JFrame is the "frame", not the painting itself.
[ June 12, 2006: Message edited by: Jeff Albertson ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!