Commits

Micha Kops committed d38e182

Packages renamed.

Comments (0)

Files changed (2)

src/main/java/com/hascode/tutorial/sample1/Main.java

-package com.hascode.tutorial.sample1;
-
-import org.apache.pivot.collections.Map;
-import org.apache.pivot.wtk.Application;
-import org.apache.pivot.wtk.DesktopApplicationContext;
-import org.apache.pivot.wtk.Display;
-import org.apache.pivot.wtk.FileBrowserSheet;
-import org.apache.pivot.wtk.Form;
-import org.apache.pivot.wtk.Label;
-import org.apache.pivot.wtk.PushButton;
-import org.apache.pivot.wtk.Window;
-
-public class Main {
-	public static void main(final String[] args) {
-		DesktopApplicationContext.main(MyApp.class, new String[] {});
-	}
-
-	public static class MyApp extends Window implements Application {
-		private final Form form = new Form();
-		private final Form.Section section = new Form.Section();
-		private final Label label = new Label("Select file to upload...");
-		private final PushButton btOpenFileDialog = new PushButton();
-		private final FileBrowserSheet fileBrowser = new FileBrowserSheet();
-
-		public MyApp() {
-			compose();
-		}
-
-		private void compose() {
-			this.setTitle("hasCode.com - Apache Pivot Example 1 - Programmatic construction");
-			this.setMaximized(true);
-			section.add(label);
-			btOpenFileDialog.setButtonData("Select File..");
-			section.add(btOpenFileDialog);
-			form.getSections().add(section);
-			this.add(form);
-		}
-
-		public void startup(final Display display,
-				final Map<String, String> properties) throws Exception {
-			this.open(display);
-		}
-
-		public boolean shutdown(final boolean optional) throws Exception {
-			this.close();
-			return false;
-		}
-
-		public void suspend() throws Exception {
-		}
-
-		public void resume() throws Exception {
-		}
-
-	}
-}

src/main/java/com/hascode/tutorial/samples/Sample1.java

+package com.hascode.tutorial.samples;
+
+import org.apache.pivot.collections.Map;
+import org.apache.pivot.wtk.Application;
+import org.apache.pivot.wtk.DesktopApplicationContext;
+import org.apache.pivot.wtk.Display;
+import org.apache.pivot.wtk.FileBrowserSheet;
+import org.apache.pivot.wtk.Form;
+import org.apache.pivot.wtk.Label;
+import org.apache.pivot.wtk.PushButton;
+import org.apache.pivot.wtk.Window;
+
+public class Sample1 {
+	public static void main(final String[] args) {
+		DesktopApplicationContext.main(MyApp.class, args);
+	}
+
+	public static class MyApp extends Window implements Application {
+		private final Form form = new Form();
+		private final Form.Section section = new Form.Section();
+		private final Label label = new Label("Select file to upload...");
+		private final PushButton btOpenFileDialog = new PushButton();
+		private final FileBrowserSheet fileBrowser = new FileBrowserSheet();
+
+		public MyApp() {
+			compose();
+		}
+
+		private void compose() {
+			section.add(label);
+			btOpenFileDialog.setButtonData("Select File..");
+			section.add(btOpenFileDialog);
+			form.getSections().add(section);
+			this.add(form);
+			this.setTitle("hasCode.com - Apache Pivot Example 1 - Programmatic construction");
+			this.setMaximized(true);
+		}
+
+		public void startup(final Display display,
+				final Map<String, String> properties) throws Exception {
+			this.open(display);
+		}
+
+		public boolean shutdown(final boolean optional) throws Exception {
+			this.close();
+			return false;
+		}
+
+		public void suspend() throws Exception {
+		}
+
+		public void resume() throws Exception {
+		}
+
+	}
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.