- This topic has 1 reply, 1 voice, and was last updated 17 years, 9 months ago by Stanley.
-
AuthorPosts
-
StanleyMemberMyEclipse Enterprise Workbench
Version: 5.1.1 GA
Build id: 20070302-5.1.1-GA
Full Stack InstallI 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_jButtonDeleteActionPerformedI 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)));
StanleyMemberAlso 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.
-
AuthorPosts