aspose file tools*
The moose likes Beginning Java and the fly likes button and displaying results question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

button and displaying results question

Meagan Malcolm
Greenhorn

Joined: Mar 12, 2009
Posts: 5
I have to write a program which allows you to enter a student name, 3 grades, click either alpha or numeric radio button, hit calculate and display results. All these must be in the same window. The problems I am having are 1) how do you display the results of the ButtonListener in another panel, is this possible? and 2) how can results be displayed as either a letter or number in the same field in another panel? I cannot even send any code because I have no idea how to write it. Any help will be appreciated.
Ryan Beckett
Ranch Hand

Joined: Feb 22, 2009
Posts: 192
I don't how to go about telling how to do the project, but yes, its possible. Have a look see:

Swing Tutorial
Eric Daly
Ranch Hand

Joined: Jul 11, 2006
Posts: 143
That shouldn't be too difficult, but it's something that requires at least a little knowledge of Swing to code it. Read the Swing tutorials posted by "Lost Mind." Maybe you can use NetBeans or something to make the window (unless it's for an assignment). Anyway this is a Swing question so it should be moved to the Swing forum.


Studying for SCJP 6
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19720
    
  20

Please Use One Thread Per Question. Let's continue here.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: button and displaying results question