Re: adding a List of JTextField to the GUI
- From: Mark Space <markspace@xxxxxxxxxxxxxx>
- Date: Sun, 27 Jul 2008 13:32:40 -0700
thufir wrote:
On Sun, 27 Jul 2008 00:21:17 -0700, Mark Space wrote:
Or I could be totally wrong. GroupLayout appears to work very
differently from most layout managers. You don't add components to the
container with add(). You use methods in the GroupLayout to add
components and position them.
Better read up:
<http://java.sun.com/docs/books/tutorial/uiswing/layout/group.html>
Thanks. I'm going to ask in the netbeans mailing list about how to do this with matisse if I don't get it working.
I use Matisse, and I think this is more of a design issue than a Matisse issue.
What you should do, imho, is construct the object as best you can in the GUI builder. Then edit the constructor, not initComponents();
public class AppFrame extends javax.swing.JFrame {
/** Creates new form AppFrame */
public AppFrame() {
initComponents();
// <-- Add your code here
}
}
That way, the GUI has been built, and you don't have to worry about whether everything is initialized, because everything is initialized by initComponents already.
It's just a matter of learning where the best spot to edit the Matisse generated code.
.
- Follow-Ups:
- Re: adding a List of JTextField to the GUI
- From: thufir
- Re: adding a List of JTextField to the GUI
- References:
- adding a List of JTextField to the GUI
- From: thufir
- Re: adding a List of JTextField to the GUI
- From: Mark Space
- Re: adding a List of JTextField to the GUI
- From: Mark Space
- Re: adding a List of JTextField to the GUI
- From: thufir
- adding a List of JTextField to the GUI
- Prev by Date: Re: [General]acces of members of subclass
- Next by Date: Re: [NetBeans]changing menuitems
- Previous by thread: Re: adding a List of JTextField to the GUI
- Next by thread: Re: adding a List of JTextField to the GUI
- Index(es):
Relevant Pages
|