943,708 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 594
  • Java RSS
Mar 13th, 2008
0

swing help

Expand Post »
I really need help. I have this whole program and am getting on error.
Attached Files
File Type: java Buttons.java (13.8 KB, 3 views)
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hrlygrl923 is offline Offline
6 posts
since Mar 2008
Mar 13th, 2008
0

Re: swing help

Post the code in [code] tags, the exact error, and what about it you don't understand.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,757 posts
since May 2007
Mar 13th, 2008
0

Re: swing help

I dont know how to put it in code tags thats why I attached the file
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hrlygrl923 is offline Offline
6 posts
since Mar 2008
Mar 13th, 2008
0

Re: swing help

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)
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,757 posts
since May 2007
Mar 13th, 2008
0

Re: swing help

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, 6 views)
File Type: java last_try.java (13.3 KB, 3 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hrlygrl923 is offline Offline
6 posts
since Mar 2008
Mar 13th, 2008
0

Re: swing help

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, 5 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hrlygrl923 is offline Offline
6 posts
since Mar 2008
Mar 13th, 2008
0

Re: swing help

The same as you load any JFrame.
Java Syntax (Toggle Plain Text)
  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)
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 838
Posting Genius
Ezzaral is offline Offline
6,757 posts
since May 2007
Mar 13th, 2008
0

Re: swing help

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.
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,372 posts
since Jan 2008
Mar 14th, 2008
0

Re: swing help

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?
Featured Poster
Reputation Points: 2614
Solved Threads: 687
Posting Expert
VernonDozier is offline Offline
5,372 posts
since Jan 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: using the setText() method - getting error cannot find symbol
Next Thread in Java Forum Timeline: Same instance of Applet in 2 browsers





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC