Results 1 to 9 of 9
Thread: Help me to solve problem
- 11-12-2008, 08:00 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 2
- Rep Power
- 0
- 11-12-2008, 04:37 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What string() method are you talking about? Can you explain your question more clearly.
- 01-22-2009, 10:29 AM #3
Member
- Join Date
- Jan 2009
- Posts
- 3
- Rep Power
- 0
help me to display messages
hi......
can you help me to display more than one messages or statements in JOptionPane which is inside of a loop
example.
for(int index=0;index<5;index++){
int num=1+index;
JOptionPane.showMessageDialog(" "+num);
}
how could i display the 1 2 3 4 in one JOptionPane window of frame?
in my could the said numbers 1 2 3 4 will display after one another and after clicking the OK
- 01-23-2009, 04:11 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Since showMessageDialog() didn't return anything on user event, better to use showConfirmDialog(). Look at the following code segment.
Java Code:import javax.swing.JOptionPane; /** * * @author Eranga Thennakoon */ public class MultipleJOptions { /** * @param args the command line arguments */ public static void main(String[] args) { int response = 0; int val = 0; while(response == 0) { response = JOptionPane.showConfirmDialog(null, ++val, "Message" , JOptionPane.OK_CANCEL_OPTION); } } }
- 01-23-2009, 08:36 AM #5
Member
- Join Date
- Jan 2009
- Posts
- 3
- Rep Power
- 0
very much thank you!!!
thanks for the helped that you gave.........see ya!
- 01-23-2009, 09:40 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you have solve the problem please mark the thread solved.
- 01-23-2009, 01:07 PM #7
can he?
He's not the OP.... can he mark the thread as solved?
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 01-23-2009, 03:08 PM #8
Member
- Join Date
- Jan 2009
- Posts
- 6
- Rep Power
- 0
see the links
see the links ya..or goolge search lik this....
how to get the code for string() method in java in google.co.in
- 01-24-2009, 06:29 PM #9
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
There is no such thing as string() method in Java, as far as I know. That's why I'm confusing about thread starters' question.
Similar Threads
-
Please solve the problem related to PDf reader
By kavithaprabhaker in forum New To JavaReplies: 5Last Post: 11-23-2011, 10:08 AM -
JList and records, what to do to solve the problem
By willemjav in forum Java AppletsReplies: 10Last Post: 06-11-2008, 02:28 PM -
how to solve transformer exception
By java_arc in forum Advanced JavaReplies: 1Last Post: 04-19-2008, 12:46 PM -
Help mi solve my error
By Deon in forum New To JavaReplies: 3Last Post: 01-11-2008, 05:26 AM -
Cannot solve the coding problem of my assignment
By elimmom in forum New To JavaReplies: 3Last Post: 08-13-2007, 11:33 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks