Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Jigloo GUI Builder for Eclipse" Topics [ Start new "Jigloo GUI Builder for Eclipse" Topic  ]

Cloudgarden Discussion Board  
This topic has 0 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
Jigloo seems to save properties not correctly
Author: zusta
12/09/11 09:42 Reply
Hi guys,

I'm trying to create a class which inherits from JDialog, so I created a new class using the wizard. After the class was created, I changed the title to - let's say myTitle2 - (and some other settings) of the dialog, so that the property-file looks like:

#Properties updated by Jigloo
#Fri Dec 09 18:33:16 CET 2011

dialog35.title=myTitle1

But if I start my application, nothing was saved - the title is empty (all other settings are also ignored). I got the same result by creating an new class which inherits from JFrame. If I open my dialog-based class again, the title in the editor is also empty and if I enter the title (let's say myTitle2) again, I get the following property-file:

#Properties updated by Jigloo
#Fri Dec 09 18:36:33 CET 2011

dialog35.title=myTitle1

dialog36.title=myTitle2

If I start the application again... it's the same result as before - all settings will be ignored and the title is also empty again. If I change dialog35 or dialog36 (which seems to be a counter, because I started with dialog1) to this.title=myTitle, it will be shown in the editor, but not in my application (this will be also ignored)... I'm using Eclipse Indigo and Jigloo 4.6.6, so is there any bug with this combination?

I didn't changed anything in my created class, so my source is the following:

package src;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import org.jdesktop.application.Application;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit http://www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialog extends javax.swing.JDialog {

     /**
     * Auto-generated main method to display this JDialog
     */
         
     public NewJDialog(JFrame frame) {
          super(frame);
          initGUI();
     }
    
     private void initGUI() {
          try {
               setSize(400, 300);
               Application.getInstance().getContext().getResourceMap(getClass()).injectComponents(getContentPane());
          } catch (Exception e) {
               e.printStackTrace();
          }
     }

}

I hope anyone can help me to find out the error - thanks :)