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:
philippe lhardy
2020-12-15 22:26:57 +01:00
parent 14b6d9ff1d
commit b8cb7394cd
8 changed files with 274 additions and 110 deletions

View 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());
}
}