JTable
How would i go about programming in a JTable
Step 1: Form a meaningful question.Step 2: Post it in the swing forum.
hmm...
probably with...
import javax.swing.JTable;
public class SomeName{
private JTable someTable;
}
ok smart a.s.s.I actually need to be able to place objects in certain spots of the screen, not using BorderLayout, nor GridLayoutMessage was edited by: ichbinsterben
interesting, and how does the JTable fit into this ?
i dunno, people tell me i should use a JTable, i just need to be able to place objects where needed in a nice format
A Label hereAnother Label Here
Textbox here Textbox here
it needs to start from the left side
Message was edited by:
ichbinsterben
Message was edited by:
ichbinsterben
it sounds like you need the right layout manager, not necessarily a JTable. Unless the result resembles a large grid of components? Will the result look like a table?
noim prompting questionsNumber of Pieces -Final Dimenstions[Textbox Here] --[Textbox] [Textbox] [Textbox]excluding the linesunderstand?
Sounds likes a job for LayoutManagers, not JTable.
Yeah, your question is about which layout manager to use. Describe your problem over in the swing forum and it'll take camickr about 3 seconds to answer.
> Sounds likes a job for LayoutManagers, not JTable.And in either case the answer to "How do I...?" is "Come back after you read the tutorial with an answerable question."
srry it doesn't help, all my stuff scattered throughout the Frame
> srry it doesn't help, all my stuff scattered> throughout the FrameWhat layout manager are you using?
> right now GridLayoutGridLayout has the advantage that it is simple, but it makes each cell the same sizeand stretches each component to fill its cell. Perhaps you require GridBagLayout,or you need to nest layouts.
does GridBagLayout let me tell it where to go?
> does GridBagLayout let me tell it where to go?Yes, via constraints. Take the tutorial: http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
Thanks , that helped a bunch.