- 《Java2入门经典》源代码.zip
- 一个很小的管理系统 这是我用eclipse+tomcat开发的一个很小的 管理系统
- NeHeTutorials_Letter_Book openGL Tuturials Including setting up in Mac Os & Solaris
- CC1101 该段子程序为cc1101实例源代码
- sc_attitude-master Goal of this project is to simulate the rotational motion of a spacecraft in orbit. Plots of Euler angles and polhode curves (angular velocity time histories) are generated. Equations of Motion included in this package are for a rigid body in a torque
- commonsware_8.4 The Busy Coder's Guide to Android Development (Version 8.4)
文件名称:GridBagEx1
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:686byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
gridbaglayout example-import java.awt.*
import java.util.*
import java.applet.Applet
public class GridBagEx1 extends Applet {
protected void makebutton(String name, GridBagLayout gridbag,
GridBagConstraints c) {
Button button = new Button(name)
gridbag.setConstraints(button, c)
add(button)
}
public void init() {
GridBagLayout gridbag = new GridBagLayout()
GridBagConstraints c = new GridBagConstraints()
setFont(new Font("SansSerif", Font.PLAIN, 14))
setLayout(gridbag)
c.fill = GridBagConstraints.BOTH
c.weightx = 1.0
// makebutton("Button1", gridbag, c)
// makebutton("Button2", gridbag, c)
// makebutton("Button3", gridbag, c)
c.gridwidth = GridBagConstraints.REMAINDER // end row
makebutton("Button4", gridbag, c)
c.weightx = 0.0 // reset to the default
makebutton("Button5", gridbag, c) // another row
c.gridwidth = GridBagConstraints.RELATIVE // next-to-last in row
makebutton("Button6", gridbag, c)
c
import java.util.*
import java.applet.Applet
public class GridBagEx1 extends Applet {
protected void makebutton(String name, GridBagLayout gridbag,
GridBagConstraints c) {
Button button = new Button(name)
gridbag.setConstraints(button, c)
add(button)
}
public void init() {
GridBagLayout gridbag = new GridBagLayout()
GridBagConstraints c = new GridBagConstraints()
setFont(new Font("SansSerif", Font.PLAIN, 14))
setLayout(gridbag)
c.fill = GridBagConstraints.BOTH
c.weightx = 1.0
// makebutton("Button1", gridbag, c)
// makebutton("Button2", gridbag, c)
// makebutton("Button3", gridbag, c)
c.gridwidth = GridBagConstraints.REMAINDER // end row
makebutton("Button4", gridbag, c)
c.weightx = 0.0 // reset to the default
makebutton("Button5", gridbag, c) // another row
c.gridwidth = GridBagConstraints.RELATIVE // next-to-last in row
makebutton("Button6", gridbag, c)
c
相关搜索: java gridbaglayout
(系统自动生成,下载前可以参看下载内容)
下载文件列表
GridBagEx1.java
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
