Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making Battle Ship
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BlAcK TuRtLe




PostPosted: 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??
Sponsor
Sponsor
Sponsor
sponsor
santabruzer




PostPosted: Sat Jan 10, 2004 7:25 pm   Post subject: (No subject)

directly from help:
setscreen ( "graphics:400;300" ) % Change window to 400x300
....
enjoy
Andy




PostPosted: Sat Jan 10, 2004 8:14 pm   Post subject: (No subject)

uhhhh wtf? isnt that turing?
BlAcK TuRtLe




PostPosted: Sat Jan 10, 2004 8:21 pm   Post subject: (No subject)

umm ... din't work. Sad
Andy




PostPosted: Sat Jan 10, 2004 8:27 pm   Post subject: (No subject)

of course not thats turing
BlAcK TuRtLe




PostPosted: Sat Jan 10, 2004 8:38 pm   Post subject: (No subject)

Any idea how to set the screen size in JAVA!!!
Andy




PostPosted: Sat Jan 10, 2004 9:17 pm   Post subject: (No subject)

pm the java mod
Dan




PostPosted: 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!
rizzix




PostPosted: 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
Dan




PostPosted: Sat Jan 10, 2004 11:13 pm   Post subject: (No subject)

thats why you the java mod rizzix Razz
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 10 Posts ]
Jump to:   


Style:  
Search: