i added icons
@@ -2,7 +2,7 @@
|
|||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="lib" path="lib/sqlitejdbc-v056.jar"/>
|
|
||||||
<classpathentry kind="lib" path="lib/jcalendar-1.3.3.jar"/>
|
<classpathentry kind="lib" path="lib/jcalendar-1.3.3.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/sqlitejdbc-v056.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|||||||
BIN
Order Processor/images/accept.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
Order Processor/images/calendar_date.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
Order Processor/images/database.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
Order Processor/images/database_accept.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_add.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_down.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_lock.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
Order Processor/images/database_next.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_previous.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_process.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/database_remove.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
Order Processor/images/database_search.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
Order Processor/images/database_up.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Order Processor/images/info.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
@@ -15,7 +15,7 @@ import com.TwentyCodes.java.OrderProcessor.UI.MainWindow;
|
|||||||
public class Main {
|
public class Main {
|
||||||
|
|
||||||
|
|
||||||
public static final boolean DEBUG = true;
|
public static final boolean DEBUG = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* called when the application first starts
|
* called when the application first starts
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ import java.awt.HeadlessException;
|
|||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
@@ -44,6 +45,9 @@ public class DatePicker extends JFrame implements ActionListener {
|
|||||||
* @author ricky barrette
|
* @author ricky barrette
|
||||||
*/
|
*/
|
||||||
public DatePicker(int resultCode, DatePickerListener listener) {
|
public DatePicker(int resultCode, DatePickerListener listener) {
|
||||||
|
this.setTitle("Date Picker");
|
||||||
|
setIconImage(new ImageIcon("images/calendar_date.png").getImage());
|
||||||
|
|
||||||
mResultCode = resultCode;
|
mResultCode = resultCode;
|
||||||
mListener = listener;
|
mListener = listener;
|
||||||
|
|
||||||
@@ -68,7 +72,7 @@ public class DatePicker extends JFrame implements ActionListener {
|
|||||||
this.getContentPane().add(mCalendar, BorderLayout.CENTER);
|
this.getContentPane().add(mCalendar, BorderLayout.CENTER);
|
||||||
|
|
||||||
//ok button
|
//ok button
|
||||||
mOkButton = new JButton("Ok");
|
mOkButton = new JButton("Ok", new ImageIcon("images/accept.png"));
|
||||||
mOkButton.addActionListener(this);
|
mOkButton.addActionListener(this);
|
||||||
this.getContentPane().add(mOkButton, BorderLayout.SOUTH);
|
this.getContentPane().add(mOkButton, BorderLayout.SOUTH);
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ import java.io.IOException;
|
|||||||
import java.io.LineNumberReader;
|
import java.io.LineNumberReader;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFileChooser;
|
import javax.swing.JFileChooser;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
@@ -52,23 +53,32 @@ public class MainWindow extends JFrame implements ActionListener, ProgressListen
|
|||||||
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
|
this.setDefaultCloseOperation(EXIT_ON_CLOSE);
|
||||||
|
|
||||||
setTitle("Twenty Codes, LLC Order Database");
|
setTitle("Twenty Codes, LLC Order Database");
|
||||||
|
setIconImage(new ImageIcon("images/database.png").getImage());
|
||||||
|
|
||||||
JPanel panel = new JPanel();
|
JPanel panel = new JPanel();
|
||||||
|
|
||||||
getContentPane().add(panel);
|
getContentPane().add(panel);
|
||||||
mShowAllButton = new JButton("Show All Orders");
|
|
||||||
mShowAllButton.addActionListener(this);
|
|
||||||
mSearchButton = new JButton("Search");
|
|
||||||
|
|
||||||
|
//Search buttom
|
||||||
|
mSearchButton = new JButton("Search", new ImageIcon("images/database_search.png"));
|
||||||
mSearchButton.addActionListener(this);
|
mSearchButton.addActionListener(this);
|
||||||
panel.add(mSearchButton);
|
panel.add(mSearchButton);
|
||||||
|
|
||||||
|
//show all button
|
||||||
|
mShowAllButton = new JButton("Show All Orders", new ImageIcon("images/database.png"));
|
||||||
|
mShowAllButton.addActionListener(this);
|
||||||
panel.add(mShowAllButton);
|
panel.add(mShowAllButton);
|
||||||
mLoadFileButton = new JButton("Load File");
|
|
||||||
|
//load button
|
||||||
|
mLoadFileButton = new JButton("Load File", new ImageIcon("images/database_add.png"));
|
||||||
mLoadFileButton.addActionListener(this);
|
mLoadFileButton.addActionListener(this);
|
||||||
panel.add(mLoadFileButton);
|
panel.add(mLoadFileButton);
|
||||||
|
|
||||||
|
//progress bar
|
||||||
mProgressBar = new JProgressBar();
|
mProgressBar = new JProgressBar();
|
||||||
mProgressBar.setStringPainted(true);
|
mProgressBar.setStringPainted(true);
|
||||||
getContentPane().add(mProgressBar, BorderLayout.SOUTH);
|
getContentPane().add(mProgressBar, BorderLayout.SOUTH);
|
||||||
|
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
pack();
|
pack();
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import java.io.IOException;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JLabel;
|
import javax.swing.JLabel;
|
||||||
@@ -54,6 +55,7 @@ public class SearchDialog extends JFrame implements ActionListener, ProgressList
|
|||||||
super();
|
super();
|
||||||
|
|
||||||
setTitle("Search");
|
setTitle("Search");
|
||||||
|
setIconImage(new ImageIcon("images/database_search.png").getImage());
|
||||||
|
|
||||||
//create a JPanel to hold the text area and button
|
//create a JPanel to hold the text area and button
|
||||||
JPanel panel = new JPanel();
|
JPanel panel = new JPanel();
|
||||||
@@ -83,7 +85,7 @@ public class SearchDialog extends JFrame implements ActionListener, ProgressList
|
|||||||
mEndDateField.addMouseListener(this);
|
mEndDateField.addMouseListener(this);
|
||||||
|
|
||||||
//ok button
|
//ok button
|
||||||
mOkButton = new JButton("Ok");
|
mOkButton = new JButton("Ok", new ImageIcon("images/database_search.png"));
|
||||||
mOkButton.addActionListener(this);
|
mOkButton.addActionListener(this);
|
||||||
panel.add(mOkButton);
|
panel.add(mOkButton);
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ import java.awt.event.ActionListener;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
||||||
|
import javax.swing.ImageIcon;
|
||||||
import javax.swing.JButton;
|
import javax.swing.JButton;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JProgressBar;
|
import javax.swing.JProgressBar;
|
||||||
@@ -35,7 +36,9 @@ public class ShowAllDialog extends JFrame implements ActionListener, ProgressLis
|
|||||||
public ShowAllDialog(){
|
public ShowAllDialog(){
|
||||||
super();
|
super();
|
||||||
setTitle("Show All Orders");
|
setTitle("Show All Orders");
|
||||||
JButton ok = new JButton("Ok");
|
setIconImage(new ImageIcon("images/database.png").getImage());
|
||||||
|
|
||||||
|
JButton ok = new JButton("Ok", new ImageIcon("images/accept.png"));
|
||||||
ok.addActionListener(this);
|
ok.addActionListener(this);
|
||||||
mOutput = new OrderPane();
|
mOutput = new OrderPane();
|
||||||
mProgressBar = new JProgressBar();
|
mProgressBar = new JProgressBar();
|
||||||
@@ -79,8 +82,9 @@ public class ShowAllDialog extends JFrame implements ActionListener, ProgressLis
|
|||||||
public ShowAllDialog(String title, String body){
|
public ShowAllDialog(String title, String body){
|
||||||
super();
|
super();
|
||||||
setTitle(title);
|
setTitle(title);
|
||||||
|
setIconImage(new ImageIcon("images/info.png").getImage());
|
||||||
|
|
||||||
JButton ok = new JButton("Ok");
|
JButton ok = new JButton("Ok", new ImageIcon("images/accept.png"));
|
||||||
ok.addActionListener(this);
|
ok.addActionListener(this);
|
||||||
|
|
||||||
JScrollPane scrollPane = new JScrollPane();
|
JScrollPane scrollPane = new JScrollPane();
|
||||||
|
|||||||