亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色先锋资源久久综合| 日本不卡一区二区| 亚洲欧美视频在线观看| 亚洲最新视频在线播放| 日韩一区精品视频| 国产一区二区日韩精品| 99精品久久只有精品| 日本福利一区二区| 欧美一级黄色片| 国产精品免费视频一区| 亚洲国产另类av| 国产一区二区免费视频| 色悠悠久久综合| 欧美不卡一二三| 综合久久久久久久| 欧美aaa在线| av亚洲产国偷v产偷v自拍| 欧美丰满一区二区免费视频 | 午夜精品成人在线| 九一九一国产精品| 一本久久综合亚洲鲁鲁五月天| 91精品国产美女浴室洗澡无遮挡| 国产精品久久精品日日| 日本不卡视频在线| 色综合中文综合网| 99久久99久久综合| 日韩视频不卡中文| ●精品国产综合乱码久久久久| 免费成人性网站| 一本大道久久a久久精二百| 欧美精品一区二| 亚洲第一二三四区| 成人美女视频在线看| 日韩一区二区三区在线观看| 亚洲柠檬福利资源导航| 韩国理伦片一区二区三区在线播放| 色哟哟国产精品| 久久精品综合网| 久久电影国产免费久久电影| 欧洲国内综合视频| 欧美国产1区2区| 精品无人区卡一卡二卡三乱码免费卡| 欧美性三三影院| 综合自拍亚洲综合图不卡区| 国产精品性做久久久久久| 欧美人与禽zozo性伦| 亚洲欧美一区二区久久| 国产传媒日韩欧美成人| 日韩一级成人av| 午夜精品福利久久久| 91国产丝袜在线播放| 国产精品你懂的在线欣赏| 国产福利一区二区三区| 精品国产欧美一区二区| 美女任你摸久久| 91精品国产欧美一区二区成人 | 欧美精品日韩一本| 亚洲免费观看高清| www.爱久久.com| 中文字幕 久热精品 视频在线| 国产精品主播直播| 精品精品国产高清a毛片牛牛| 日本不卡一区二区三区| 欧美美女一区二区三区| 亚洲第一福利一区| 欧美色综合久久| 亚洲图片欧美综合| 日本韩国欧美一区二区三区| 亚洲欧美日韩系列| 92精品国产成人观看免费| 亚洲色欲色欲www在线观看| 99精品久久只有精品| 日韩美女啊v在线免费观看| 99综合电影在线视频| 中文字幕一区二区三区在线观看| 成人一区二区三区中文字幕| 欧美经典一区二区三区| 风间由美一区二区三区在线观看 | 久久国产婷婷国产香蕉| 欧美白人最猛性xxxxx69交| 美女视频网站久久| 2014亚洲片线观看视频免费| 国产精品一区一区| 日本一区二区三区高清不卡| 97久久超碰国产精品电影| 亚洲精品中文字幕在线观看| 欧美影院精品一区| 五月婷婷综合在线| 日韩欧美一区二区不卡| 国产乱码字幕精品高清av| 国产欧美一区二区精品忘忧草| 成人午夜av电影| 一级中文字幕一区二区| 欧美久久久久久蜜桃| 黑人巨大精品欧美一区| 亚洲国产精华液网站w| 99久久综合精品| 亚洲国产精品自拍| 欧美一级夜夜爽| 国产福利一区在线| 亚洲色图欧美偷拍| 欧美另类一区二区三区| 国产最新精品精品你懂的| 国产精品无人区| 欧美午夜理伦三级在线观看| 美女视频免费一区| 国产精品女同一区二区三区| 欧美日韩国产高清一区二区三区| 激情综合色播五月| 中文字幕一区日韩精品欧美| 911精品产国品一二三产区| 国产在线一区二区| 亚洲欧美国产77777| 日韩免费高清视频| 成人av动漫在线| 日韩一区精品字幕| 中文字幕av一区二区三区高| 在线不卡中文字幕播放| 国产一区二区三区不卡在线观看| 亚洲黄色小说网站| 欧美大片顶级少妇| 99久久99久久综合| 理论片日本一区| 一区二区三区欧美亚洲| 日韩免费观看2025年上映的电影| 97se亚洲国产综合自在线不卡| 美腿丝袜在线亚洲一区| 中文字幕日本乱码精品影院| 日韩一区二区三区视频| 91麻豆国产自产在线观看| 精品亚洲成a人| 亚洲成av人在线观看| 久久久91精品国产一区二区精品| 在线免费观看视频一区| 国产精品小仙女| 免费在线观看一区| 亚洲欧美日韩国产成人精品影院| 精品国内片67194| 欧美性感一区二区三区| 粉嫩绯色av一区二区在线观看| 免费视频最近日韩| 亚洲精品乱码久久久久久黑人| 久久精品视频免费| 制服丝袜亚洲色图| 91香蕉视频在线| 国产精品一区专区| 免费高清不卡av| 午夜免费久久看| 成人免费小视频| 国产午夜亚洲精品理论片色戒| 欧美群妇大交群的观看方式| 91蜜桃网址入口| 国产99久久久国产精品潘金网站| 日韩中文欧美在线| 玉米视频成人免费看| 国产日产欧美一区二区视频| 日韩三级中文字幕| 欧美视频一区在线观看| 99久久99精品久久久久久| 国产一区二区免费在线| 久久精品国产亚洲一区二区三区| 亚洲网友自拍偷拍| 亚洲黄色性网站| 亚洲黄色免费网站| 亚洲视频在线一区二区| 亚洲国产精品国自产拍av| 久久久久久久久久久久久久久99| 日韩欧美国产系列| 666欧美在线视频| 欧美日韩免费不卡视频一区二区三区| 91黄视频在线观看| 91在线高清观看| 99久久婷婷国产精品综合| 国产成人h网站| 成人综合婷婷国产精品久久免费| 经典三级视频一区| 美女网站视频久久| 另类调教123区| 国产一区二区三区久久久| 久久99热狠狠色一区二区| 奇米四色…亚洲| 极品少妇xxxx精品少妇偷拍| 国产在线乱码一区二区三区| 国产一区二区伦理片| 蜜芽一区二区三区| 免费日本视频一区| 精品在线播放免费| 精品一二线国产| 高清在线不卡av| 不卡av电影在线播放| 99综合电影在线视频| 色偷偷88欧美精品久久久| 91久久精品一区二区三区| 在线区一区二视频| 欧美日韩你懂得| 91精品国产91久久久久久一区二区 | 久久精品视频一区二区| 国产亚洲精品超碰| 国产精品系列在线| 亚洲人成人一区二区在线观看 |