waitingview.java

来自「手机无线网络纸牌游戏源代码。非常适合学习使用」· Java 代码 · 共 35 行

JAVA
35
字号
// WaitingView.java
//
// Copyright (c) 2000-2001 Symbian Ltd. All rights reserved

package com.symbian.devnet.whist.awt;

import java.io.*;

import java.awt.*;
import java.awt.Image.*;
import java.awt.Graphics.*;
import com.symbian.devnet.quartz.awt.*;

/** 
 * Allows some ingformation to be displayed while the user is waiting for
 * the game to be set up.
 * @author Symbian Devnet
 */
public class WaitingView
{
	/** The <code>Panel</code> used to display the information on. */
	private Panel panel;
	/** A <code>Label</code> which contains the message to be displayed */
	private Label label1 = new Label("A message has been sent to the other players, /n configuring their machines for the game. /nPlease wait as this may take some time", Label.CENTER); 

	/**
	 * Constructor which displays the relevant message on the screen.
	 */
	public WaitingView(Panel p)
	{
		panel = p;
		panel.setLayout(new GridLayout(1,1));
		panel.add(label1);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?