📄 configureprintpagepanel.java
字号:
package com.flying.screen;
import com.flying.util.*;
import com.flying.business.*;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JSlider;
import javax.swing.JEditorPane;
import javax.swing.JTextField;
public class ConfigurePrintPagePanel extends JPanel {
/**
* This is the default constructor
*/
public ConfigurePrintPagePanel() {
super();
initialize();
}
protected void paintComponent(Graphics g) {
super.paintComponent(g);
//画背景
if(imageURL == null || imageURL.trim().equals(""))
return;
Image image = new ImageIcon(this.imageURL).getImage();
g.drawImage(image, 0, 0, getWidth(), getHeight(), this);
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
lblFrameSpaceBetween = new JLabel();
lblFrameSpaceBetween.setText("FrameSpaceBetween");
lblFrameHeight = new JLabel();
lblFrameHeight.setText("FrameHeight");
lblLeftSafeLine = new JLabel();
lblLeftSafeLine.setText("LeftSafeLine");
lblLeftFrameMargin = new JLabel();
lblLeftFrameMargin.setText("LeftFrameMargin");
lblNumberHeight = new JLabel();
lblNumberHeight.setText("NumberHeight");
lblPageWidth = new JLabel();
lblPageWidth.setText("PageWidth");
lblPageHeight = new JLabel();
lblPageHeight.setText("PageHeight");
lblLeftPageMargin = new JLabel();
lblLeftPageMargin.setText("LeftPageMargin");
lblTopPageMargin = new JLabel();
lblTopPageMargin.setText("TopPageMargin");
this.setPreferredSize(new Dimension(800, 540));
//设置页面布局
this.setLayout(new XYLayout(800, 540));
//左页边
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -