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