This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

positioning of components w/o using layout managers

 
smyle khanna
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You haven't set the size & location of panel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic