亚洲欧美第一页_禁久久精品乱码_粉嫩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>passed.png *     <li>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一区二区三区免费野_久草精品视频
日本成人超碰在线观看| 欧美亚洲动漫另类| 国产伦精品一区二区三区视频青涩 | 91原创在线视频| 色婷婷综合久久久久中文一区二区 | 亚洲成在人线在线播放| 久久精品国产99久久6| 波多野结衣欧美| 欧美私模裸体表演在线观看| 一区二区三区中文字幕电影 | 欧美精品一区二区三区很污很色的| 精品少妇一区二区三区视频免付费| 国产亚洲一区二区三区四区| 亚洲免费在线看| 国产老妇另类xxxxx| 欧美日韩精品系列| 国产精品免费aⅴ片在线观看| 五月婷婷另类国产| 欧美在线不卡视频| 中文字幕一区视频| 国产精品一色哟哟哟| 亚洲欧美自拍偷拍| 91麻豆精品国产91久久久更新时间 | 色猫猫国产区一区二在线视频| 久久久久久日产精品| 奇米综合一区二区三区精品视频| 色综合久久久久久久久久久| 日本美女一区二区三区视频| 久久色视频免费观看| 狠狠色2019综合网| 精品国产乱码久久久久久牛牛| 高清免费成人av| 26uuu国产电影一区二区| aaa亚洲精品| 麻豆国产精品一区二区三区 | 99精品热视频| 中文字幕日本乱码精品影院| 欧美日韩一区二区三区在线 | 99综合影院在线| 免费一级片91| 亚洲美女视频一区| 久久一夜天堂av一区二区三区| 在线视频国内自拍亚洲视频| 国产精品一二三区在线| 亚洲aⅴ怡春院| 综合婷婷亚洲小说| 色嗨嗨av一区二区三区| 国产精品综合网| 婷婷国产v国产偷v亚洲高清| 中文字幕亚洲不卡| 久久影院视频免费| 欧美肥胖老妇做爰| 捆绑调教美女网站视频一区| 一区二区三区四区不卡视频| 国产欧美一区二区三区鸳鸯浴| 国产一区二区三区在线观看免费 | 成人一级视频在线观看| 亚洲欧美成aⅴ人在线观看| 2020国产成人综合网| 欧美一级在线观看| 狠狠色丁香九九婷婷综合五月| 首页国产欧美久久| 欧美xxx久久| 欧美剧在线免费观看网站| 色天天综合色天天久久| 成人免费视频网站在线观看| 国产精品综合一区二区三区| 国产一区二区主播在线| 久久国产三级精品| 免费黄网站欧美| 日韩av高清在线观看| 日韩国产精品久久| 亚洲成人动漫一区| 香蕉加勒比综合久久| 亚洲综合一区二区精品导航| 精品国产乱码91久久久久久网站| 91麻豆精品国产| 欧美精品tushy高清| 欧美精品高清视频| 777色狠狠一区二区三区| 欧美久久一二三四区| 欧美电影一区二区| 日韩三级视频在线观看| 国产99久久久国产精品潘金| 国产精品一二三在| 成人免费看视频| 99久久国产综合精品色伊| a在线欧美一区| 91蝌蚪porny成人天涯| 91毛片在线观看| 欧美日韩综合在线| 日韩一级二级三级精品视频| 精品国产凹凸成av人网站| 久久精品亚洲国产奇米99| 国产清纯美女被跳蛋高潮一区二区久久w | 成人精品电影在线观看| 亚洲综合久久久| 亚洲成a人片在线不卡一二三区| 偷拍与自拍一区| 精品无人区卡一卡二卡三乱码免费卡 | 亚洲国产乱码最新视频| 久久久国际精品| 中文字幕一区二区三区色视频| 亚洲色大成网站www久久九九| 亚洲妇熟xx妇色黄| 久久成人麻豆午夜电影| 精品视频一区二区不卡| 欧美喷水一区二区| 久久美女艺术照精彩视频福利播放| 国产欧美一区二区精品婷婷| 亚洲欧洲日本在线| 偷拍一区二区三区| 国产精品一区二区免费不卡 | 亚洲资源中文字幕| 久久超碰97人人做人人爱| av网站一区二区三区| 欧美久久久久中文字幕| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲欧美成人一区二区三区| 亚洲国产欧美在线人成| 加勒比av一区二区| 色94色欧美sute亚洲线路一ni| 欧美一级理论片| 亚洲视频中文字幕| 精品一区二区三区免费| 91福利社在线观看| 久久久久国产精品免费免费搜索| 亚洲中国最大av网站| 国产精品香蕉一区二区三区| 欧美色图片你懂的| 亚洲国产精品二十页| 国产视频一区不卡| 日韩电影在线观看网站| av一本久道久久综合久久鬼色| 日韩欧美成人午夜| 久久午夜羞羞影院免费观看| 一区二区三区鲁丝不卡| 国产精品一二三四| 欧美一区二区三区小说| 亚洲蜜桃精久久久久久久| 国产成人在线视频免费播放| 国产.欧美.日韩| 欧美不卡一区二区三区| 亚洲大片在线观看| 91黄色免费网站| 国产精品不卡在线观看| 中文字幕在线不卡视频| 激情综合色综合久久| 欧美老肥妇做.爰bbww| 亚洲欧美一区二区三区国产精品 | 婷婷开心久久网| 91福利在线看| 日韩一区在线免费观看| 麻豆国产91在线播放| 欧美高清dvd| 亚洲香肠在线观看| 91国偷自产一区二区开放时间| 国产精品久久久久一区二区三区| 国产精品一区二区91| 久久久久久久久一| 久久激情五月激情| 91精品国产aⅴ一区二区| 亚洲精品一卡二卡| 亚洲 欧美综合在线网络| 在线中文字幕一区二区| 亚洲精品日日夜夜| 91网站最新地址| 午夜精品成人在线| 91精品国产91久久久久久最新毛片| 亚洲自拍偷拍综合| 欧美日韩欧美一区二区| 美女性感视频久久| 国产精品全国免费观看高清| 日本高清不卡视频| 国产精品中文字幕日韩精品| 国产精品久久久久桃色tv| 欧美最猛性xxxxx直播| 久久精品免费观看| 亚洲精品免费在线| 综合欧美一区二区三区| 精品婷婷伊人一区三区三| 99re成人精品视频| 国产精品私房写真福利视频| 国产成人av资源| 欧美国产日产图区| 91在线观看成人| 日韩精品91亚洲二区在线观看 | 蜜桃精品在线观看| 精品国产成人系列| 韩国三级中文字幕hd久久精品| 久久综合色之久久综合| 国产伦精品一区二区三区视频青涩 | 日本美女视频一区二区| 日韩免费成人网| 国产69精品久久99不卡| 亚洲欧美日韩国产综合| 欧美性生活大片视频| 精品伊人久久久久7777人| 国产欧美日韩在线观看| 91福利社在线观看|