customerclient.java
来自「这是一个买卖系统,一个模拟的系统,根据下订单,看订单,买,等功能」· Java 代码 · 共 34 行
JAVA
34 行
package Clients;
import javax.swing.*;
import Middle.*;
/**
* The Customer Client
* @author Michael Alexander Smith
* @version 2.0
*/
public class CustomerClient
{
public static void main (String args[])
{
String stockURL = args.length < 1 // URL of stock R
? Names.STOCK_R // default location
: args[0]; // supplied location
RemoteMiddleFactory mrf = new RemoteMiddleFactory();
mrf.setStockRInfo( stockURL );
displayGUI(mrf); // Create GUI
}
public static void displayGUI(MiddleFactory mf)
{
JFrame window1 = new JFrame();
window1.setTitle( "Customer Client (RMI)");
window1.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
new CustomerGUI( window1, mf );
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?