亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tableprintdemo1.java

?? java tutotrials or beginners
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright (c) 1995 - 2008 Sun Microsystems, Inc.  All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * *   - Redistributions of source code must retain the above copyright *     notice, this list of conditions and the following disclaimer. * *   - Redistributions in binary form must reproduce the above copyright *     notice, this list of conditions and the following disclaimer in the *     documentation and/or other materials provided with the distribution. * *   - Neither the name of Sun Microsystems nor the names of its *     contributors may be used to endorse or promote products derived *     from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package misc;import javax.swing.*;import javax.swing.table.*;import javax.swing.event.*;import javax.swing.border.*;import java.awt.*;import java.awt.event.*;import java.awt.print.PrinterException;import java.text.MessageFormat;/** * Demo of the basic features of {@code JTable} printing. * Allows the user to configure a couple of options and print * a table of student grades. * <p> * Requires the following other files: * <ul> *     <li>images/passed.png *     <li>images/failed.png * </ul> * * @author Shannon Hickey */public class TablePrintDemo1 extends JFrame {    /* Check mark and x mark items to render the "Passed" column */    private static final ImageIcon passedIcon        = new ImageIcon(TablePrintDemo1.class.getResource("images/passed.png"));    private static final ImageIcon failedIcon        = new ImageIcon(TablePrintDemo1.class.getResource("images/failed.png"));    /* UI Components */    private JPanel contentPane;    private JLabel gradesLabel;    private JTable gradesTable;    private JScrollPane scroll;    private JCheckBox showPrintDialogBox;    private JCheckBox interactiveBox;    private JCheckBox fitWidthBox;    private JButton printButton;    /* Protected so that they can be modified/disabled by subclasses */    protected JCheckBox headerBox;    protected JCheckBox footerBox;    protected JTextField headerField;    protected JTextField footerField;    /**     * Constructs an instance of the demo.     */    public TablePrintDemo1() {        super("Table Printing Demo 1");        gradesLabel = new JLabel("Final Grades - CSC 101");        gradesLabel.setFont(new Font("Dialog", Font.BOLD, 16));        gradesTable = createTable(new GradesModel());        gradesTable.setFillsViewportHeight(true);        gradesTable.setRowHeight(24);        /* Set a custom renderer on the "Passed" column */        gradesTable.getColumn("Passed").setCellRenderer(createPassedColumnRenderer());        scroll = new JScrollPane(gradesTable);        String tooltipText;        tooltipText = "Include a page header";        headerBox = new JCheckBox("Header:", true);        headerBox.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                headerField.setEnabled(headerBox.isSelected());            }        });        headerBox.setToolTipText(tooltipText);        tooltipText = "Page Header (Use {0} to include page number)";        headerField = new JTextField("Final Grades - CSC 101");        headerField.setToolTipText(tooltipText);        tooltipText = "Include a page footer";        footerBox = new JCheckBox("Footer:", true);        footerBox.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                footerField.setEnabled(footerBox.isSelected());            }        });        footerBox.setToolTipText(tooltipText);        tooltipText = "Page Footer (Use {0} to Include Page Number)";        footerField = new JTextField("Page {0}");        footerField.setToolTipText(tooltipText);        tooltipText = "Show the Print Dialog Before Printing";        showPrintDialogBox = new JCheckBox("Show print dialog", true);        showPrintDialogBox.setToolTipText(tooltipText);        showPrintDialogBox.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                if (!showPrintDialogBox.isSelected()) {                    JOptionPane.showMessageDialog(                        TablePrintDemo1.this,                        "If the Print Dialog is not shown,"                            + " the default printer is used.",                        "Printing Message",                        JOptionPane.INFORMATION_MESSAGE);                }            }        });                        tooltipText = "Keep the GUI Responsive and Show a Status Dialog During Printing";        interactiveBox = new JCheckBox("Interactive (Show status dialog)", true);        interactiveBox.setToolTipText(tooltipText);        interactiveBox.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                if (!interactiveBox.isSelected()) {                    JOptionPane.showMessageDialog(                        TablePrintDemo1.this,                        "If non-interactive, the GUI is fully blocked"                            + " during printing.",                        "Printing Message",                        JOptionPane.INFORMATION_MESSAGE);                }            }        });        tooltipText = "Shrink the Table to Fit the Entire Width on a Page";        fitWidthBox = new JCheckBox("Fit width to printed page", true);        fitWidthBox.setToolTipText(tooltipText);        tooltipText = "Print the Table";        printButton = new JButton("Print");        printButton.setToolTipText(tooltipText);                printButton.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae) {                printGradesTable();            }        });        contentPane = new JPanel();        addComponentsToContentPane();        setContentPane(contentPane);        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        setSize(700, 600);        setLocationRelativeTo(null);    }    /**     * Adds to and lays out all GUI components on the {@code contentPane} panel.     * <p>     * It is recommended that you <b>NOT</b> try to understand this code. It was     * automatically generated by the NetBeans GUI builder.     *      */    private void addComponentsToContentPane() {        JPanel bottomPanel = new JPanel();        bottomPanel.setBorder(BorderFactory.createTitledBorder("Printing"));        GroupLayout bottomPanelLayout = new GroupLayout(bottomPanel);        bottomPanel.setLayout(bottomPanelLayout);        bottomPanelLayout.setHorizontalGroup(            bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)            .addGroup(bottomPanelLayout.createSequentialGroup()                .addContainerGap()                .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)                    .addComponent(headerBox)                    .addComponent(footerBox))                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)                .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)                    .addComponent(footerField)                    .addComponent(headerField, GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE))                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)                .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)                    .addGroup(bottomPanelLayout.createSequentialGroup()                        .addComponent(fitWidthBox)                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                        .addComponent(printButton))                    .addGroup(bottomPanelLayout.createSequentialGroup()                        .addComponent(showPrintDialogBox)                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)                        .addComponent(interactiveBox)))                .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))        );        bottomPanelLayout.setVerticalGroup(            bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.LEADING)            .addGroup(bottomPanelLayout.createSequentialGroup()                .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)                    .addComponent(headerBox)                    .addComponent(headerField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)                    .addComponent(interactiveBox)                    .addComponent(showPrintDialogBox))                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)                .addGroup(bottomPanelLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)                    .addComponent(footerBox)                    .addComponent(footerField, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)                    .addComponent(fitWidthBox)                    .addComponent(printButton))                .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))        );        GroupLayout layout = new GroupLayout(contentPane);        contentPane.setLayout(layout);        layout.setHorizontalGroup(            layout.createParallelGroup(GroupLayout.Alignment.LEADING)            .addGroup(layout.createSequentialGroup()                .addContainerGap()                .addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)                    .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 486, Short.MAX_VALUE)                    .addComponent(gradesLabel)                    .addComponent(bottomPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))                .addContainerGap())        );        layout.setVerticalGroup(            layout.createParallelGroup(GroupLayout.Alignment.LEADING)            .addGroup(layout.createSequentialGroup()                .addContainerGap()                .addComponent(gradesLabel)                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)                .addComponent(scroll, GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE)                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)                .addComponent(bottomPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)                .addContainerGap())        );    }    /**     * Create and return a table for the given model.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品美国一| 成人av动漫在线| 国产成人精品午夜视频免费| 色哟哟日韩精品| 亚洲精品一区二区三区精华液| 国产日韩亚洲欧美综合| 首页国产欧美日韩丝袜| 91丨porny丨在线| 一区二区国产盗摄色噜噜| 麻豆91在线播放免费| 欧美中文一区二区三区| 亚洲国产高清不卡| 久久97超碰色| 91精品在线免费| 亚洲最新视频在线观看| 成人av电影在线网| 精品国产人成亚洲区| 天使萌一区二区三区免费观看| 色偷偷88欧美精品久久久| 久久久久久久久久久久久女国产乱| 午夜av区久久| 欧美日韩中文国产| 亚洲嫩草精品久久| 94-欧美-setu| 亚洲日穴在线视频| 91一区二区三区在线观看| 中文乱码免费一区二区| 国产91精品免费| 久久精品夜夜夜夜久久| 国产在线精品视频| 久久亚洲精品小早川怜子| 九九在线精品视频| 欧美不卡一区二区三区四区| 国产日本一区二区| 国产午夜精品久久久久久免费视 | 中国色在线观看另类| 国产乱对白刺激视频不卡| 精品欧美久久久| 狠狠色狠狠色综合日日91app| 欧美精品一区二区三区四区| 老司机一区二区| 久久亚洲一区二区三区明星换脸| 国产精品综合久久| 国产精品欧美久久久久一区二区| 99re在线视频这里只有精品| 一区二区三区中文字幕精品精品| 欧美色精品在线视频| 欧美a级理论片| 精品少妇一区二区三区在线视频| 国产老肥熟一区二区三区| 国产亚洲va综合人人澡精品| 成人开心网精品视频| 亚洲欧美另类小说视频| 欧美在线短视频| 秋霞电影网一区二区| 久久美女高清视频 | 精品一区二区三区欧美| 久久久99精品免费观看不卡| 97精品久久久久中文字幕| 亚洲超碰精品一区二区| 久久久久久9999| 欧洲精品视频在线观看| 精品中文字幕一区二区| 蜜臀久久久久久久| 26uuu精品一区二区在线观看| 成人国产精品免费观看视频| 一区av在线播放| 日韩免费一区二区三区在线播放| av电影天堂一区二区在线| 亚洲午夜视频在线观看| 精品毛片乱码1区2区3区| 91在线无精精品入口| 免费精品视频最新在线| 亚洲欧美综合网| 欧美一级黄色录像| 91丨porny丨户外露出| 久草热8精品视频在线观看| 1000部国产精品成人观看| 7777精品伊人久久久大香线蕉的| 国产成人在线免费| 石原莉奈在线亚洲二区| 中文字幕一区二区三区不卡在线| 欧美tickle裸体挠脚心vk| 色悠悠亚洲一区二区| 国产高清精品网站| 日av在线不卡| 亚洲国产精品天堂| 国产精品美女一区二区三区| 欧美电影精品一区二区| 欧美午夜电影网| 91美女福利视频| 成人在线综合网站| 激情综合色丁香一区二区| 亚洲一区二区在线免费看| 国产精品久久久久久久岛一牛影视| 5858s免费视频成人| 色婷婷综合久久久中文一区二区| 粉嫩高潮美女一区二区三区| 久久国产精品一区二区| 午夜欧美大尺度福利影院在线看| 亚洲另类在线制服丝袜| 亚洲国产精华液网站w | 国产99久久久国产精品免费看 | 这里只有精品视频在线观看| 91精彩视频在线观看| 99热精品国产| 成人国产电影网| 粉嫩在线一区二区三区视频| 久久国产精品无码网站| 蜜臀av亚洲一区中文字幕| 日韩精品电影在线观看| 夜夜嗨av一区二区三区网页| 亚洲激情图片一区| 一区二区三区中文字幕在线观看| 亚洲精品乱码久久久久久久久 | 激情综合色综合久久| 日本不卡在线视频| 日本免费新一区视频| 男女视频一区二区| 久久不见久久见免费视频7 | 日本高清免费不卡视频| 99这里都是精品| 一本色道久久综合亚洲aⅴ蜜桃| 日韩一级黄色大片| 日韩欧美色综合| 日韩欧美国产一二三区| 日韩一二在线观看| 久久久精品国产免大香伊| 久久精品人人做人人爽97| 久久青草欧美一区二区三区| 国产无一区二区| 国产精品久久久久久久久快鸭| 一区精品在线播放| 亚洲愉拍自拍另类高清精品| 亚洲电影欧美电影有声小说| 日韩国产高清影视| 国精产品一区一区三区mba桃花| 国产一区二区三区在线观看免费| 国产精品18久久久久久vr| 成人午夜看片网址| 欧美无人高清视频在线观看| 欧美高清www午色夜在线视频| 欧美变态tickle挠乳网站| 中文无字幕一区二区三区 | 久久九九影视网| 亚洲视频免费在线观看| 亚洲成人777| 国产伦精一区二区三区| 99国内精品久久| 日韩三级伦理片妻子的秘密按摩| 国产女主播一区| 婷婷综合另类小说色区| 国产69精品久久久久777| 欧美视频第二页| 国产三级一区二区三区| 亚洲电影一级黄| 国产精品888| 91精品国产综合久久福利软件| 26uuu成人网一区二区三区| 亚洲精品你懂的| 国产曰批免费观看久久久| 欧美日韩中文另类| 亚洲国产精品成人综合| 日本视频一区二区| 91丨九色丨蝌蚪富婆spa| 精品sm捆绑视频| 五月婷婷久久综合| 91丨九色丨蝌蚪丨老版| 久久久精品国产免大香伊| 性做久久久久久免费观看欧美| 成人永久免费视频| 日韩欧美一级精品久久| 夜夜揉揉日日人人青青一国产精品| 久久se精品一区二区| 欧美日韩一区国产| 国产精品成人午夜| 国产一区二三区好的| 欧美日韩美女一区二区| 亚洲欧洲精品天堂一级| 国产一区二区精品久久99| 日韩网站在线看片你懂的| 亚洲综合在线观看视频| 成人va在线观看| 久久久精品国产免大香伊| 美美哒免费高清在线观看视频一区二区| 91麻豆免费在线观看| 国产日韩av一区二区| 经典一区二区三区| 日韩一区二区三| 日韩精品成人一区二区三区| 欧美中文字幕不卡| 亚洲自拍偷拍图区| 日本福利一区二区| 一区二区三区免费| 日本高清成人免费播放| 亚洲女子a中天字幕| 99热精品国产| 亚洲精品videosex极品| 9l国产精品久久久久麻豆| 国产精品久久久久7777按摩|