mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 12:02:05 +01:00
Fix style issues in EnhancedDebugger
This commit is contained in:
parent
b5209f4701
commit
74e3d56ba2
1 changed files with 8 additions and 10 deletions
|
@ -324,21 +324,19 @@ public class EnhancedDebugger extends SmackDebugger {
|
||||||
menu.add(menuItem1);
|
menu.add(menuItem1);
|
||||||
// Add listener to the text area so the popup menu can come up.
|
// Add listener to the text area so the popup menu can come up.
|
||||||
messageTextArea.addMouseListener(new PopupListener(menu));
|
messageTextArea.addMouseListener(new PopupListener(menu));
|
||||||
// CHECKSTYLE:OFF
|
JPanel sublayout = new JPanel(new BorderLayout());
|
||||||
JPanel sublayout = new JPanel(new BorderLayout());
|
|
||||||
sublayout.add(new JScrollPane(messageTextArea), BorderLayout.CENTER);
|
sublayout.add(new JScrollPane(messageTextArea), BorderLayout.CENTER);
|
||||||
|
|
||||||
JButton clearb = new JButton("Clear All Packets");
|
JButton clearb = new JButton("Clear All Packets");
|
||||||
|
|
||||||
clearb.addActionListener(new AbstractAction() {
|
clearb.addActionListener(new AbstractAction() {
|
||||||
private static final long serialVersionUID = -8576045822764763613L;
|
private static final long serialVersionUID = -8576045822764763613L;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e) {
|
public void actionPerformed(ActionEvent e) {
|
||||||
messagesTable.setRowCount(0);
|
messagesTable.setRowCount(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// CHECKSTYLE:ON
|
|
||||||
|
|
||||||
sublayout.add(clearb, BorderLayout.NORTH);
|
sublayout.add(clearb, BorderLayout.NORTH);
|
||||||
allPane.setBottomComponent(sublayout);
|
allPane.setBottomComponent(sublayout);
|
||||||
|
|
Loading…
Reference in a new issue