Skip to content

Commit

Permalink
Merge 4f17f58 into 701a41d
Browse files Browse the repository at this point in the history
  • Loading branch information
icklesteve committed Aug 28, 2018
2 parents 701a41d + 4f17f58 commit b0cae66
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions java/src/jmri/jmrix/can/cbus/swing/console/CbusConsolePane.java
Expand Up @@ -130,7 +130,7 @@ public class CbusConsolePane extends jmri.jmrix.can.swing.CanPanel implements Ca
protected JPanel statsPane;
protected JPanel rxPacketPane;
protected JPanel sendPacketPane;
protected JPanel SendEvPane;
protected JPanel sendEvPane;
protected JPanel logOptionspane;

protected JRadioButton onButton = new JRadioButton();
Expand Down Expand Up @@ -602,35 +602,35 @@ public void actionPerformed(ActionEvent e) {
});

// Pane for constructing event to send
SendEvPane = new JPanel();
sendEvPane = new JPanel();

SendEvPane.setVisible(true);
sendEvPane.setVisible(true);
showSendEventCheckBox.setSelected(false);


SendEvPane.setBorder(BorderFactory.createTitledBorder(
sendEvPane.setBorder(BorderFactory.createTitledBorder(
BorderFactory.createEtchedBorder(), Bundle.getMessage("ButtonSendEvent")));

nnField = new JTextField("0", 5);
nnField.setToolTipText("<html>" + Bundle.getMessage("ToolTipNodeNumber") + "<br>" +
Bundle.getMessage("ToolTipPrefix") + "</html>");
SendEvPane.add(nodeNumberLabel);
SendEvPane.add(nnField);
sendEvPane.add(nodeNumberLabel);
sendEvPane.add(nnField);

evField = new JTextField("0", 5);
evField.setToolTipText("<html>" + Bundle.getMessage("ToolTipEvent") + "<br>" +
Bundle.getMessage("ToolTipPrefix") + "</html>");
SendEvPane.add(eventLabel);
SendEvPane.add(evField);
sendEvPane.add(eventLabel);
sendEvPane.add(evField);

onOffGroup.add(onButton);
onOffGroup.add(offButton);
SendEvPane.add(onButton);
SendEvPane.add(offButton);
SendEvPane.add(sendEvButton);
SendEvPane.add(decimalCheckBoxC);
SendEvPane.setVisible(false);
southPane.add(SendEvPane);
sendEvPane.add(onButton);
sendEvPane.add(offButton);
sendEvPane.add(sendEvButton);
sendEvPane.add(decimalCheckBoxC);
sendEvPane.setVisible(false);
southPane.add(sendEvPane);

add(southPane, BorderLayout.SOUTH);

Expand Down Expand Up @@ -680,7 +680,7 @@ public void actionPerformed(ActionEvent e) {
showSendEventCheckBox.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
SendEvPane.setVisible(showSendEventCheckBox.isSelected());
sendEvPane.setVisible(showSendEventCheckBox.isSelected());
}
});

Expand Down Expand Up @@ -738,7 +738,7 @@ public void actionPerformed(java.awt.event.ActionEvent e) {


ActionListener logenteraction = ae -> {
TextToLogButtonActionPerformed(ae);
textToLogButtonActionPerformed(ae);
};

logenterButton.addActionListener(logenteraction);
Expand Down Expand Up @@ -969,7 +969,7 @@ public void openLogFileActionPerformed(java.awt.event.ActionEvent e) throws IOEx
}


public void TextToLogButtonActionPerformed(java.awt.event.ActionEvent e) {
public void textToLogButtonActionPerformed(java.awt.event.ActionEvent e) {
nextLine(entryField.getText() + "\n", entryField.getText() + "\n", "", -1);
}

Expand Down Expand Up @@ -1435,7 +1435,7 @@ public CbusHighlightPainter(Color color) {
* Keeps the message log windows to a reasonable length
* https://community.oracle.com/thread/1373400
*/
public class TextAreaFIFO extends JTextArea implements DocumentListener {
protected static class TextAreaFIFO extends JTextArea implements DocumentListener {
private int maxLines;

public TextAreaFIFO(int lines) {
Expand Down

0 comments on commit b0cae66

Please sign in to comment.