Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

A alert while compiling the java

  Asked By: Ayden    Date: Aug 14    Category: Java    Views: 623
  

I have a doubt in java . Can we display a alert message while we executing the
java . The message in the sence either frames , panel or message box .

If u clear with this mail me soon . We can share .

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Chung Tran     Answered On: Aug 14

i'll try to answer because i can't understand what you mean absolutely.
before i answer, i ask to you , what kind of java  editor you use ?
if you use notepad, it's impossible to do that.
but if you use java editor like JCreator, while we compile the program,
if there any mistake, jcreator will display  error message. if we still
force to execute the program, may be we will see the message  box about the
program's error.
that's all from me. may ny one else can explain about this ???

 
Answer #2    Answered By: Salvador Alexander     Answered On: Aug 14

This is not abt the error message  . I ll explain my doubt  clearly .

While we r executing  a java  program ;

If we wanna display  a "Hello World" message in a message box  in the

sence , wht we have to do for that ?

I knew one thing , by using frames  and Panel we can do that . But i

need a compact coding for that either that is in simple java , frames

or Panel .

 
Answer #3    Answered By: Andrew Bryant     Answered On: Aug 14

Use JOptionPane...
Usage:Refer the JDK api...

 
Didn't find what you were looking for? Find more on A alert while compiling the java Or get search suggestion and latest updates.




Tagged: