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
Binary file modified populator/.DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions populator/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="lib" path="mysql Library/mysql-connector-java-5.1.36-bin.jar"/>
<classpathentry kind="lib" path="jgoodies-forms-1.8.0.jar" sourcepath="jgoodies-forms-1.8.0-sources.jar"/>
<<<<<<< Updated upstream
<classpathentry kind="lib" path="miglayout15-swing.jar" sourcepath="miglayout-src.zip"/>
=======
>>>>>>> Stashed changes
<classpathentry kind="output" path="bin"/>
</classpath>
Binary file removed populator/jgoodies-forms-1.8.0-sources.jar
Binary file not shown.
Binary file removed populator/jgoodies-forms-1.8.0.jar
Binary file not shown.
Binary file removed populator/miglayout-src.zip
Binary file not shown.
Binary file removed populator/miglayout15-swing.jar
Binary file not shown.
77 changes: 77 additions & 0 deletions populator/src/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,34 @@
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JLabel;
<<<<<<< Updated upstream
import javax.swing.JDesktopPane;
import javax.swing.JPanel;
=======
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import javax.swing.JTextField;
import java.awt.Font;
>>>>>>> Stashed changes
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class GUI {

public static String IP;
public static String username;
public static String password;

static JFrame frame;
<<<<<<< Updated upstream
static JTextArea textArea;
=======
private JTextField IPText;
private JTextField usernameText;
private JTextField passwordText;
>>>>>>> Stashed changes
/**
* Create the application.
*/
Expand All @@ -38,7 +56,9 @@ private void initialize() {
frame.setSize(new Dimension(752, 502));
//frame.setSize(500,500);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);

<<<<<<< Updated upstream
JDesktopPane desktopPane_2 = new JDesktopPane();
frame.getContentPane().add(desktopPane_2, BorderLayout.NORTH);

Expand Down Expand Up @@ -74,5 +94,62 @@ public void run() {

private static void addPopup(Component component, final JPopupMenu popup) {
//probably use this to show an error messsage
=======



JLabel lblNewLabel = new JLabel("Username:");
lblNewLabel.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
lblNewLabel.setBounds(123, 211, 117, 29);
frame.getContentPane().add(lblNewLabel);

JLabel lblNewLabel_1 = new JLabel("Password:");
lblNewLabel_1.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
lblNewLabel_1.setBounds(123, 258, 123, 29);
frame.getContentPane().add(lblNewLabel_1);

JLabel lblNewLabel_2 = new JLabel("IP Address:");
lblNewLabel_2.setFont(new Font("Lucida Grande", Font.PLAIN, 20));
lblNewLabel_2.setBounds(123, 161, 117, 29);
frame.getContentPane().add(lblNewLabel_2);

JLabel lblNewLabel_3 = new JLabel("Mysql Server");
lblNewLabel_3.setFont(new Font("Lucida Grande", Font.PLAIN, 40));
lblNewLabel_3.setBounds(241, 19, 281, 80);
frame.getContentPane().add(lblNewLabel_3);

IPText = new JTextField();
IPText.setBounds(314, 165, 130, 26);
frame.getContentPane().add(IPText);
IPText.setColumns(10);

usernameText = new JTextField();
usernameText.setBounds(314, 215, 130, 26);
frame.getContentPane().add(usernameText);
usernameText.setColumns(10);

passwordText = new JTextField();
passwordText.setBounds(314, 262, 130, 26);
frame.getContentPane().add(passwordText);
passwordText.setColumns(10);

JButton loginButton = new JButton("Login");
loginButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
IP=IPText.getText();
username=usernameText.getText();
password=passwordText.getText();
}

});

loginButton.setBackground(Color.WHITE);
loginButton.setBounds(279, 394, 117, 29);
frame.getContentPane().add(loginButton);

}

private static void addPopup(Component component, final JPopupMenu popup) {
>>>>>>> Stashed changes
}
}
4 changes: 0 additions & 4 deletions populator/src/testingBranchingongit.java

This file was deleted.

24 changes: 24 additions & 0 deletions stuff todo to not lose hannahs work on git.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
things to do so that hannahs changes are not lost

git stash
to stash her changes so that we dont lose them

git pull origin master
to update her local repo

git checkout hannah
to swith to her branch

git apply
to apply the stashed changes to her branch

git add
add her changes to be commited

git coomit -m
to commit her changes

git push origin hannah
to push her changes to her branch then merge later on