File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

button and displaying results question

Meagan Malcolm

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

Joined: Oct 27, 2005
Posts: 20271

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

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: button and displaying results question
It's not a secret anymore!