Skip to content

Commit

Permalink
removed unnecessary classes, added MainFrame
Browse files Browse the repository at this point in the history
  • Loading branch information
chern committed May 11, 2016
1 parent 673fb88 commit 4497c8c
Show file tree
Hide file tree
Showing 20 changed files with 97 additions and 79 deletions.
Binary file removed ClientStarter.class
Binary file not shown.
Binary file modified ComposeTweetFrame$1TweetButtonListener.class
Binary file not shown.
Binary file modified ComposeTweetFrame.class
Binary file not shown.
1 change: 1 addition & 0 deletions ComposeTweetFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class ComposeTweetFrame
{
// instance fields
private JFrame fr;
private JPanel jp;
private Font defaultUIFont;
private JTextField newTweetTextField;
private JButton tweetButton;
Expand Down
Binary file added MainFrame.class
Binary file not shown.
4 changes: 4 additions & 0 deletions MainFrame.ctxt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#BlueJ class context
comment0.params=
comment0.target=MainFrame()
numComments=1
34 changes: 34 additions & 0 deletions MainFrame.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JTextField;
import javax.swing.ImageIcon;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.image.BufferedImage;

/**
* Write a description of class MainFrame here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MainFrame
{
JFrame fr;


public MainFrame() {
fr = new JFrame("Twit4Java");
}
}
Binary file removed ProfileFrame.class
Binary file not shown.
2 changes: 0 additions & 2 deletions ProfileFrame.ctxt

This file was deleted.

11 changes: 0 additions & 11 deletions ProfileFrame.java

This file was deleted.

Binary file removed TimelineFrame.class
Binary file not shown.
2 changes: 0 additions & 2 deletions TimelineFrame.ctxt

This file was deleted.

11 changes: 0 additions & 11 deletions TimelineFrame.java

This file was deleted.

Binary file modified Tweet.class
Binary file not shown.
8 changes: 7 additions & 1 deletion Tweet.ctxt
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
#BlueJ class context
numComments=0
comment0.params=u\ t
comment0.target=Tweet(java.lang.String,\ java.lang.String)
comment1.params=
comment1.target=java.lang.String\ getUser()
comment2.params=
comment2.target=java.lang.String\ getTweetText()
numComments=3
20 changes: 17 additions & 3 deletions Tweet.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@

/**
* Write a description of class Tweet here.
* Tweet
*
* @author (your name)
* @version (a version number or a date)
* @author William Chern
* @version 5/11/2016
*/
public class Tweet
{
private String userHandle;
private String tweetText;

public Tweet(String u, String t) {
userHandle = u;
tweetText = t;
}

public String getUser() {
return userHandle;
}

public String getTweetText() {
return tweetText;
}
}
Binary file added TwitStarter.class
Binary file not shown.
File renamed without changes.
3 changes: 2 additions & 1 deletion ClientStarter.java → TwitStarter.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@


/**
*
* @author William Chern
* @version 5/3/2016
*/
public class ClientStarter
public class TwitStarter
{
public static void main (String[] args) {

Expand Down
80 changes: 32 additions & 48 deletions package.bluej
Original file line number Diff line number Diff line change
@@ -1,74 +1,71 @@
#BlueJ package file
dependency1.from=ClientStarter
dependency1.to=LoginFrame
dependency1.type=UsesDependency
objectbench.height=76
objectbench.width=703
package.editor.height=388
package.editor.width=595
package.editor.x=36
package.editor.y=38
package.numDependencies=1
package.numTargets=7
package.numDependencies=0
package.numTargets=6
package.showExtends=true
package.showUses=true
project.charset=UTF-8
readme.editor.height=700
readme.editor.width=900
readme.editor.x=0
readme.editor.y=23
target1.editor.height=773
target1.editor.width=640
target1.editor.x=0
target1.editor.y=23
target1.editor.height=714
target1.editor.width=1116
target1.editor.x=76
target1.editor.y=44
target1.height=50
target1.name=LoginFrame
target1.name=AuthTest
target1.naviview.expanded=false
target1.showInterface=false
target1.type=ClassTarget
target1.typeParameters=
target1.width=100
target1.x=80
target1.y=200
target2.editor.height=714
target2.editor.width=1116
target2.editor.x=76
target2.editor.y=44
target1.width=80
target1.x=90
target1.y=280
target2.editor.height=700
target2.editor.width=900
target2.editor.x=78
target2.editor.y=67
target2.height=50
target2.name=AuthTest
target2.name=ClientStarter
target2.naviview.expanded=false
target2.showInterface=false
target2.type=ClassTarget
target2.typeParameters=
target2.width=80
target2.x=90
target2.y=280
target2.width=100
target2.x=70
target2.y=10
target3.editor.height=700
target3.editor.width=900
target3.editor.x=78
target3.editor.y=67
target3.editor.x=76
target3.editor.y=58
target3.height=50
target3.name=ClientStarter
target3.name=Tweet
target3.naviview.expanded=false
target3.showInterface=false
target3.type=ClassTarget
target3.typeParameters=
target3.width=100
target3.x=70
target3.y=10
target4.editor.height=700
target4.editor.width=900
target4.editor.x=76
target4.editor.y=58
target3.width=80
target3.x=470
target3.y=280
target4.editor.height=737
target4.editor.width=1016
target4.editor.x=212
target4.editor.y=28
target4.height=50
target4.name=Tweet
target4.name=ComposeTweetFrame
target4.naviview.expanded=false
target4.showInterface=false
target4.type=ClassTarget
target4.typeParameters=
target4.width=80
target4.x=470
target4.y=280
target4.width=160
target4.x=200
target4.y=10
target5.editor.height=700
target5.editor.width=900
target5.editor.x=76
Expand All @@ -95,16 +92,3 @@ target6.typeParameters=
target6.width=120
target6.x=360
target6.y=200
target7.editor.height=737
target7.editor.width=1016
target7.editor.x=212
target7.editor.y=28
target7.height=50
target7.name=ComposeTweetFrame
target7.naviview.expanded=false
target7.showInterface=false
target7.type=ClassTarget
target7.typeParameters=
target7.width=160
target7.x=200
target7.y=10

0 comments on commit 4497c8c

Please sign in to comment.