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 / June 2007

Tip: Looking for answers? Try searching our database.

JOptionPane in jre 1.6

Thread view: 
Mr. X. - 27 Jun 2007 22:24 GMT
Hello,
I have Eclipse 3.2.2 and jre 1.6 installed.

I have tried to insert new class, that use JOptionPane,
but I have written :
package javax.swing.JOptionPane and it's an unknows class in Java.
Are newer version ommited JOptionPane, and what is the alternative of
JOptionPane ?

Thanks :)
Eric Sosman - 27 Jun 2007 22:39 GMT
Mr. X. wrote On 06/27/07 17:24,:
> Hello,
> I have Eclipse 3.2.2 and jre 1.6 installed.
[quoted text clipped - 4 lines]
> Are newer version ommited JOptionPane, and what is the alternative of
> JOptionPane ?

   Use

    import javax.swing.JOptionPane;

Note "import" instead of "package".

Signature

Eric.Sosman@sun.com

IchBin - 28 Jun 2007 00:05 GMT
> Mr. X. wrote On 06/27/07 17:24,:
>> Hello,
[quoted text clipped - 11 lines]
>
> Note "import" instead of "package".

Just to let you know, since you are using Eclipse, you can automatically
let Eclipse resolve all of your imports. Just do one of the following:

 - Ctrl+Shift+O
 - Menu Source \ Organize Imports

Signature

Thanks in Advance...          http://weconsulting.org
IchBin, Philadelphia, Pa, USA http://ichbinquotations.weconsulting.org
______________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)

Roedy Green - 28 Jun 2007 15:06 GMT
On Thu, 28 Jun 2007 00:24:46 +0300, "Mr. X."
<no_spam_please@nospam_please.com> wrote, quoted or indirectly quoted
someone who said :

>I have Eclipse 3.2.2 and jre 1.6 installed.
Start with HelloWorld.  See
http://mindprod.com/jgloss/gettingstarted.html

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com


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.