Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.swixml</groupId>
<artifactId>swixml</artifactId>
<version>2.0.1</version>
<packaging>pom</packaging>
<name>Swixml</name>
<url>http://www.swixml.org</url>
<description>GUI generating engine for Java applications</description>

<scm>
<url>https://github.com/swixml</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>java2html</groupId>
<artifactId>j2h</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jgoodies</groupId>
<artifactId>jgoodies-forms</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.toedter</groupId>
<artifactId>jcalendar</artifactId>
<version>1.3.2</version>
</dependency>

<dependency>
<groupId>com.apple</groupId>
<artifactId>ui</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<licenses>
<license>
<name>Other</name>
<url>file://licence.txt</url>
</license>
</licenses>
<modules>
<module>swixml-core</module>
</modules>
</project>
3 changes: 2 additions & 1 deletion samples/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/.DS_Store
/.DS_Store
/target
84 changes: 84 additions & 0 deletions samples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.swixml</groupId>
<artifactId>swixml-samples</artifactId>
<version>2.0.1</version>
<packaging>jar</packaging>
<name>Swixml</name>
<url>http://www.swixml.org</url>
<description>GUI generating engine for Java applications</description>

<scm>
<url>https://github.com/swixml</url>
</scm>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.5.4</version>
</dependency>
<dependency>
<groupId>java2html</groupId>
<artifactId>j2h</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>jdom</groupId>
<artifactId>jdom</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jgoodies</groupId>
<artifactId>jgoodies-forms</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>com.toedter</groupId>
<artifactId>jcalendar</artifactId>
<version>1.3.2</version>
</dependency>

<dependency>
<groupId>com.apple</groupId>
<artifactId>ui</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.swixml</groupId>
<artifactId>swixml-core</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
<licenses>
<license>
<name>Other</name>
<url>file://licence.txt</url>
</license>
</licenses>
</project>
86 changes: 43 additions & 43 deletions samples/Accelerator.java → samples/src/main/java/Accelerator.java
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@

import org.swixml.SwingEngine;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
* The Accelerator shows in the usage of accelerators.
*
* @author <a href="mailto:wolf@paulus.com">Wolf Paulus</a>
* @version $Revision: 1.1 $
*
* @since swixml (#101)
*/
public class Accelerator {
private static final String DESCRIPTOR = "xml/accelerator.xml";
SwingEngine swix = new SwingEngine( this );

public Accelerator() throws Exception {
swix.render( Accelerator.DESCRIPTOR ).setVisible( true );
}

public Action newAction = new AbstractAction() {
public void actionPerformed( ActionEvent e ) {
JOptionPane.showMessageDialog( swix.getRootComponent(), "Sorry, not implemented yet." );
}
};

public Action aboutAction = new AbstractAction() {
public void actionPerformed( ActionEvent e ) {
JOptionPane.showMessageDialog( swix.getRootComponent(), "This is the Accelerator Example." );
}
};

public static void main( String[] args ) {
try {
new Accelerator();
} catch (Exception e) {
System.err.println( e.getMessage() );
}
}

}
import org.swixml.SwingEngine;
import javax.swing.*;
import java.awt.event.ActionEvent;
/**
* The Accelerator shows in the usage of accelerators.
*
* @author <a href="mailto:wolf@paulus.com">Wolf Paulus</a>
* @version $Revision: 1.1 $
*
* @since swixml (#101)
*/
public class Accelerator {
private static final String DESCRIPTOR = "xml/accelerator.xml";
SwingEngine swix = new SwingEngine( this );
public Accelerator() throws Exception {
swix.render( Accelerator.DESCRIPTOR ).setVisible( true );
}
public Action newAction = new AbstractAction() {
public void actionPerformed( ActionEvent e ) {
JOptionPane.showMessageDialog( swix.getRootComponent(), "Sorry, not implemented yet." );
}
};
public Action aboutAction = new AbstractAction() {
public void actionPerformed( ActionEvent e ) {
JOptionPane.showMessageDialog( swix.getRootComponent(), "This is the Accelerator Example." );
}
};
public static void main( String[] args ) {
try {
new Accelerator();
} catch (Exception e) {
System.err.println( e.getMessage() );
}
}
}
Loading