wood burning stoves 2.0*
The moose likes Applets and the fly likes positioning of components w/o using layout managers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "positioning of components w/o using layout managers" Watch "positioning of components w/o using layout managers" New topic
Author

positioning of components w/o using layout managers

smyle khanna
Ranch Hand

Joined: Jan 14, 2004
Posts: 54
in my program i am not using layout managers n settin the layout to null n using setBounds method 2 position the components but when i run the applet the applet is totally blank n no components can be seen,i used the insets method also with no gain
plz help me out
thanx in advance
smyle
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Since StartupApplet2 implements ActionListener it is an ActionListener. Therefore you can use this (ie, StartupApplet2) as the listener in xxxButton.addActionListener(this);

Layout managers are easy to learn to use and much more fun than absolute positoning/null layout managers. Here's a simple suggestion -

[ January 16, 2004: Message edited by: Craig Wood ]
wayne hitchcock
Greenhorn

Joined: Dec 22, 2003
Posts: 8
You haven't set the size & location of panel.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: positioning of components w/o using layout managers
 
Similar Threads
Problem with closing n reloading an applet
keylistener in a custom component
problem in adding the panel to an applet
How to insert date values to database using java swings
GridBag Problem (Replacing Component)