摘要:
1 public class Random200_300 { 2 public static void main(String[] args) { 3 int r1 = 0; 4 while (true) { 5 r1 = (int)(Math.random() * 10) * 10 + 200; 6 ... 阅读全文
摘要:
效果图如下: 思路:创建一个窗口,使其居中于屏幕中央,使用drawRect(x, y, width, height)画正方形。 阅读全文
摘要:
参考:https://www.cnblogs.com/hongten/archive/2012/11/26/hongten_java_ImageReader_BufferedImage.html 这个没看懂! ############################################# 阅读全文
摘要:
1 import java.awt.Toolkit; 2 3 import javax.swing.JFrame; 4 5 public class WindowInTheMiddle extends JFrame { 6 public static void main(String[] args) { 7 WindowInTheMiddle win... 阅读全文
摘要:
创建一个新窗口,通过getSize()获取这个窗口的宽、高。 阅读全文
摘要:
import java.util.Scanner; public class TestScanner { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.print("Password: "); lo... 阅读全文
摘要:
import java.awt.Insets; import javax.swing.JFrame; public class NewFrame { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setSize(500, 500); ... 阅读全文
摘要:
参考:https://blog.csdn.net/m_wbcg/article/details/55548654 阅读全文
摘要:
1、进入元器件编辑界面 2、菜单:Options > Part Properties... 3、在窗口User Properties中,点击按钮New... 4、在弹出的子窗口NewProperties中,即可填写期望的Name与Value,点击OK确认 5、这样即可添加新的属性,最后别忘了点击OK 阅读全文
摘要:
关于函数“LockWorkStation()”,参见:https://msdn.microsoft.com/en-us/library/windows/desktop/aa376875.aspx How to Lock the Workstation (如何锁定工作站),参见:https://msd 阅读全文