Rich Wilson

Greenhorn
+ Follow
since Jun 30, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rich Wilson

thanks I will check it out.
19 years ago
What would be the class or location that I could find information on creating graphs in Java? I am going to try and create a bar graph to read from an app that I got working with a lot of help. Any sugestions?
19 years ago
ok I am still lost here can someone edit this example from Sun to give me a better idea of what I am doing wrong? I can make it pull the data but not fill a combobox.

19 years ago
am trying to populate a JComboBox named choices from an external file. I have the import/read portion working because if I add System.out.println(name[ i ]); to the code it will print the contents of the file on the screen. Is the code below correct to populate the box? I get an error code of "cannot find symbol" with eiter get or setText.

CODE

choices.getText(loan [ i ]);
19 years ago
I was putting the code in the wrong place in the code. I was trying to put the if statement in the listener instead of calculate() once I moved it the app worked like a charm.

I would like to say thank you for the help.
19 years ago
I figured it out by looking at it from several different angels.
19 years ago
The 0 string is null just so the box is blank when the app starts.
19 years ago
I think I have the code right but am not sure? I am trying to pass a value from a text field if the 1st string value is selected in a combo box (not 0 but 1)it works well from the menue but if I set it up and run the app the text field values are not passed. I have tried putting the commands in a new method but still the samething.

Any sugestions from the pros?
19 years ago
thank you it worked like a champ. I was trying that once before but I was not including it in the correct method.
19 years ago
Can some one tell me what I am doing wrong here? I am trying to enable a listener to select the text from the combo box so I can set the string value from
String [] Irates ={"5.35","5.5","5.75"};
String [] Nyears = {"7","15","30"};

thses strings and assign them to these variables with a loop

double aprnum = Double.parseDouble("0" + apr.getText());
double yearnum = Double.parseDouble("0" + yearsField.getText());

I have read and tried this for the past 10 hours and everytime I get it setup where it will compile and run (I think) the buttons quit working.

http://java.sun.com/docs/books/tutorial/ui...html#uneditable

19 years ago
what is the best way to size a pane with 3 rows where the top and bottom pane only have a text block or buttons but the middle pane has a scroll pane? I have the pane set up for grid layout now but all of the rows are sizing the same. Any sugestions?

Thanks for all of the help.
19 years ago
OK I found it and just about have it working. I am having two issues now and I think they are dumb problems.

1. when I compile and run I don't get the column names to print.
2. what is the correct format to pull data? I am trying to get the data fields to update into the table once I push the run button. I think I have most of it figured out but ths is just knawing at me that I can't get this working.


[ July 04, 2005: Message edited by: Rich ]
[ July 04, 2005: Message edited by: Rich ]
19 years ago
Could someone post a code example to prolerly setup a text area? I have to wirte an app to display an amortization table from a previously created application. I think the JTextArea is the way to go but am unsure if I am on the right track or not.
19 years ago
I am trying to figure out the correct way to setSize on the following:

JFormattedTextField apr = new JFormattedTextField(percentFormat);

I tried adding set.Size(100,50); and various other sizes in the add statement is this the correct way to do it or am I way off course?
19 years ago
GUI
Thank you I was hoping it was something stupid and it was. I guess it is just something that only time and experience will fix.
19 years ago