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

Username:   Password: 
 RegisterRegister   
 Init Position of Applet
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xHoly-Divinity




PostPosted: Mon Feb 12, 2007 5:34 pm   Post subject: Init Position of Applet

I was wondering if there was any way of setting the position of an applet when the program executes. The default is in the top right corner, so if you make the applet slightly bigger, it will go off screen. Then you have to drag it into the middle, readjust, etc. I was wondering if there is a command that sets this for you. Thanks
Sponsor
Sponsor
Sponsor
sponsor
HellblazerX




PostPosted: Mon Feb 12, 2007 8:53 pm   Post subject: RE:Init Position of Applet

Well, applets are usually run off of a web page, so you'd have to set the position and size of the applet when you add it into your html code. If you're using an IDE that runs applets for you, you would have to set the parameters yourself when you run it. I know in RTP you set the parameters with the command Run with Args... I don't use any other IDE other than JCreator, and that can't run applets (although I think the newer version can), so if you're using another IDE, I can't really help you.
ericfourfour




PostPosted: Mon Feb 12, 2007 10:58 pm   Post subject: RE:Init Position of Applet

HellblazerX is right. You have to change the HTML. If you use an IDE it will do it all for you.

Also, every IDE can generate the HTML to run an applet. It would be pretty worthless if an IDE didn't since their purpose is to improve production time.
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  [ 3 Posts ]
Jump to:   


Style:  
Search: