|
If I'm using a java.awt.Panel how do I disable the LayoutManager? I want to add buttons, labels, etc... but they need to be at specific locations with specific alignments between those components.
So I'd like to be able to specify it something like this...
Panel grid_display = new Panel();
//Disable layoutmanager some how
Label lat = new Label("Lat: xxxx"); Label long = new Label("Long: yyyy");
lat.setLocation(w1, h1); long.setLocation(w2, h2); grid_display.add(lat); grid_display.add(long);
Unfortunately it's ignoring my setLocation() call, and instead using the FlowLayout. Please tell me what I'm trying to do is possible, and how to do it? |