
-----------------------------------
BlAcK TuRtLe
Sat Jan 10, 2004 7:04 pm

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??

-----------------------------------
santabruzer
Sat Jan 10, 2004 7:25 pm


-----------------------------------
directly from help:
 setscreen ( "graphics:400;300" )    % Change window to 400x300
....
enjoy

-----------------------------------
Andy
Sat Jan 10, 2004 8:14 pm


-----------------------------------
uhhhh wtf? isnt that turing?

-----------------------------------
BlAcK TuRtLe
Sat Jan 10, 2004 8:21 pm


-----------------------------------
umm ... din't work. :(

-----------------------------------
Andy
Sat Jan 10, 2004 8:27 pm


-----------------------------------
of course not thats turing

-----------------------------------
BlAcK TuRtLe
Sat Jan 10, 2004 8:38 pm


-----------------------------------
Any idea how to set the screen size in JAVA!!!

-----------------------------------
Andy
Sat Jan 10, 2004 9:17 pm


-----------------------------------
pm the java mod

-----------------------------------
Dan
Sat Jan 10, 2004 10:07 pm


-----------------------------------
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.

-----------------------------------
rizzix
Sat Jan 10, 2004 10:47 pm


-----------------------------------
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 [url=http://www.compsci.ca/v2/viewtopic.php?t=1975][Tutorial] SWING -- The Basics

-----------------------------------
Dan
Sat Jan 10, 2004 11:13 pm


-----------------------------------
thats why you the java mod rizzix  :P
