Skip to content

Commit

Permalink
halfway done with bot
Browse files Browse the repository at this point in the history
  • Loading branch information
nishand17 committed Aug 3, 2016
1 parent 789543b commit 200a793
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 0 deletions.
Binary file added MainFrame$1BotButtonListener.class
Binary file not shown.
Binary file modified MainFrame$1FavoriteListener.class
Binary file not shown.
Binary file added MainFrame$1HelpButtonListener.class
Binary file not shown.
Binary file modified MainFrame$1RetweetListener.class
Binary file not shown.
Binary file modified MainFrame$1TweetButtonListener.class
Binary file not shown.
Binary file modified MainFrame$1UserLabelListener.class
Binary file not shown.
Binary file modified MainFrame$1tweetTextListener$1favoriteLabelListener.class
Binary file not shown.
Binary file modified MainFrame$1tweetTextListener$1retweetLabelListener.class
Binary file not shown.
Binary file modified MainFrame$1tweetTextListener.class
Binary file not shown.
Binary file modified MainFrame.class
Binary file not shown.
10 changes: 10 additions & 0 deletions MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,14 @@ private void addLeftPanel () {

JPanel botHeadingPanel = new JPanel(new GridLayout(1,2));
JLabel botHeadingLabel = new JLabel("T4J Bot");
botHeadingLabel.setFont(defaultUIFontBold);
JLabel botHeadingHelpPanel = new JLabel();
ImageIcon help = createImageIcon("help_button.png");
botHeadingHelpPanel.setIcon(help);
JTextField botText = new JTextField();
botHeadingPanel.add(botHeadingLabel);
botHeadingPanel.add(botHeadingHelpPanel);
JButton botDoneButton = new JButton("Request");
leftPanel.add(botHeadingPanel);
leftPanel.add(botText);
// add current user info to currentUserAccountPanel
Expand Down Expand Up @@ -229,6 +231,14 @@ else if (newTweetString==null) {
}
}
tweetButton.addActionListener(new TweetButtonListener()); // add new instance of TweetButtonListener to the TweetButton

class HelpButtonListener implements ActionListener {
public void actionPerformed (ActionEvent e) {}
}

class BotButtonListener implements ActionListener {
public void actionPerformed (ActionEvent e) {}
}
leftPanel.setBorder(new TitledBorder(new EtchedBorder())); // set border of entire left panel, make it visible (etched)
overallPanel.add(leftPanel, BorderLayout.WEST); // add the leftPanel to the overall panel on the left (west) side

Expand Down

0 comments on commit 200a793

Please sign in to comment.