How to use API doc(demo) to create s square rectangle?
来源:互联网 发布:传奇源码完整版 编辑:程序博客网 时间:2024/06/01 10:27
// Rectangle(Dimension d) // Constructs a new Rectangle whose top left corner is (0, 0) // and whose width and height are specified by the Dimension argument.// Dimension(Dimension d) // Creates an instance of Dimension whose width and height // are the same as for the specified dimensionimport java.awt.Dimension;import java.awt.Rectangle;public class TestJava { public static void main(String[] args) { Dimension d = new Dimension(100, 100); Rectangle square = new Rectangle(d); System.out.println(square); }}
0 0
- How to use API doc(demo) to create s square rectangle?
- How to Create and Use the DLL
- A demo shows how to use TableLayout
- how to use Dom to create and remove element
- How to use VB6.0's Event.
- How to Use C's volatile Keyword
- How to Use C's volatile Keyword
- How to Use C's volatile Keyword
- How to use Google's protocol-buffer
- How to use Qt’s QSortFilterProxyModel
- How to use Spring’s WebApplicationInitializer
- How to use the VideoIO API?
- How to Use Google API Keys
- How to Create, Use and Maintain DataStage 8 Parameter Sets
- How to: Create and Use a Data Connection Library
- How to use freetts create/generate a wave file
- how-to-create-and-use-your-own-icon-fonts
- how to create a stacked chart use jasper
- 学习html(1)
- 开源 java CMS - FreeCMS2.3会员头像设置
- 128.删除一维数组中相同的数
- 【UNIX网络编程】广播与多播
- windows下,python基于SocketServer模拟实现SSH(多线程版)
- How to use API doc(demo) to create s square rectangle?
- 如何为你的代码选择一个开源协议
- [华为上机练习题]7.删除字符串中出现次数最少的字符
- spring依赖注入失效的原因之一
- 转一篇汇编语言的好文
- 图片获得焦点变大并显示在最前方,覆盖后面的图片
- 与SQL SERVER 安全控制相关的几点说明
- GUI编程及文件对话框的使用
- 字符串相关