Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2004

Tip: Looking for answers? Try searching our database.

Link Button component ?

Thread view: 
Abs - 23 Aug 2004 10:37 GMT
 Hi!

Is there any Swing component similar to the link buttons in the left
sidepanel of Windows XP explorer (the task panel) ?

thanks in advance
Andrew Thompson - 23 Aug 2004 10:54 GMT
> ..the link buttons in the left
> sidepanel of Windows XP explorer (the task panel) ?

Mine doesn't.  Got a screenshot?

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Abs - 23 Aug 2004 12:46 GMT
>>..the link buttons in the left
>>sidepanel of Windows XP explorer (the task panel) ?
>
> Mine doesn't.  Got a screenshot?

Which version of XP do you have ? I've found a screenshot in google, look:

http://www.modemhelp.net/screenshots/Windows_XP/My_Computer/Documents--Screenshot.jpg

regards
Andrew Thompson - 23 Aug 2004 12:57 GMT
> Which version of XP do you have ? I've found a screenshot in google, look:

One in which I configured it to take the 'Classic'
look and various other very un-XP like aspects..

> http://www.modemhelp.net/screenshots/Windows_XP/My_Computer/Documents--Screenshot.jpg

Aha!  I remember that now..

So you click the link/button and it opens the
functionality in the right pane?

I don't think there is any specific Java component that
fulfils that exact funcionality, but it should not be
hard to roll something that does the job..

Perhaps JLabels with an ActionListener attached,
once you have the event you can do what you like
with the information (open documents, or more
action labels  in the right pane, show sytstem
information in a dialog..)

Is that on the right track, or is there some subtlety
to it that I missed?  (I did not leave them little
'buttons' up very long..)

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Abs - 23 Aug 2004 13:32 GMT
> Aha!  I remember that now..
>
[quoted text clipped - 14 lines]
> to it that I missed?  (I did not leave them little
> 'buttons' up very long..)

There is a hover effect when you move the mouse over the link, like in
any internet browser.
Andrew Thompson - 23 Aug 2004 13:52 GMT
..
>> So you click the link/button and it opens the
>> functionality in the right pane?
..
> There is a hover effect when you move the mouse over the link, like in
> any internet browser.

I think Morten covered that, unless you
were also thinking of a 'tool tip'?

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology

Morten Alver - 23 Aug 2004 13:38 GMT
> Perhaps JLabels with an ActionListener attached,
> once you have the event you can do what you like
> with the information (open documents, or more
> action labels  in the right pane, show sytstem
> information in a dialog..)

You can also add a mouse listener to make it change text colour whenever
the mouse enters or leaves the component (mouseEntered and mouseExited),
to make the link look "alive".

--
Morten


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.