Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JApplet

 
Dean Kiely
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a main JPanel with 5 JPanels on this 'main' jpanel i want one panel to control the rest as it is a game and i need one manager panel. I am trying to use the paintcomponent to try and draw onto each panel but i am only getting a small box appearing, what is the problem here does anyone know?
Is it possible to create a class for 3 jpanels i need to draw stuff on then create an instance of these classes and add to relevant jpanel to run the code and display the paintcomponents?
Hope this all makes sense!
Many thanks.
 
Korol Bloom
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you have some code?
, korol
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!