what is your opinion?

View: New views
10 Messages — Rating Filter:   Alert me  

what is your opinion?

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I am writing my Master Thesis. The main area of it will be GUI - Java - XML and analyses of different libraries for creating GUI from XML .
I would like to ask, if someone could give me some advice. The most important part of this thesis is to choose proper and able for future development libraries. Already I have decided to analyse SwiXml and Thinlet.
The question is what do you think about this choice and which other would you consider worth of writing about (because of large number of them - not all of them can be included in my work).
I will be really thankful for any help.

 

Triszia


_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: what is your opinion?

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When it comes to planning for the future Thinlet really looses it's
luster because it's limited by the main thinlet class's functionality
which is really difficult to modify. It's all these nested arrays of
arrays, the importance and meaning of  which only resides in the
creators head and the dense uncommented code.

Swixml on the other hand is so simple that as the underlying java
classes change it will simply change with them. Plus  the code is easy
to tweak and can be extended easily to use other things like AWT or any
other windowing stuff.

I think Jelly has a swing extension but Jelly is far more complicated in
that it practically allows you to program in xml.

-Kate


List for Users of Carlsbad Cubes' Technologies and Products wrote:

> I am writing my Master Thesis. The main area of it will be GUI - Java - XML
> and analyses of different libraries for creating GUI from XML .
> I would like to ask, if someone could give me some advice. The most
> important part of this thesis is to choose proper and able for future
> development libraries. Already I have decided to analyse SwiXml and Thinlet.
> The question is what do you think about this choice and which other would
> you consider worth of writing about (because of large number of them - not
> all of them can be included in my work).
> I will be really thankful for any help.
>
>  
>
> Triszia
>
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>  


_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

problem with MatteBorder.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


If I run the gridbag example that is on the website (xml see below), I dont
get the red MatteBorder (in JDK 1.4 and JDK 1.5).
I compiled SwiXML in debug mode and even added a print statement in the
BorderConverter class, just before the border is actually created.

      System.out.println("Invoking createxxxxBorder method");
      border = (Border) method.invoke( null, args );
(on line 149 of the BorderConverter class (swixml #144) ).

The print line shows up, no exceptions show up, but I still dont see any
border. My OS is windows XP.


<?xml version="1.0" encoding="UTF-8"?>
<frame name="frame" size="500,300" title="Simple Complaint Dialog"
background="FFCCEE" layout="BorderLayout">
        <panel name="pnl" background="3399CC" border="MatteBorder(4,4,4,4,red)"
constraints="BorderLayout.CENTER" layout="GridBagLayout">
                <button name="btn1" text="Wonderful">
                        <gridbagconstraints id="gbc_1" insets="2,2,2,2" gridx="0" gridy="0"
ipadx="15" ipady="15" weightx="1" weighty="1"/>
                </button>
                <button name="btn2" text="World">
                        <gridbagconstraints use="gbc_1" gridx="1"/>
                </button>
                <button name="btn3" text="of">

                        <gridbagconstraints insets="2,2,2,2" gridx="0" gridy="1" ipadx="0"
ipady="0" weightx="1.0" weighty="1.0"/>
                </button>
                <button name="btn4" text="Swing">
                        <gridbagconstraints insets="2,2,2,2" gridx="1" gridy="1" ipadx="0"
ipady="0" weightx="1.0" weighty="1.0"/>
                </button>
        </panel>
</frame>


_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: problem with MatteBorder.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Mrs/Mr nobody,

I had no problem whatsoever running your xml-file. Border shows up and
responds to changes of the insets (like, substituting all 4 with 8).

Be sure to get the correct xml file rendered and (if you are using
Eclipse) refresh the project the files are in. Sometimes this causes
strange "cache effects" I encountered as well...

I add a small test program which may ease the development. Place it in
the swixml-source path at the correct place and the swixml-test.xml in
your classpath as well.

Yours,

Frank Meissner

List for Users of Carlsbad Cubes' Technologies and Products schrieb:

> If I run the gridbag example that is on the website (xml see below), I dont
> get the red MatteBorder (in JDK 1.4 and JDK 1.5).
> I compiled SwiXML in debug mode and even added a print statement in the
> BorderConverter class, just before the border is actually created.
>
>       System.out.println("Invoking createxxxxBorder method");
>       border = (Border) method.invoke( null, args );
> (on line 149 of the BorderConverter class (swixml #144) ).
>
> The print line shows up, no exceptions show up, but I still dont see any
> border. My OS is windows XP.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <frame name="frame" size="500,300" title="Simple Complaint Dialog"
> background="FFCCEE" layout="BorderLayout">
> <panel name="pnl" background="3399CC" border="MatteBorder(4,4,4,4,red)"
> constraints="BorderLayout.CENTER" layout="GridBagLayout">
> <button name="btn1" text="Wonderful">
> <gridbagconstraints id="gbc_1" insets="2,2,2,2" gridx="0" gridy="0"
> ipadx="15" ipady="15" weightx="1" weighty="1"/>
> </button>
> <button name="btn2" text="World">
> <gridbagconstraints use="gbc_1" gridx="1"/>
> </button>
> <button name="btn3" text="of">
>
> <gridbagconstraints insets="2,2,2,2" gridx="0" gridy="1" ipadx="0"
> ipady="0" weightx="1.0" weighty="1.0"/>
> </button>
> <button name="btn4" text="Swing">
> <gridbagconstraints insets="2,2,2,2" gridx="1" gridy="1" ipadx="0"
> ipady="0" weightx="1.0" weighty="1.0"/>
> </button>
> </panel>
> </frame>
>
>
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>

<frame size="100,200" DefaultCloseOperation="JFrame.EXIT_ON_CLOSE" title="Control">
  <panel layout="GridLayout(3,1)">
    <button action="openAction" icon="toolbarButtonGraphics/general/Open24.gif"/>
    <button action="refreshAction" icon="toolbarButtonGraphics/general/Refresh24.gif"/>
    <button action="stopAction" icon="toolbarButtonGraphics/general/Stop24.gif"/>
  </panel>
</frame>
package org.swixml;

import javax.swing.Action;
import javax.swing.AbstractAction;
import javax.swing.JFileChooser;
import java.awt.Container;
import java.io.File;
import java.awt.event.ActionEvent;
import java.awt.Point;
import javax.swing.JFrame;
import javax.swing.JPanel;



/**
 * Displays a small control panel and tries to render the given arguments as Swixml file.
 *
 * @author <a href="mailto:f.meissner@...">Frank Meissner</a>
 * @version 1.0
 */
public class SwixmlTest extends SwingEngine {
     
  protected File currentDir;
  protected File currentFile;

  /**
   * Action to open new Swixml files.
   *
   */
  public Action openAction = new AbstractAction() {
      /* (non-Javadoc)
       * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
       */
      public void actionPerformed(ActionEvent e) {
        JFileChooser jfc;
        if (currentDir == null) {
          jfc = new JFileChooser();
        } else {
          jfc = new JFileChooser(currentDir);
        }
        int answer = jfc.showOpenDialog(controlPanel);
        if (answer == JFileChooser.APPROVE_OPTION) {
          currentDir = jfc.getCurrentDirectory();
          currentFile = jfc.getSelectedFile();
          refreshAction.actionPerformed(e);
        }
      }
    };
  /**
   * Action to refresh the currently displayed Swixml file.
   *
   */
  public Action refreshAction = new AbstractAction() {
      Container myContainer = null;
      /* (non-Javadoc)
       * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
       */
      public void actionPerformed(ActionEvent e) {
        SwingEngine se = new SwingEngine();
        try {
          Point location = null;
          if (myContainer != null) {
            location = myContainer.getLocation();
            myContainer.setVisible(false);
          }
          myContainer = showContainer(se.render(currentFile));
          if (location != null) {
            myContainer.setLocation(location);
          }
          if (myContainer instanceof JFrame) {
            JFrame frame = (JFrame) myContainer;
            frame.setTitle(currentFile.getName());
          }
        } catch (Exception e1) {
          e1.printStackTrace(System.err);
        }
      }
    };
  /**
   * Action to exit the program.
   *
   */
  public Action stopAction = new AbstractAction() {
      /* (non-Javadoc)
       * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
       */
      public void actionPerformed(ActionEvent e) {
        System.exit(0);
      }
    };
  protected Container controlPanel;

  public void renderContainer() throws Exception {
  }
  /**
   * Renders only the control panel.
   *
   */
  public SwixmlTest() {
    try {
      // try to render the control panel and encapsulate exceptions
      controlPanel = render("swixml-test.xml");
      controlPanel.setVisible(true);
    } catch (Exception e) {
      e.printStackTrace(System.err);
    }
  }
  /**
   * Renders the control panel
   *
   * @param resourceName a <code>String</code> value
   * @exception Exception if an error occurs
   */
  public SwixmlTest(String resourceName) throws Exception {
    this();
    Container container = new SwingEngine().render(resourceName);
    showContainer(container);
  }
  public SwixmlTest(File xmlFile) throws Exception {
    this();
    currentFile = xmlFile;
    refreshAction.actionPerformed(null);
  }

  Container showContainer(Container container) {
    Container result;
    if (container instanceof JPanel) {
      JFrame frame = new JFrame();
      setAppFrame(frame);
      frame.getContentPane().add(container);
      frame.setSize(container.getSize());
      frame.setVisible(true);
      result = frame;
    } else {
      container.setVisible(true);
      result = container;
    }
    return result;
  }

  public static void main(String[] args) throws Exception {
    if (args.length > 0) {
      for (int i = 0; i < args.length; i++) {
        File f = new File(args[i]);
        if (f.exists()) {
          new SwixmlTest(f);
        } else {
          new SwixmlTest(args[i]);
        }
      }
    }
  }

}
_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: problem with MatteBorder.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hello Frank,

my apologies for writing such a rude mail without beginning and ending. I
somehow sent the mail before it was entirely complete.
I do not use eclipse but JDK plus ant or JDK plus simple commands. I have
runned your test program also. It is not a refresh problem.
I also tried if it perhaps is a Look and Feel problem (that the border
perhaps is surpressed when you use certain look and feels)
but that is also not the case, because
  1) switching LAF does not solve the problem
  2) an other type of border, LineBorder, does work.

swixml.jpg shows cross platform look and feel with a call to
JFrame.setDefaultLookAndFeelDecorated(true);
swixml2.jpg shows the same thing using LineBorder(red) instead of
MatteBorder(4,4,4,4,red) - that does work!

It really is strange and I just dont have an explanation.... nor why the
MatteBorder does work at your computer, apparently. I wonder what JDK and OS
you have used.

regards,
Jan.






-----Original Message-----
From: Forum-bounces@...
[mailto:Forum-bounces@...]On Behalf Of List for Users of
Carlsbad Cubes' Technologies and Products
Sent: zondag 26 februari 2006 19:03
To: List for Users of Carlsbad Cubes' Technologies and Products
Subject: Re: [Forum] problem with MatteBorder.


Hello Mrs/Mr nobody,

I had no problem whatsoever running your xml-file. Border shows up and
responds to changes of the insets (like, substituting all 4 with 8).

Be sure to get the correct xml file rendered and (if you are using
Eclipse) refresh the project the files are in. Sometimes this causes
strange "cache effects" I encountered as well...

I add a small test program which may ease the development. Place it in
the swixml-source path at the correct place and the swixml-test.xml in
your classpath as well.

Yours,

Frank Meissner

List for Users of Carlsbad Cubes' Technologies and Products schrieb:
> If I run the gridbag example that is on the website (xml see below), I
dont

> get the red MatteBorder (in JDK 1.4 and JDK 1.5).
> I compiled SwiXML in debug mode and even added a print statement in the
> BorderConverter class, just before the border is actually created.
>
>       System.out.println("Invoking createxxxxBorder method");
>       border = (Border) method.invoke( null, args );
> (on line 149 of the BorderConverter class (swixml #144) ).
>
> The print line shows up, no exceptions show up, but I still dont see any
> border. My OS is windows XP.
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <frame name="frame" size="500,300" title="Simple Complaint Dialog"
> background="FFCCEE" layout="BorderLayout">
>       <panel name="pnl" background="3399CC"
border="MatteBorder(4,4,4,4,red)"
> constraints="BorderLayout.CENTER" layout="GridBagLayout">
>               <button name="btn1" text="Wonderful">
>                       <gridbagconstraints id="gbc_1" insets="2,2,2,2"
gridx="0" gridy="0"
> ipadx="15" ipady="15" weightx="1" weighty="1"/>
>               </button>
>               <button name="btn2" text="World">
>                       <gridbagconstraints use="gbc_1" gridx="1"/>
>               </button>
>               <button name="btn3" text="of">
>
>                       <gridbagconstraints insets="2,2,2,2" gridx="0"
gridy="1" ipadx="0"
> ipady="0" weightx="1.0" weighty="1.0"/>
>               </button>
>               <button name="btn4" text="Swing">
>                       <gridbagconstraints insets="2,2,2,2" gridx="1"
gridy="1" ipadx="0"

> ipady="0" weightx="1.0" weighty="1.0"/>
>               </button>
>       </panel>
> </frame>
>
>
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>



_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

swixml.jpg (16K) Download Attachment
swixml2.jpg (21K) Download Attachment

Table example

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everybody,
I tried several times to include tables in my layout, but it didn't work
correctly (shows nothing). Can anyone provide me a simple example on how
to include a table?

TIA Tim

--
Magh & Boppert GmbH
IT Betreuung und objektorientierte
Softwareentwicklung

Frankfurter Weg 70-72
33106 Paderborn
 
Tel.: +49-5251-698899-1
Fax.: +49-5251-698899-9
 
http://www.magh-boppert.de

_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

my chat client is not looking good.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a chat client which does not look as good as it should.

My Flex looks like
http://flashjabber.kicks-ass.net:9000/Test2.html

My Java Applet looks like
http://flashjabber.kicks-ass.net:9000/smack_applet.html

I would like to SwiXML to make it look better. Can anyone write down a list
of steps to make this happen or chat with me about this? Thanks Dan





_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: my chat client is not looking good.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

step 1: figure out the swing objects you want to use and the heirarchy
of those objects
step 2: write the few corresponding xml tags instead of the reams of
java code.
step 3: sigh in relief when you realize just how much annoyance you avoided.

there's really not much to it. you just have to know what you want in
swing, which, admitedly, can be a hurdle unto itself.

That and applets are icky. ;) crashed firefox. ajax or flash for web...
java for serverside and desktop clients... i don't think java applets
have ever worked out well, not counting a few rare exceptions.


-Kate

List for Users of Carlsbad Cubes' Technologies and Products wrote:

> I have a chat client which does not look as good as it should.
>
> My Flex looks like
> http://flashjabber.kicks-ass.net:9000/Test2.html
>
> My Java Applet looks like
> http://flashjabber.kicks-ass.net:9000/smack_applet.html
>
> I would like to SwiXML to make it look better. Can anyone write down a list
> of steps to make this happen or chat with me about this? Thanks Dan
>
>
>
>
>
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>
>  


_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Re: problem with MatteBorder.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jan,

Working with:
java version "1.5.0_06", "1.4.2_09"
classpath (current directory the swximl-directory root, fetched from cvs or extracted source zip...): lib/j2h.jar:lib/jdom.jar:build/classes. The Jlfgr jar is missing, so the buttons of the control panel do not have icons... I did not mention that...

I did the same with the original swixml jar file from the website, it worked as well.

OS in all cases is linux, kernel 2.6.12-9-386.

It seems your problem lies somewhere else. Try stripping the classpath like I did.

List for Users of Carlsbad Cubes' Technologies and Products <Forum@...> schrieb am 01.03.06 02:09:22:

>
>
>
> Hello Frank,
>
> my apologies for writing such a rude mail without beginning and ending. I
> somehow sent the mail before it was entirely complete.
> I do not use eclipse but JDK plus ant or JDK plus simple commands. I have
> runned your test program also. It is not a refresh problem.
> I also tried if it perhaps is a Look and Feel problem (that the border
> perhaps is surpressed when you use certain look and feels)
> but that is also not the case, because
>   1) switching LAF does not solve the problem
>   2) an other type of border, LineBorder, does work.
>
> swixml.jpg shows cross platform look and feel with a call to
> JFrame.setDefaultLookAndFeelDecorated(true);
> swixml2.jpg shows the same thing using LineBorder(red) instead of
> MatteBorder(4,4,4,4,red) - that does work!
>
> It really is strange and I just dont have an explanation.... nor why the
> MatteBorder does work at your computer, apparently. I wonder what JDK and OS
> you have used.
>
> regards,
> Jan.
>
>
>
>
>
>
> -----Original Message-----
> From: Forum-bounces@...
> [mailto:Forum-bounces@...]On Behalf Of List for Users of
> Carlsbad Cubes' Technologies and Products
> Sent: zondag 26 februari 2006 19:03
> To: List for Users of Carlsbad Cubes' Technologies and Products
> Subject: Re: [Forum] problem with MatteBorder.
>
>
> Hello Mrs/Mr nobody,
>
> I had no problem whatsoever running your xml-file. Border shows up and
> responds to changes of the insets (like, substituting all 4 with 8).
>
> Be sure to get the correct xml file rendered and (if you are using
> Eclipse) refresh the project the files are in. Sometimes this causes
> strange "cache effects" I encountered as well...
>
> I add a small test program which may ease the development. Place it in
> the swixml-source path at the correct place and the swixml-test.xml in
> your classpath as well.
>
> Yours,
>
> Frank Meissner
>
> List for Users of Carlsbad Cubes' Technologies and Products schrieb:
> > If I run the gridbag example that is on the website (xml see below), I
> dont
> > get the red MatteBorder (in JDK 1.4 and JDK 1.5).
> > I compiled SwiXML in debug mode and even added a print statement in the
> > BorderConverter class, just before the border is actually created.
> >
> >       System.out.println("Invoking createxxxxBorder method");
> >       border = (Border) method.invoke( null, args );
> > (on line 149 of the BorderConverter class (swixml #144) ).
> >
> > The print line shows up, no exceptions show up, but I still dont see any
> > border. My OS is windows XP.
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <frame name="frame" size="500,300" title="Simple Complaint Dialog"
> > background="FFCCEE" layout="BorderLayout">
> >       <panel name="pnl" background="3399CC"
> border="MatteBorder(4,4,4,4,red)"
> > constraints="BorderLayout.CENTER" layout="GridBagLayout">
> >               <button name="btn1" text="Wonderful">
> >                       <gridbagconstraints id="gbc_1" insets="2,2,2,2"
> gridx="0" gridy="0"
> > ipadx="15" ipady="15" weightx="1" weighty="1"/>
> >               </button>
> >               <button name="btn2" text="World">
> >                       <gridbagconstraints use="gbc_1" gridx="1"/>
> >               </button>
> >               <button name="btn3" text="of">
> >
> >                       <gridbagconstraints insets="2,2,2,2" gridx="0"
> gridy="1" ipadx="0"
> > ipady="0" weightx="1.0" weighty="1.0"/>
> >               </button>
> >               <button name="btn4" text="Swing">
> >                       <gridbagconstraints insets="2,2,2,2" gridx="1"
> gridy="1" ipadx="0"
> > ipady="0" weightx="1.0" weighty="1.0"/>
> >               </button>
> >       </panel>
> > </frame>
> >
> >
> > _______________________________________________
> > Forum mailing list
> > Forum@...
> > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
> >
>
> <hr>
> _______________________________________________
> Forum mailing list
> Forum@...
> http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com
>



_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com

Autoodpowiedź (poza biurem): problem with MatteBorder.

by Carlsbad Cubes mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Autoodpowiedź (poza biurem): [Forum] problem with MatteBorder.

Informuję, że do dnia 6 marca 2006 r.. jestem nieobecny w pracy.
W sprawach związanych z aplikacją RiN proszę kontaktować się z Panem Arturem Krzykalskim

Grzegorz Koperek


_______________________________________________
Forum mailing list
Forum@...
http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com