facebook

Matisse problems

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #267231 Reply

    Stanley
    Member

    MyEclipse Enterprise Workbench
    Version: 5.1.1 GA
    Build id: 20070302-5.1.1-GA
    Full Stack Install

    I am having a few problems with matisse.

    1. The code is not well formatted, see below.

    2. I create an event from the designer, it generates the code
    //GEN-FIRST:event_jButtonDeleteActionPerformed
    private void jButtonDeleteActionPerformed(java.awt.event.ActionEvent evt) {
    // TODO add your handling code here:
    }//GEN-LAST:event_jButtonDeleteActionPerformed

    I add some code and when I delete the line for TODO sometimes it messes up all the code (left aligns everything) and the generated code disappears weird. If I go back to the form in designer and then back to source it will correct itself though, after frustrating attempts to undo and having to redo code I found this out..

    3. Sometimes copy and paste doesn’t work.
    4. There is a warning not to modify the generated code, but it allows you to do so, so you can shoot yourself in the foot so to say.
    In Netbeans the matisse generated code can only be modifed from the designer, which I didn’t like at first, but if it’s not smart enough to accept simple changes then please don’t allow me to change it in source editor.

    
    layout
                    .setHorizontalGroup(layout
                            .createParallelGroup(
                                    org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                    layout
                                            .createSequentialGroup()
                                            .addContainerGap()
                                            .add(
                                                    layout
                                                            .createParallelGroup(
                                                                    org.jdesktop.layout.GroupLayout.LEADING)
                                                            .add(
                                                                    layout
                                                                            .createSequentialGroup()
                                                                            .add(
                                                                                    jScrollPane1,
                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                                                    443,
                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                                                            .addPreferredGap(
                                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                                            .add(
                                                                                    layout
                                                                                            .createParallelGroup(
                                                                                                    org.jdesktop.layout.GroupLayout.LEADING)
                                                                                            .add(
                                                                                                    jButtonDelete,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    91,
                                                                                                    Short.MAX_VALUE)
                                                                                            .add(
                                                                                                    jButtonDown,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    Short.MAX_VALUE)
                                                                                            .add(
                                                                                                    jButtonAdd,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    91,
                                                                                                    Short.MAX_VALUE)
                                                                                            .add(
                                                                                                    jButtonUp,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    91,
                                                                                                    Short.MAX_VALUE)))
                                                            .add(
                                                                    layout
                                                                            .createSequentialGroup()
                                                                            .add(
                                                                                    layout
                                                                                            .createParallelGroup(
                                                                                                    org.jdesktop.layout.GroupLayout.LEADING,
                                                                                                    false)
                                                                                            .add(
                                                                                                    jComboBoxLang,
                                                                                                    0,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    Short.MAX_VALUE)
                                                                                            .add(
                                                                                                    jLabel1,
                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                    79,
                                                                                                    Short.MAX_VALUE))
                                                                            .addPreferredGap(
                                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                                            .add(
                                                                                    layout
                                                                                            .createParallelGroup(
                                                                                                    org.jdesktop.layout.GroupLayout.LEADING)
                                                                                            .add(
                                                                                                    jLabel2,
                                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                                                                    85,
                                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                                                                            .add(
                                                                                                    jTextFieldProjectName,
                                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                                                                                    99,
                                                                                                    org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                                                                            .add(
                                                                                    10,
                                                                                    10,
                                                                                    10)
                                                                            .add(
                                                                                    layout
                                                                                            .createParallelGroup(
                                                                                                    org.jdesktop.layout.GroupLayout.LEADING)
                                                                                            .add(
                                                                                                    layout
                                                                                                            .createSequentialGroup()
                                                                                                            .add(
                                                                                                                    jButtonChoose)
                                                                                                            .addPreferredGap(
                                                                                                                    org.jdesktop.layout.LayoutStyle.RELATED)
                                                                                                            .add(
                                                                                                                    jTextFieldDir,
                                                                                                                    org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                                                                                    269,
                                                                                                                    Short.MAX_VALUE))
                                                                                            .add(
                                                                                                    jLabel3))
                                                                            .addPreferredGap(
                                                                                    org.jdesktop.layout.LayoutStyle.RELATED)))
                                            .add(10, 10, 10)));
    
    #267232 Reply

    Stanley
    Member

    Also in Netbeans I could easily copy and paste or drag/drop a matisse form onto another, I can’t seem to be able to do this.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Matisse problems

You must be logged in to post in the forum log in