Results 1 to 5 of 5
- 11-18-2007, 05:59 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
Object locations via grid coordinates HELP.
Hi all, I am new here and I use BlueJ as my complier. I am completely new to java and I have ran into a problem. I need to make a program but I am stuck at the very first step (the interface).
I have made my interface with JframeBuilder and it has 10 objects. I have told the program ROUGHLY where I want the objects to go via grid coordinates. All is fine until I try and set the form background to a jpg image. The program ignores the grid coordinates and sets all objects to the top of the form.
I can get around this by using the north, east, south, west, center method but that doesn't give me the flexibility I want. I would like to set the object location via grid coordinates like JframeBuilder has done.
My Program
The link to my program is above. I would really appreciate it if someone could take a quick look and tell me why the program ignores the grid coordinates I have made when I set the form background to a jpg.
Thanks all
- 11-18-2007, 06:34 PM #2
Set the layout manager of the JPanel to null for absolute positioning:
Java Code:panel = new JPanel(null)
- 11-18-2007, 06:50 PM #3
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
- 11-18-2007, 08:31 PM #4
I'll do what I can.
- 11-18-2007, 08:32 PM #5
Member
- Join Date
- Nov 2007
- Posts
- 3
- Rep Power
- 0
Similar Threads
-
New project VFSJFileChooser(browse local and remote locations)
By mrcheeks in forum AWT / SwingReplies: 0Last Post: 01-22-2008, 11:05 AM -
Java3D: Clicking and getting coordinates?
By seabhcan in forum Advanced JavaReplies: 0Last Post: 01-11-2008, 02:46 PM -
Arc2D.Double coordinates
By alley in forum Java 2DReplies: 2Last Post: 11-07-2007, 10:27 PM -
Help creating a changing grid
By adlb1300 in forum New To JavaReplies: 11Last Post: 10-24-2007, 01:41 PM -
Help with Grid Layout
By coco in forum AWT / SwingReplies: 1Last Post: 08-06-2007, 08:03 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks