![]() |
IOBit Software
|
|
|
||||||
| Programming Place to discuss programming including HTML, Java, C++, MySQL and others. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
I have a friend taking an introductory Java class. She is having a problem and asked me for help (I have somehow become a computer expert to my friends because I can do a bit more than hit the power switch and hope nothing goes wrong). I fixed a few minor bugs but this is a bit beyond my scope. If anyone reading this could point out a good tutorial or other help, I would appreciate this. I have done many searches and looked through the textbook for something that might help, but I'm coming up blank.
: :
__________________
The most dangerous man in the world is the one with nothing to lose. Last edited by Just Playin; 10-20-07 at 16:33.. Reason: add source code for program |
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
So she wants to display text in the GUI? There are two different ways to do it. One way is to use a JLabel for each line of text and the other is to use the drawString method. I believe drawString is mostly used in a paint method, and JLabel may be better suited to how it looks this needs to be displayed. Here is a link about drawString, and here is a place to search and find out about methods and classes available in Java. If they are not using Java 1.5, change the 1.5.0 in the last link to 1.4.2 and you'll have access to everything used in that version.
I hope this helps in getting them started. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Output to a Java Panel + Java button | trp | Programming | 0 | 04-23-07 13:19 |
| Command line in XP Home | stu247 | Software | 2 | 04-03-06 14:22 |
| AD-Aware Command Line | moe m | Malware Removal | 3 | 07-12-04 06:57 |
| Command Line DVD Player | chmx44l | Software | 0 | 01-23-04 07:24 |
| Command line lookup | goldfish | Software | 2 | 04-01-03 11:56 |