PDA

View Full Version : any one know java ?



p3rsian
03-05-2003, 02:28 PM
does any one here have any knowledge on java programming ?
i have a newbie question.....

skynet
03-05-2003, 04:01 PM
Post your question, I have got loads of java knowledge, even more C from which java is based

revil
03-05-2003, 05:40 PM
Originally posted by skynet
Post your question, I have got loads of java knowledge, even more C from which java is based :hmm:did you just say C is based on java?! (you better have meant C#)

/me beats the crap out of skynet.

skynet
03-05-2003, 05:44 PM
"I have got loads of java knowledge, even more C from which java is based "

"C from which java is based"
or
"java is based from C"

p3rsian
03-05-2003, 05:57 PM
ok
so im in this java class with my friend
and we dont know what we are doin !!
every one there has past experince from java
anyways we are in groups with 3 other ppl who know what they are doin ;)
but they have assigned us with the displaying the results part
now this program is a program that asks for student name and id , their mid term and final grade and displays their letter grade and all their info.
now this is the display part that they made
else if (evt.getActionCommand ().equals("Display")) { // Display button pressed
if (counterOfStudents > 0) {
for (int count = 0; count < counterOfStudents; count ++)
result = result + studentList [count].name + ": " + studentList [count].ID + "\n";
JOptionPane.showMessageDialog (null, result, "Student List", JOptionPane.INFORMATION_MESSAGE); // display pop-up message dialog box
// displayButton.setEnabled (false); // may press Display button only once
}
now this looks real cheesy. is there like a jtable or anything else we can use to make this look good ?

skynet
03-05-2003, 06:41 PM
If all you want to do is display everything pretty then consult java's api. That is about the best feature of java, their documentation is great.

check out
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

Persius
03-06-2003, 09:34 PM
yea this is p3rsian
well this is tooooooo comlicated for me
lol ... i just need to figure out how to put the code i gave u in a table.
thanks

skynet
03-07-2003, 06:35 AM
What is complicated? Just follow the SimpleTableDemo.java file and the instructions on the site. There isn't anything to it