|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
Alright, so I'm in a Java Programming course at my High School with an incompetent teacher who is about a chapter behind the class. So, I must ask you for help, go you!
Anyway, to the problem: I have been doing applet assignments and I hate how when I run it everything runs together and sometimes wont start a new line and just run off the end of the page. Is there any way that a new line can be started, or perhaps x,y coordinates could be added in the labels? -- Example: //random code Label lolNub = new Label("Yep, you're a nub."); Label lolNot = new Label("Haha, that's what your mama said."); public void init() { add (lolNub); add (lolNot); } //output would sort of look like this, without the space words but with actual spaces lol. Yep, you're a nub. [space space space] Hah -- So anyway, is there a way to start a new line? Or to edit the x,y coordinates of the label? Yes, I've tried changing the HTML height/width but that doesn't work either. And I've tried "\n" but I guess that only works with console applications... Thanks!!! <3 |
|
#2
|
|||
|
|||
|
Do a web search for "AWT Layout Managers". And then consider how best to layout your two labels.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > Starting new lines/manipulating labels in applets. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|