swing help

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2008
Posts: 6
Reputation: hrlygrl923 is an unknown quantity at this point 
Solved Threads: 0
hrlygrl923 hrlygrl923 is offline Offline
Newbie Poster

swing help

 
0
  #1
Mar 13th, 2008
I really need help. I have this whole program and am getting on error.
Attached Files
File Type: java Buttons.java (13.8 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,500
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: swing help

 
0
  #2
Mar 13th, 2008
Post the code in [code] tags, the exact error, and what about it you don't understand.
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 6
Reputation: hrlygrl923 is an unknown quantity at this point 
Solved Threads: 0
hrlygrl923 hrlygrl923 is offline Offline
Newbie Poster

Re: swing help

 
0
  #3
Mar 13th, 2008
I dont know how to put it in code tags thats why I attached the file
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,500
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: swing help

 
0
  #4
Mar 13th, 2008
Just put [code] before and [/code] after your code - or highlight it and click the code tag button at the top of the editor (the advaced editor, not the little quick reply one at the bottom of the thread)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 6
Reputation: hrlygrl923 is an unknown quantity at this point 
Solved Threads: 0
hrlygrl923 hrlygrl923 is offline Offline
Newbie Poster

Re: swing help

 
0
  #5
Mar 13th, 2008
How do I load a JFrame that I made in one program when I click an option in another program. If payroll is clicked in the buttons program I want the frame from the last_try program. I really need help. I am running out of time
Attached Files
File Type: java Buttons.java (1.9 KB, 3 views)
File Type: java last_try.java (13.3 KB, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 6
Reputation: hrlygrl923 is an unknown quantity at this point 
Solved Threads: 0
hrlygrl923 hrlygrl923 is offline Offline
Newbie Poster

Re: swing help

 
0
  #6
Mar 13th, 2008
Sorry wrong file


How do I load a JFrame that I made in one program when I click an option in another program. If payroll is clicked in the buttons program I want the frame from the payprogram. I really need help. I am running out of time
Attached Files
File Type: java pay.java (12.1 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,500
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 521
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: swing help

 
0
  #7
Mar 13th, 2008
The same as you load any JFrame.
  1. pay payFrame = new pay();
  2. payFrame .setSize(500,500);
  3. payFrame .setVisible(true);

(It wouldn't hurt to read Sun's recommended coding conventions document either: http://java.sun.com/docs/codeconv/ht...nvTOC.doc.html Class names should be capitalized so as not to be confused with a variable or method name)
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,833
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 503
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: swing help

 
0
  #8
Mar 13th, 2008
These are some pretty long files. Don't have time to look at them right now, but will have time later today. Consider copying and pasting them (preferably an abridged version) into a post. To use code tags, do this:


[code=JAVA]
// paste your code here
[/code]


This will highlight the JAVA syntax and give line numbers to refer to. If you can refer to specific parts of the program and what you are trying to do that is not working, that will help and you'll get more people viewing it. I will check back in later today.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,833
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 503
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: swing help

 
0
  #9
Mar 14th, 2008
I could have sworn I posted within the last half hour. Must have just hit the preview or left the page before giving the system a chance to register the new post. Okay, I just want to make sure that we're talking about Buttons.java and pay.java and that last_try.java is irrelevant to this thread. And are you still having the problem and are the files still the same?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC