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 / General / March 2007

Tip: Looking for answers? Try searching our database.

float textbox

Thread view: 
ZhichangTerry@gmail.com - 27 Mar 2007 08:30 GMT
Hi, I'm trying to get a float textbox( or text area) in my Swing
application, it should be something that comes up when i move my mouse
onto the field. Does anyone know how to do it? I've checked PopupMenu,
which displays a menu , but I cant find anything about text. Any
thoughts will be appreciated.
Andrew Thompson - 27 Mar 2007 10:05 GMT
On Mar 27, 5:30 pm, ZhichangTe...@gmail.com wrote:
> Hi, I'm trying to get a float textbox( or text area) in my Swing
> application, ..

Why?  That does not seem to follow the
'path of least surpise'.

>..it should be something that comes up when i move my mouse
> onto the field.

So will this be yet *another* app. that is
mouse dependent?  I despise those applications,
and feel for your (few, I imagine) users.

In any case, you might investigate JLayeredPane
as a way to commit this travesty on the user..
<http://java.sun.com/javase/6/docs/api/javax/swing/JLayeredPane.html>
..or perhaps a JWindow.

One thing particularly irritates me about
'mouse over pop-up' elements is that to type
in them with an unobstructed view, I have to
remove the mouse, which often causes the damn
things to disappear again,
 "Let's play peek-a-boo text entry!"
(Well, that and ever needing to reach for
the mouse in the first place.)

Personally I would prefer to see pop-up
text entry areas in a JOptionPane or JDialog,
then I have more (and more obvious) options
to 'commit changes/discard' the text area.

Andrew T.


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.