Re: adding a List of JTextField to the GUI



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.
.



Relevant Pages

  • Re: Has anyone compared Eclipse 3.1(.X) and NetBeans 5.0 (Beta X)?
    ... I love Eclipse(3.2) and use it but I do think that the new GUI builder in Netbeans 1.5 Beta, called 'Matisse', is nicer than the current VE in Eclipse. ...
    (comp.lang.java.programmer)
  • Re: Common Lisp (or LispWorks) Win32 GUI framework?
    ... GUI builder does not matter much: just say them it exists and they'll ... mentioned Matisse - Matisse is very ... So if the CAPI GUI builder generates sensible code and lets you ... The problem is selling mgmt. ...
    (comp.lang.lisp)
  • Re: Common Lisp (or LispWorks) Win32 GUI framework?
    ... I would cross "GUI Builder" off the requirements list. ... limited experience) is likely to think a "GUI builder" is a great ... mentioned Matisse - Matisse is very ... So if the CAPI GUI builder generates sensible code and lets you ...
    (comp.lang.lisp)
  • Re: Whats NetBeans written in?
    ... David Segall wrote: emits will not include the text required for me to continue using ... Matisse. ... by a GUI builder will prevent other users from using the GUI builder ...
    (comp.lang.java.programmer)