i m trying to add Sliding Panel, it works for me, but i have few problems in that:
when i am hovering over frame, it showing me the sliding panel, and when i am hovering out to the frame it disappears, but when i am hovering over my sliding panel, my sliding panel blinking and sometimes gets disappears.
the second problem is i want it to be transparent, and i used setOpaque(false), but it's not working.
the third problem is i want when i hover over frame, my sliding panel should appear with some effects, (like the SlideToggle effect of jQuery, SlideToggle).
how can i do this??
here is my code:
> my sliding panel blinking and sometimes gets disappears.
you've added the listener to the panel.
you've added 4 sliders to the panel.
there are borders/gaps between each slider.
as the pointer enters the space of a slider, it 'exits' the panel,
as the pointer moves around, it might leave a slider and 're-enter' the panel
> i want it to be transparent, and i used setOpaque(false), but it's not working.
can't see any setOpaque(false) in your code. if you want that whole area transparent,
you'd have to make the sliders transparent, and they could have a number of
components in their makeup, also needing to be transparent.
> my sliding panel should appear with some effects, (like the SlideToggle effect of jQuery, SlideToggle).
but i want borders in all the slider, and how do i remove the gaps?
transparency is working now..
but still blinking, and they gets disappear mainly when i m clicking on the slider and sliding it.
here is what i am doing now:
Joined: Jun 09, 2003
here's one way to fix it, unless 'panelSlider' is going to be a move-able panel
note the indicated line in paintComponent, if 'imageicon' is null, the program will crash,
so do not have it like this, the fix is easy, think about it