1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Fix style issues in EnhancedDebugger

This commit is contained in:
Florian Schmaus 2018-03-28 14:47:20 +02:00
parent b5209f4701
commit 74e3d56ba2

View file

@ -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);