Win a copy of Practice Tests for OCP Java 17 Certification Exam (1Z0-829) this week in the OCPJP forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

my JComponent is not visible when we move scrollbar outside view port

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have designed my customized JComponent which is bubble type component.User can set it to JComponent like button then above button this bubble(which is JComponent) will appear.
Now my problem is :
User has set bubble to one button and everything is inside view port but when user is using scrollbar which is outside viewport and moving viewport then bubble is dissappeared.

For example
button is at lower left corner and bubble is displayed but when I will move scrollbar to rigth side then in this case will disappear and will visible only when I will resize window because I have used hiearchy bound listeners.

But my problem is why scrollbar events are not catched by hieachy bound listeners??
how to get scrollbar event so that i can call repaint for my bubble component.

reply asap if possible.
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic