• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Combining Graphics and JSliders

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to draw a diagram in which graphic an JSliders are integrated, in order to select a special y-value to an x-value.
Bit this does not work. The JSliders appear everywhere I click and they aren't there they should be.
I think the problem is the combined usage of the methode paint() from Graphics and JComponents.
But I don't know how to manage it!
PLEASE help me oder tell me a possibility I could manage it on another way!
THANKS!!
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It sounds like a problem with the way you have overridden the paint() or paintComponent() methods... make sure that you call super.paint(g) or super.paintComponent(g) as the first line of any overridden paint() or paintComponent() method. Also, you'll need to post some of the relevant code to get specific help...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic