Skip to content
Snippets Groups Projects
Commit ebcab443 authored by Daniel Schramm's avatar Daniel Schramm
Browse files

Minor corrections of javadoc and code style

parent 9ee50dba
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ import javax.swing.text.NumberFormatter;
*/
public class ControlPanelBuilder {
public static final Font CAPTION_FONT= new Font("Arial", 1, 18);
public static final Font CAPTION_FONT = new Font("Arial", 1, 18);
public static final Insets CAPTION_PADDING = new Insets(20, 0, 20, 0); // top, left, bottom, right
public static final ImageIcon HELP_ICON = new ImageIcon(ControlPanelBuilder.class.getResource("/info.png"));
public static final Font OPTION_TEXT_FONT = new Font("Arial", 1, 14);
......@@ -146,7 +146,7 @@ public class ControlPanelBuilder {
* @param helpAction Action listener invoked when the help icon is clicked. If {@code null}, then no help is shown.
* @param text Option text.
* @param sliderMax Max value of the slider (and the value field). If {@code -1}, then percentage slider is shown with 100 as the max. value.
* @param helpAction Action listener invoked when the input field is changed
* @param inputAction Action listener invoked when the input field is changed
* @return Creates slider
*/
public JTextField addSliderOptionLine(ActionListener helpAction, String text, int sliderMax, ActionListener inputAction) {
......@@ -307,7 +307,7 @@ public class ControlPanelBuilder {
* Adds a check box.
*
* @param selected Initial state
* @param actions Action listener invoked when the checkbox is clicked.
* @param action Action listener invoked when the checkbox is clicked.
* @return This builder
*/
public JCheckBox addCheckBox(boolean selected, ActionListener action) {
......@@ -330,7 +330,7 @@ public class ControlPanelBuilder {
/**
* Adds a help icon.
*
* @param actions Action listener invoked when the icon is clicked.
* @param action Action listener invoked when the icon is clicked.
* @return This builder
*/
public JButton addOptionHelpIcon(ActionListener action) {
......@@ -428,5 +428,5 @@ public class ControlPanelBuilder {
return slider;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment