⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 narrowwizardpage.java

📁 这是一个以JAVA编写的程序,本人还没有试过,是一个简单的温度控制系统
💻 JAVA
字号:
package net.sf.dz.util.wizard;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import javax.swing.JPanel;import org.freehold.jukebox.logger.Logger;/** * A helper class to simplify layout. * * Most of the wizard pages have to fill the whole vertical extent of * the content pane, however, they look ugly unless they have a zero * horizontal weight. * * @author Copyright &copy; <a href="mailto:vt@freehold.crocodile.org">Vadim Tkachenko</a> 2001-2002 * @version $Id: NarrowWizardPage.java,v 1.2 2004/07/22 06:28:49 vtt Exp $ */abstract public class NarrowWizardPage extends WizardPage {    private JPanel narrowPane = new JPanel();    private GridBagLayout narrowLayout = new GridBagLayout();    private GridBagConstraints narrowCs = new GridBagConstraints();        public NarrowWizardPage(Logger logger, Wizard owner, String title) {            super(logger, owner, title);                narrowCs.gridx = 0;        narrowCs.gridy = 0;        narrowCs.weightx = 0;        narrowCs.weighty = 1;                getContentPane().setLayout(narrowLayout);                narrowLayout.setConstraints(narrowPane, narrowCs);        getContentPane().add(narrowPane);    }        protected JPanel getNarrowPane() {            return narrowPane;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -