Results 1 to 4 of 4
- 03-05-2009, 09:41 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
- 03-05-2009, 09:36 PM #2
setBounds is a method, not a constructor.
java.awt.Toolkit#getScreenSize / getScreenResolution
db
- 03-06-2009, 12:09 PM #3
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
I know it is a method. I am asking how am I supposed to know the pixel values to pass into the setbound(x,y,width,height) constructor?
- 03-06-2009, 12:12 PM #4
Can't tell from the way you ask that, but maybe you need to go through this:
Lesson: Laying Out Components Within a Container (The Java™ Tutorials > Creating a GUI with JFC/Swing)
db
edit And if you KNOW it's a method, why do you keep on misusing the word CONSTRUCTOR?
Similar Threads
-
Get Image Height and Width
By neeraj.singh in forum AWT / SwingReplies: 10Last Post: 02-18-2009, 01:09 PM -
Java Syntax for making 2 divs same height dynamically.
By jatrant in forum New To JavaReplies: 4Last Post: 06-25-2008, 08:09 PM -
Problem here guys: Set location or setBounds
By themburu in forum New To JavaReplies: 3Last Post: 06-03-2008, 07:19 PM -
Calling constructor of parent class from a constructor
By Java Tip in forum Java TipReplies: 0Last Post: 12-19-2007, 09:10 AM -
dynamising the height of a JPopupMenu
By iimasd in forum AWT / SwingReplies: 6Last Post: 11-21-2007, 10:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks