亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
成年人国产精品| 日韩成人一区二区三区在线观看| 日韩一区有码在线| 一区二区三区不卡在线观看| 日本在线观看不卡视频| 国产91综合一区在线观看| 色乱码一区二区三区88 | 亚洲欧美aⅴ...| 日韩激情一二三区| 粉嫩蜜臀av国产精品网站| 色94色欧美sute亚洲线路一ni | 欧美一区二区三区不卡| 国产午夜精品理论片a级大结局 | 欧美区视频在线观看| 久久久99精品免费观看| 亚洲一二三四在线观看| 国产毛片一区二区| 欧美性猛交xxxxxx富婆| 久久蜜桃一区二区| 香蕉成人伊视频在线观看| 国产激情91久久精品导航| 欧美熟乱第一页| 亚洲国产成人在线| 奇米在线7777在线精品| 色婷婷精品久久二区二区蜜臂av| 精品国产一区二区三区av性色| 亚洲精品久久久蜜桃| 国产麻豆精品在线| 91精品国产一区二区三区香蕉 | 在线一区二区三区四区五区| 久久理论电影网| 日本在线播放一区二区三区| 一本色道a无线码一区v| 久久久久久久久97黄色工厂| 日韩综合小视频| 99久久伊人久久99| 久久精品人人做人人爽人人| 日韩av一区二区三区四区| 色女孩综合影院| 久久先锋影音av鲁色资源网| 国产精品女同互慰在线看| 亚洲一线二线三线视频| 国产成人h网站| 欧美精品乱人伦久久久久久| 欧美高清一级片在线观看| 亚洲欧美韩国综合色| 国产凹凸在线观看一区二区| 欧美福利电影网| 亚洲日本成人在线观看| 久久爱www久久做| 在线亚洲人成电影网站色www| 欧美成人免费网站| 亚洲制服丝袜在线| 成人白浆超碰人人人人| 日韩一区二区高清| 亚洲国产视频在线| av综合在线播放| 精品国精品自拍自在线| 亚洲乱码精品一二三四区日韩在线 | 首页国产欧美日韩丝袜| 91丨九色丨黑人外教| 亚洲精品一区二区三区香蕉| 五月天一区二区| 一本色道久久综合亚洲91| 国产剧情一区在线| 欧美巨大另类极品videosbest| 综合久久一区二区三区| 国产乱色国产精品免费视频| 欧美日韩一本到| 国产精品久久久久久一区二区三区| 国产久卡久卡久卡久卡视频精品| 欧美久久久一区| 亚洲伊人色欲综合网| 91香蕉视频mp4| 国产精品色呦呦| 国产一区二区三区免费在线观看| 欧美一区二区三区男人的天堂| 亚洲一区二区三区四区在线观看 | 亚洲第一福利一区| 在线精品视频免费播放| 亚洲人xxxx| 91美女在线看| 中文字幕第一区| 丁香五精品蜜臀久久久久99网站| 精品999在线播放| 美女视频第一区二区三区免费观看网站 | 99re成人在线| 国产精品麻豆视频| 成人午夜看片网址| 亚洲国产精品ⅴa在线观看| 久草精品在线观看| 久久久五月婷婷| 国产精品一品二品| 国产日韩一级二级三级| 国产成人综合精品三级| 久久精品免视看| 国产v综合v亚洲欧| 国产精品每日更新| 一本色道**综合亚洲精品蜜桃冫| 亚洲色图欧洲色图| 一本一道久久a久久精品综合蜜臀| 亚洲图片你懂的| 色成人在线视频| 亚洲精品第1页| 日本精品一级二级| 亚洲mv在线观看| 3d成人h动漫网站入口| 蜜臀av性久久久久蜜臀av麻豆| 日韩一区二区三区视频| 精品一区二区三区av| 久久久久久日产精品| 丁香五精品蜜臀久久久久99网站| 国产精品美女久久久久aⅴ国产馆| aaa国产一区| 亚洲高清久久久| 日韩一级视频免费观看在线| 欧美日韩和欧美的一区二区| 午夜精品福利视频网站| 欧美v日韩v国产v| 国产成人综合亚洲91猫咪| 亚洲色图欧美偷拍| 欧美精品自拍偷拍| 国产精品一二三在| 一区二区三区免费网站| 日韩一区二区影院| av一区二区久久| 一区二区三区在线观看国产| 欧美久久婷婷综合色| 国产精品一线二线三线精华| 亚洲免费在线电影| 91精品国产91久久久久久一区二区 | 亚洲日本青草视频在线怡红院| 欧美日韩国产综合一区二区| 狠狠色狠狠色综合| 中文字幕综合网| 日韩欧美专区在线| 高潮精品一区videoshd| 免费高清视频精品| 中文字幕一区二区三区不卡在线| 欧美日韩和欧美的一区二区| 国产成人日日夜夜| 亚洲国产精品人人做人人爽| 久久久久久久久久久久电影| 欧美日韩精品福利| 成人av在线观| 亚洲一区二区三区四区中文字幕| 精品国产露脸精彩对白| 91福利精品第一导航| 久久国产福利国产秒拍| 亚洲美女偷拍久久| 久久伊人蜜桃av一区二区| 91久久精品午夜一区二区| 国产精品综合在线视频| 国产精品成人免费在线| 欧美精品一区二区三区四区| 欧美性色综合网| 国产成人免费网站| 无码av免费一区二区三区试看| 国产精品视频yy9299一区| 欧美一区二区三区啪啪| 91麻豆高清视频| 国产成人av自拍| 蜜臀久久久99精品久久久久久| 欧美国产一区二区在线观看| 欧美午夜影院一区| 欧美伊人久久大香线蕉综合69| 国产成人精品免费网站| 免费看日韩精品| 亚洲图片欧美一区| 亚洲品质自拍视频网站| 久久精品一级爱片| 日韩一区二区三区免费看 | 1024精品合集| 久久久久国产免费免费| 欧美一区二区在线观看| 欧美性受xxxx黑人xyx| 最新国产成人在线观看| www激情久久| 欧美三片在线视频观看| 99久久综合99久久综合网站| 国产精品888| 韩国精品免费视频| 午夜精品久久一牛影视| 一区二区三区日本| 亚洲精品水蜜桃| 亚洲色图欧美偷拍| 中文字幕在线视频一区| xfplay精品久久| 日韩天堂在线观看| 欧美另类久久久品| 欧美日韩国产一区| 欧美色手机在线观看| 91国偷自产一区二区开放时间| 99麻豆久久久国产精品免费优播| 国产成人av自拍| 成人亚洲一区二区一| 高清视频一区二区| 成人免费av在线| av一区二区三区| 91老司机福利 在线|