今天学到AWT编程时,照着书上的代码打,代码如下: import java.awt.*; public class PanelTest{ public static void main(String[] args) { Frame f = new Frame("小熊"); //创建一个Panel容器 Panel p = new Panel(); //向Panel容器中添加两个组件 p.add(new Te
procedure TForm1.btn1Click(Sender: TObject); begin with TForm2.Create(self) do begin ManualDock(self); WindowState := wsMaximized; Align := alClient; Show; end; end; http://blog.csdn.net/shuaihj/article/details/6371904
在WPF中设计登录窗口关闭时打开主窗口,自动生成的App.xaml不能满足要求, 1.把App.xaml的属性窗口中的生成操作设定为 无 2.添加Program类 static class Program { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main() { LoginWindow loginForm = new Lo
建一个服务端类ChatServer,用于设置端口接收连接 package com.swift; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; public class ChatServer { public static void main(String[] args) { try { ServerSocket ss = new ServerSocket(8888); for (