Move (most) hardcoded defaults to MazeDefault
- harcoded values centralized - IntegerField for JTextField containing numbers - fix, can draw even if topleft position is not (0,0) ( ie if scrollbar were used )
This commit is contained in:
14
java/org/artisanlogiciel/games/maze/gui/component/Panel.java
Normal file
14
java/org/artisanlogiciel/games/maze/gui/component/Panel.java
Normal file
@@ -0,0 +1,14 @@
|
||||
package org.artisanlogiciel.games.maze.gui.component;
|
||||
|
||||
import javax.swing.*;
|
||||
|
||||
public class Panel
|
||||
extends JPanel {
|
||||
|
||||
protected void addField(IntegerField pField)
|
||||
{
|
||||
add(pField.getLabel());
|
||||
add(pField.getTextField());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user