Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JOptionPane in jre 1.6

Reply
Thread Tools

JOptionPane in jre 1.6

 
 
Mr. X.
Guest
Posts: n/a
 
      06-27-2007
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


 
Reply With Quote
 
 
 
 
Eric Sosman
Guest
Posts: n/a
 
      06-27-2007
Mr. X. wrote On 06/27/07 17:24,:
> 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 ?


Use

import javax.swing.JOptionPane;

Note "import" instead of "package".

--

 
Reply With Quote
 
 
 
 
IchBin
Guest
Posts: n/a
 
      06-27-2007
Eric Sosman wrote:
> Mr. X. wrote On 06/27/07 17:24,:
>> 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 ?

>
> Use
>
> import javax.swing.JOptionPane;
>
> 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

--
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-)


 
Reply With Quote
 
Roedy Green
Guest
Posts: n/a
 
      06-28-2007
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Diff. the JRE INSIDE the jdk folder and JRE OUTSIDE the JDK folder? Jochen Brenzlinger Java 5 09-02-2011 08:48 PM
Is JRE from J2EE not usable to install a java browser plugin? Is separate JRE really necessary? Artur McCennon Java 0 07-22-2009 09:37 AM
Re-engineer application to run in JRE 1.4.2 against old JRE 1.1.7 Prasoon Java 1 04-13-2007 10:20 AM
JRE crash in production ... how to tell JRE is beta? nospawn Java 2 04-25-2006 11:27 AM
JOptionPane Cannot Override LookAndFeel's Font... SuperChuck Java 3 08-07-2003 03:33 PM



Advertisments