From fd8509f9118b9b83f2f600ff6e356707ed84b62e Mon Sep 17 00:00:00 2001 From: Edward Jakubowski Date: Mon, 17 Feb 2014 10:35:54 -0500 Subject: [PATCH] fixed Test IDE window --- readme.txt | 5 ++++- src/org/synthuse/SynthuseDlg.java | 2 +- src/org/synthuse/TestIdeFrame.java | 20 +++++++++++++------- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/readme.txt b/readme.txt index b65e7c1..a8f3018 100644 --- a/readme.txt +++ b/readme.txt @@ -1,6 +1,6 @@ Synthuse -Version 1.0.5 released on 1-30-2014 +Version 1.0.6 released on 2-17-2014 By Edward Jakubowski ejakubowski7@gmail.com Description: @@ -25,6 +25,9 @@ Software Requirements: Release Notes: + 2-17-2014 version 1.0.6 + - fixed Test IDE window + 1-30-2014 version 1.0.5 - Base version diff --git a/src/org/synthuse/SynthuseDlg.java b/src/org/synthuse/SynthuseDlg.java index f91c734..a43d3d3 100644 --- a/src/org/synthuse/SynthuseDlg.java +++ b/src/org/synthuse/SynthuseDlg.java @@ -71,7 +71,7 @@ public class SynthuseDlg extends JFrame { /** * */ - public static String VERSION_STR = "1.0.5"; + public static String VERSION_STR = "1.0.6"; public static String RES_STR_MAIN_ICON = "/org/synthuse/img/gnome-robots.png"; public static String RES_STR_REFRESH_IMG = "/org/synthuse/img/rapidsvn.png"; diff --git a/src/org/synthuse/TestIdeFrame.java b/src/org/synthuse/TestIdeFrame.java index 9a36f81..b45b6cd 100644 --- a/src/org/synthuse/TestIdeFrame.java +++ b/src/org/synthuse/TestIdeFrame.java @@ -31,6 +31,12 @@ public class TestIdeFrame extends JFrame { + public static String RES_STR_MAIN_ICON = "/org/synthuse/img/applications-education.png"; + public static String RES_STR_STOP_IMG = "/org/synthuse/img/dialog-close.png"; + public static String RES_STR_RUN_IMG = "/org/synthuse/img/arrow-right-3.png"; + public static String RES_STR_CLEAR_IMG = "/org/synthuse/img/user-trash-2.png"; + public static String RES_STR_COPY_IMG = "/org/synthuse/img/edit-copy-7.png"; + /** * */ @@ -48,7 +54,7 @@ public class TestIdeFrame extends JFrame { public TestIdeFrame() { setTitle("Test IDE - Synthuse"); - setIconImage(Toolkit.getDefaultToolkit().getImage(TestIdeFrame.class.getResource("/org/qedsys/synthuse/applications-education.png"))); + setIconImage(Toolkit.getDefaultToolkit().getImage(TestIdeFrame.class.getResource(RES_STR_MAIN_ICON))); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 700, 367); contentPane = new JPanel(); @@ -64,7 +70,7 @@ public TestIdeFrame() { public void actionPerformed(ActionEvent arg0) { if (btnRun.getText().equals("Run")) { btnRun.setText("Stop"); - btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/dialog-close.png"))); + btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_STOP_IMG))); CommandProcessor.STOP_PROCESSOR.set(false); CommandProcessor.executeThreaded(txtTest.getText(), new CommandProcessor.Events() { @Override @@ -74,18 +80,18 @@ public void statusChanged(String status) { @Override public void executionCompleted() { btnRun.setText("Run"); - btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png"))); + btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG))); } }); } else { CommandProcessor.STOP_PROCESSOR.set(true); //btnRun.setText("Run"); - //btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png"))); + //btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG))); } } }); - btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/arrow-right-3.png"))); + btnRun.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_RUN_IMG))); toolBar.add(btnRun); btnClear = new JButton("Clear"); @@ -94,7 +100,7 @@ public void actionPerformed(ActionEvent arg0) { txtTest.setText(""); } }); - btnClear.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/user-trash-2.png"))); + btnClear.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_CLEAR_IMG))); toolBar.add(btnClear); btnCopy = new JButton("Copy Script"); @@ -106,7 +112,7 @@ public void actionPerformed(ActionEvent arg0) { //StatusWindow sw = new StatusWindow("this is a test BLAH really long string goes here to test status of stuff yaya!!!!123123 123 123", 4000); } }); - btnCopy.setIcon(new ImageIcon(SynthuseDlg.class.getResource("/org/qedsys/synthuse/edit-copy-7.png"))); + btnCopy.setIcon(new ImageIcon(SynthuseDlg.class.getResource(RES_STR_COPY_IMG))); toolBar.add(btnCopy); JScrollPane scrollPane = new JScrollPane();