Author |
Message |
BlAcK TuRtLe
![](http://www.ffextreme.com/ct/images/gifs%20animes/magus10.gif)
|
Posted: Sat Jan 10, 2004 7:04 pm Post subject: Making Battle Ship |
|
|
For my final program i'm doing battleship and i made this topic to post all my questions.
So, here's my first question. How do u adjust the screen size of the application?? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
santabruzer
![](http://www.pureoc.d2g.com/uploaded_images/9853.jpg)
|
Posted: Sat Jan 10, 2004 7:25 pm Post subject: (No subject) |
|
|
directly from help:
setscreen ( "graphics:400;300" ) % Change window to 400x300
....
enjoy |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Sat Jan 10, 2004 8:14 pm Post subject: (No subject) |
|
|
uhhhh wtf? isnt that turing? |
|
|
|
|
![](images/spacer.gif) |
BlAcK TuRtLe
![](http://www.ffextreme.com/ct/images/gifs%20animes/magus10.gif)
|
Posted: Sat Jan 10, 2004 8:21 pm Post subject: (No subject) |
|
|
umm ... din't work. ![Sad Sad](http://compsci.ca/v3/images/smiles/icon_sad.gif) |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Sat Jan 10, 2004 8:27 pm Post subject: (No subject) |
|
|
of course not thats turing |
|
|
|
|
![](images/spacer.gif) |
BlAcK TuRtLe
![](http://www.ffextreme.com/ct/images/gifs%20animes/magus10.gif)
|
Posted: Sat Jan 10, 2004 8:38 pm Post subject: (No subject) |
|
|
Any idea how to set the screen size in JAVA!!! |
|
|
|
|
![](images/spacer.gif) |
Andy
|
Posted: Sat Jan 10, 2004 9:17 pm Post subject: (No subject) |
|
|
pm the java mod |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Sat Jan 10, 2004 10:07 pm Post subject: (No subject) |
|
|
i think it depends on how you are doing graficks, if it is an applet it can be chaged in the html to load it. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
rizzix
|
Posted: Sat Jan 10, 2004 10:47 pm Post subject: (No subject) |
|
|
All components inherit the public void setBounds(int x, int y, int width, int height); method
use it to (re)position the top left corner of the component and change the width & height as well.
or u can just use the public void setSize(Dimension d); method (which is also inherited by all components)
PS: take a look at the example in [Tutorial] SWING -- The Basics |
|
|
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Sat Jan 10, 2004 11:13 pm Post subject: (No subject) |
|
|
thats why you the java mod rizzix ![Razz Razz](http://compsci.ca/v3/images/smiles/icon_razz.gif) |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
|