Restructured view package
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@17 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
839e020f4b
commit
96cb745488
8 changed files with 16 additions and 8 deletions
Before Width: | Height: | Size: 412 KiB After Width: | Height: | Size: 412 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Graphics;
|
||||
|
@ -9,10 +9,11 @@ import javax.swing.JPanel;
|
|||
|
||||
import jrummikub.model.Stone;
|
||||
import jrummikub.model.StoneColor;
|
||||
import jrummikub.view.IBoard;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class Board extends JPanel implements IBoard {
|
||||
private final static ImageIcon background = new ImageIcon(Board.class.getResource("resource/wood.png"));
|
||||
private final static ImageIcon background = new ImageIcon(Board.class.getResource("/jrummikub/resource/wood.png"));
|
||||
|
||||
Board() {
|
||||
super(true);
|
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Dimension;
|
||||
|
@ -16,6 +16,8 @@ import javax.swing.JProgressBar;
|
|||
|
||||
import jrummikub.util.Event;
|
||||
import jrummikub.util.IEvent;
|
||||
import jrummikub.view.IBoard;
|
||||
import jrummikub.view.IPlayerPanel;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class PlayerPanel extends JPanel implements IPlayerPanel {
|
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
|
@ -8,9 +8,11 @@ import javax.swing.ImageIcon;
|
|||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
import jrummikub.view.ITable;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class Table extends JPanel implements ITable {
|
||||
private final static ImageIcon background = new ImageIcon(Board.class.getResource("resource/felt.png"));
|
||||
private final static ImageIcon background = new ImageIcon(Board.class.getResource("/jrummikub/resource/felt.png"));
|
||||
|
||||
private JLabel leftPlayerLabel, topPlayerLabel, rightPlayerLabel;
|
||||
private JPanel innerPanel;
|
|
@ -1,4 +1,4 @@
|
|||
package jrummikub.view;
|
||||
package jrummikub.view.impl;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Color;
|
||||
|
@ -8,6 +8,9 @@ import javax.swing.JFrame;
|
|||
import javax.swing.UIManager;
|
||||
|
||||
import jrummikub.util.IListener;
|
||||
import jrummikub.view.IPlayerPanel;
|
||||
import jrummikub.view.ITable;
|
||||
import jrummikub.view.IView;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
public class View extends JFrame implements IView {
|
Reference in a new issue