-
December 4th, 2010, 12:20 PM
#1
auto hide a panel or tool bar ( please any help)
hello all ..
I'm working with a java desktop application as a project demanded from my super visor in the university, actually i faced a problem, i really couldn't deal with it
my project contains many Panels, one of them will be considered as a fixed one
i mean in the right space of my frame [ the change of panels (depends on my program) will be happened ] , but the left panel will be fixed when the panels in the right space changing..
see this picture may explain more :
http://dl.dropbox.com/u/1214581/panels.png
my question is :
can you tell me please how can i make the ( fixed panel ) as auto hide panel ?
i mean how can i make it hidden when the mouse come to its area then it will show up ?
sorry if I'm bothering in somehow .. and i really wish to have an answer
huge thanks in advance
-
December 4th, 2010, 02:41 PM
#2
Re: auto hide a panel or tool bar ( please any help)
Add a mouse listener to the panel and listen for mouseEntered and mouseExited events. When you receive one change the visible state of the panel.
The only problem you may have is depending on the layout manager you are using you may find that when the panel is not visible the neighbouring area is resized to cover where the panel was.
-
December 5th, 2010, 11:21 AM
#3
Re: auto hide a panel or tool bar ( please any help)
can you ( please ) give a simple code describing the idea ?
.
.
thanks a lot dear for your responding
-
December 6th, 2010, 05:20 AM
#4
Re: auto hide a panel or tool bar ( please any help)
Google for "writing a MouseListener".
-
December 6th, 2010, 12:56 PM
#5
Re: auto hide a panel or tool bar ( please any help)
Thanks a lot.. i really appreciate your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|