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 / November 2003

Tip: Looking for answers? Try searching our database.

Dialog with edit and button Ok

Thread view: 
Greg - 03 Nov 2003 08:51 GMT
Hi

How can I create dialog witk standard icon, edit and Ok button, such like
below?

 +-------------------------------------+
 | q  i |                                                  |
 | u c |                                                  |
 | e o |                                                  |
 | s n |              Label                            |
 | t    |              Edit                               |
 | i    |                                                   |
 | o   |                                                   |
 | n   |                                                   |
 |--------------------------------------+
 |                   ok                                   |
 +-------------------------------------+

Best regards
Signature

Greg

Andrew Thompson - 03 Nov 2003 09:05 GMT
> Hi
>
[quoted text clipped - 13 lines]
>   |                   ok                                   |
>   +-------------------------------------+

BorderLayout, put the 'question icon' in the WEST,
'ok' SOUTH, and 'Label Edit' CENTER..

HTH

--
Andrew Thompson
http://www.AThompson.info/
http://www.PhySci.org/
http://www.1point1C.org/
Thomas Fritsch - 03 Nov 2003 12:34 GMT
>Hi
>
[quoted text clipped - 16 lines]
>Best regards
>  

I think the most simple solution is:
  JOptionPane.showMessageDialog(null, new JLabel("Message"), "Title",
JOptionPane.QUESTION_MESSAGE);
Instead of the JLabel you can any Object. See docu of JOptionPane for
details.

Regards
 Thomas


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.