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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? tableprintdemo1.java

?? java tutotrials or beginners
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* * 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.

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久在线免费观看| 国产精品成人一区二区艾草 | 91美女精品福利| 日韩中文字幕不卡| 1区2区3区欧美| 久久久精品日韩欧美| 欧美一区日韩一区| 色婷婷av一区二区三区gif| 国产一区二区三区| 丝袜亚洲精品中文字幕一区| 中文字幕一区av| 久久美女高清视频| 日韩精品在线网站| 56国语精品自产拍在线观看| 91小视频在线| 99久久精品免费看国产免费软件| 免费高清在线视频一区·| 亚洲免费资源在线播放| 国产欧美日韩激情| 久久久久久毛片| 日韩精品一区二区三区中文不卡| 欧美日韩美少妇| 欧美亚洲国产一区二区三区va| 国产激情精品久久久第一区二区| 麻豆一区二区99久久久久| 一区二区三区久久| 亚洲欧美国产高清| 国产精品国产自产拍在线| 国产欧美日韩三区| 国产欧美一区在线| 国产亚洲一区二区三区在线观看| 日韩欧美国产综合一区 | 欧美成人精精品一区二区频| 欧美日韩精品福利| 欧美视频一区二区三区四区| 91福利视频网站| 精品视频一区二区不卡| 欧美在线看片a免费观看| 欧美日韩精品综合在线| 欧美剧在线免费观看网站| 欧美婷婷六月丁香综合色| 欧美性猛片xxxx免费看久爱| 欧美人与z0zoxxxx视频| 欧美疯狂做受xxxx富婆| 91精品久久久久久久91蜜桃| 日韩三级免费观看| 精品日本一线二线三线不卡| 精品国产伦一区二区三区免费 | 一区二区三区丝袜| 午夜久久久影院| 麻豆91精品视频| 国产99久久久精品| www.亚洲人| 欧美综合视频在线观看| 6080国产精品一区二区| 精品福利av导航| 国产精品九色蝌蚪自拍| 伊人性伊人情综合网| 热久久一区二区| 国产一区二区三区观看| 99久久精品99国产精品| 欧美日本高清视频在线观看| 精品国产一区二区三区久久久蜜月| 久久久久久99久久久精品网站| 国产精品欧美极品| 亚洲一区视频在线| 九九精品一区二区| 91社区在线播放| 欧美精三区欧美精三区| 久久精品视频免费| 一区二区三区四区国产精品| 美国毛片一区二区三区| 99热这里都是精品| 69堂国产成人免费视频| 国产农村妇女毛片精品久久麻豆 | 日韩成人精品在线| 成人综合激情网| 欧美色偷偷大香| 久久久久久久久99精品| 亚洲已满18点击进入久久| 久久99精品久久久久久久久久久久| 成人教育av在线| 在线播放91灌醉迷j高跟美女 | 亚洲国产一区二区三区| 美女在线观看视频一区二区| 成人av电影在线播放| 91麻豆精品国产91久久久久久久久 | 欧美一区三区四区| 中文字幕欧美一区| 免费人成在线不卡| 色偷偷一区二区三区| 久久亚洲一区二区三区明星换脸 | 亚洲三级免费电影| 久久99精品国产91久久来源| 色婷婷久久久久swag精品| 国产亚洲欧美中文| 日韩和的一区二区| 99精品1区2区| 国产色91在线| 美女一区二区在线观看| 在线观看日韩电影| 国产精品女同一区二区三区| 久久国产人妖系列| 9191久久久久久久久久久| 亚洲欧洲综合另类在线| 国产精品一二三在| 欧美不卡在线视频| 日本在线不卡视频| 欧美日韩中文国产| 夜夜爽夜夜爽精品视频| 99精品在线免费| 欧美国产日产图区| 国产一区亚洲一区| 日韩视频一区在线观看| 婷婷六月综合亚洲| 欧美三级韩国三级日本三斤| 亚洲欧洲综合另类在线| 成人久久久精品乱码一区二区三区| 日韩欧美色综合| 蜜桃久久久久久| 在线观看91av| 日韩精品电影在线观看| 欧美日韩国产首页| 亚洲国产精品久久人人爱蜜臀 | 国产精品中文欧美| 精品不卡在线视频| 蜜臀av亚洲一区中文字幕| 欧美日韩综合一区| 亚洲一区二区中文在线| 欧美色综合天天久久综合精品| 亚洲欧美激情插 | 极品少妇一区二区三区精品视频| 91精品黄色片免费大全| 肉色丝袜一区二区| 欧美一卡二卡在线| 蜜桃视频第一区免费观看| 日韩欧美亚洲国产另类| 久久se这里有精品| 国产拍欧美日韩视频二区| 福利一区二区在线观看| 亚洲欧美综合色| 色婷婷综合久久久中文字幕| 一区二区三区在线免费观看| 欧美日本视频在线| 久久97超碰色| 久久久久久亚洲综合| 成年人午夜久久久| 亚洲欧美一区二区不卡| 欧美性xxxxxxxx| 青青草原综合久久大伊人精品优势| 欧美xxxxx牲另类人与| 国产成人免费高清| 亚洲免费观看在线视频| 在线播放91灌醉迷j高跟美女 | 欧美日韩在线一区二区| 天天av天天翘天天综合网 | 久久亚洲精华国产精华液| 成人午夜在线视频| 一区二区三区不卡在线观看| 欧美精品一卡二卡| 国产乱码一区二区三区| 中文字幕综合网| 这里只有精品免费| 成人听书哪个软件好| 亚洲综合一区二区精品导航| 欧美一级xxx| 91片在线免费观看| 日韩精品一级二级| 国产欧美一区二区精品忘忧草| 91传媒视频在线播放| 日本欧美一区二区三区乱码| 中文字幕精品一区| 欧美伦理影视网| 国产suv精品一区二区6| 亚洲一卡二卡三卡四卡无卡久久| 日韩免费性生活视频播放| 91一区二区在线观看| 激情久久五月天| 亚洲最大色网站| 日本一区二区三级电影在线观看| 欧美日韩精品系列| 成人国产免费视频| 日韩精品福利网| 亚洲麻豆国产自偷在线| 26uuu久久综合| 欧美久久久久久久久久| 成+人+亚洲+综合天堂| 日韩福利视频导航| 亚洲日本va在线观看| 国产亚洲一区二区三区四区| 欧美理论电影在线| 色婷婷综合久久久久中文一区二区 | 欧美伊人精品成人久久综合97| 黄色成人免费在线| 亚洲国产婷婷综合在线精品| 中文字幕国产一区| 精品久久久久久久久久久久久久久 | 精品午夜一区二区三区在线观看| 亚洲桃色在线一区| 国产婷婷色一区二区三区|