搜索资源列表
Java布局管理器使用方法
- 很多初学者在用Java布局器自动布局画界面时,经常遇见不知道如何定义区域大小或按钮之间的距离等问题。我写过一篇《实现JAVA手动布局中各个组件能随窗口变化的方法》的文章,有读者反映算坐标不好算,问能不能用布局器实现文章中的界面。其实自动布局也可以解决定义区域大小或按钮之间的距离等问题,只是没有手动布局那么灵活。下面我就举一个例子。 -many beginners in using Java for automatic layout interface layout painting, met o
jichengshili
- 用java实现继承实例,主要是坐标中点的实现还有测试用例-with java achieve inheritance example, the midpoint of the coordinates is also achieving Test
JavaExtract
- java applet 曲线坐标 动态是先曲线坐标以及取直运算 -java applet curvilinear coordinates dynamic first curvilinear coordinates and straightened Operators
PaintRect
- 这是两个画矩形的小程序、程序主要通过获取鼠标的坐标,和结束的坐标来画出这个矩形,并且在画面上可以保存已画的矩形,设定了可画的个数限定。以此类推,可以作出一个画板来啦-This two small rectangular painting processes, procedures, primarily through the acquisition mouse coordinates, and ending coordinates of the rectangle to paint, and t
JAVAstudycode
- 画脸形、文件压缩、园形统计图、坐标变换、在JAVA中实现链表
MouseListenerApplet
- java 中的 鼠标事件 的实现 通过鼠标移动给出坐标-java of the mouse to achieve given by the mouse coordinates Mobile
centerJFrame
- 默认情况下窗口总是以(0,0)为坐标显示,此代码用于java中居中显示窗口
Text4
- 此文件是一个java的图形程序,功能是输入圆的坐标和大小,就能生成相应的圆
MyLine
- 输入两个点的坐标,可求出它们之间的距离,并判断它们是否在第一象限
ColorDisc
- 使用绘制圆弧的方法,输出一个统计图表“圆饼图”和一个“折扇”。 原始数据在数组Data中,这5个数据在圆饼图中为角度不同的扇形,各自角度的计算值分别为38、91、54、125、53,放在数组drgree中。第一个数据的扇形起始角start=0,用绿色画。第二个的起始角start=38,用蓝色画。最后一个的起始角start=308,用橙色画。 折扇的画法是:在左上角坐标(130,40),长150,宽80的椭圆区域内,从22度开始逆时针地画一个15度的扇性,再画一段15度的椭圆弧;然后交替地画扇形和
LVQUEEN
- 运行环境: JDK1.4以上 程序编写软件:JCreator Application1.java为主类,如果装有JCreator,直接用JCreator打开Application1.java 程序就可以运行。 点击‘八皇后演示’ 会跳出个Frame,可以输入第一行起点的坐标比如‘3’的话,第一行会从第三个开始演示。 点击‘快速排序’会把TARRAY.DAT文件里面的数据用快速排序的方法进行排序 注意:在程序编写时候 TARRAY.DAT 是放在 D:\\
CoordinateConversion
- 有地理坐标转换为投影坐标或者说转换为平面直角坐标
bao
- (1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int
Triangle
- 我自己写的java程序,实现输入三个点的坐标,输出能否构成三角形并输出面积和周长-I wrote it myself java process, input the coordinates of three points, the output can constitute a triangle and the output area and perimeter
java
- 定义一个点类成员包括横坐标和纵坐标成员方法包括构造方法和拷贝析构方法输出坐标和验证-Define a point of class members, including members of the abscissa and ordinate methods include copy constructor and destructor methods and validation of the output coordinates
zuobiao
- 这是 坐标的一些程序 很好玩的 大家可以-You can hava a try
lxjz
- java写的螺旋矩阵 可以自己设定坐标和值 螺旋矩阵算法编程,沿各个矩形边框依次给矩阵的每一个元素赋值,在计算机内存中构造一个完整的螺旋矩阵,然后输出-java write spiral matrix can be set for the coordinates and the value of spiral matrix algorithm for programming, along the border of each rectangle in turn to the matrix o
MousePressEvent
- 用JAVA编写的小程序,主要是用于获取鼠标在窗口内的坐标-Written using JAVA applets, is mainly used to obtain the coordinates of the mouse in the window
siyoubianliang
- 说明其它类引用一个类中的私有变量的方法,在屏幕上输出起点和移动后的点的坐标。-Help Others refer to a class of private variables by way of the output from the screen and the coordinates of the point after moving.
Point
- 点的坐标平移,输出平移前的坐标和平移后的坐标(Translation of points)