Primary Button
Took primaryButton class from corresponding branch. Implemented constructors in ChatWindow.
This commit is contained in:
@ -15,7 +15,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import javax.swing.DefaultListModel;
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JList;
|
||||
import javax.swing.JOptionPane;
|
||||
@ -63,8 +62,8 @@ public class ChatWindow extends JFrame {
|
||||
private JScrollPane scrollPane = new JScrollPane();
|
||||
private JTextPane textPane = new JTextPane();
|
||||
// private JCheckBox jCbChangeMode;
|
||||
private JButton postButton = new JButton("Post");
|
||||
private JButton settingsButton = new JButton("Settings");
|
||||
private PrimaryButton postButton;
|
||||
private PrimaryButton settingsButton;
|
||||
|
||||
private static int space = 4;
|
||||
|
||||
@ -155,7 +154,7 @@ public class ChatWindow extends JFrame {
|
||||
contentPane.add(messageEnterTextArea, gbc_messageEnterTextfield);
|
||||
|
||||
// Post Button
|
||||
postButton.setBorderPainted(false);
|
||||
postButton = new PrimaryButton("Post");
|
||||
GridBagConstraints gbc_moveSelectionPostButton = new GridBagConstraints();
|
||||
|
||||
gbc_moveSelectionPostButton.fill = GridBagConstraints.BOTH;
|
||||
@ -168,7 +167,7 @@ public class ChatWindow extends JFrame {
|
||||
contentPane.add(postButton, gbc_moveSelectionPostButton);
|
||||
|
||||
// Settings Button
|
||||
settingsButton.setBorderPainted(false);
|
||||
settingsButton = new PrimaryButton("Settings");
|
||||
|
||||
GridBagConstraints gbc_moveSelectionSettingsButton = new GridBagConstraints();
|
||||
|
||||
|
Reference in New Issue
Block a user