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

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

?? coordinatesdemo.java

?? Java樣例程序集合:2D
?? JAVA
字號:
/* CoordinatesDemo.java is a 1.4 application that requires no other files. */import javax.swing.*;import java.awt.*;import java.awt.event.MouseEvent;import javax.swing.event.MouseInputListener;/*  * This displays a framed area.  As the user moves the cursor * over the area, a label displays the cursor's location. When  * the user clicks, the area displays a 7x7 dot at the click * location. */public class CoordinatesDemo {    private JLabel label;    private Point clickPoint, cursorPoint;    private void buildUI(Container container) {        container.setLayout(new BoxLayout(container,                                          BoxLayout.PAGE_AXIS));        CoordinateArea coordinateArea = new CoordinateArea(this);        container.add(coordinateArea);        label = new JLabel();        resetLabel();        container.add(label);        //Align the left edges of the components.        coordinateArea.setAlignmentX(Component.LEFT_ALIGNMENT);        label.setAlignmentX(Component.LEFT_ALIGNMENT); //redundant    }    public void updateCursorLocation(int x, int y) {        if (x < 0 || y < 0) {            cursorPoint = null;            updateLabel();            return;        }                    if (cursorPoint == null) {            cursorPoint = new Point();        }                cursorPoint.x = x;        cursorPoint.y = y;        updateLabel();    }    public void updateClickPoint(Point p) {        clickPoint = p;        updateLabel();    }    public void resetLabel() {        cursorPoint = null;        updateLabel();            }        protected void updateLabel() {        String text = "";        if ((clickPoint == null) && (cursorPoint == null)) {            text = "Click or move the cursor within the framed area.";        } else {                        if (clickPoint != null) {                text += "The last click was at ("                         + clickPoint.x + ", " + clickPoint.y + "). ";            }                        if (cursorPoint != null) {                text += "The cursor is at ("                        + cursorPoint.x + ", " + cursorPoint.y + "). ";            }        }                label.setText(text);    }    /**     * Create the GUI and show it.  For thread safety,      * this method should be invoked from the      * event-dispatching thread.     */    private static void createAndShowGUI() {        //Make sure we have nice window decorations.        JFrame.setDefaultLookAndFeelDecorated(true);        //Create and set up the window.        JFrame frame = new JFrame("CoordinatesDemo");        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        //Set up the content pane.        CoordinatesDemo controller = new CoordinatesDemo();        controller.buildUI(frame.getContentPane());        //Display the window.        frame.pack();        frame.setVisible(true);    }    public static void main(String[] args) {        //Schedule a job for the event-dispatching thread:        //creating and showing this application's GUI.        javax.swing.SwingUtilities.invokeLater(new Runnable() {            public void run() {                createAndShowGUI();             }        });    }    public static class CoordinateArea extends JComponent                                        implements MouseInputListener {        Point point = null;        CoordinatesDemo controller;        Dimension preferredSize = new Dimension(400,75);        Color gridColor;            public CoordinateArea(CoordinatesDemo controller) {            this.controller = controller;                        //Add a border of 5 pixels at the left and bottom,            //and 1 pixel at the top and right.            setBorder(BorderFactory.createMatteBorder(1,5,5,1,                                                      Color.RED));                                                                  addMouseListener(this);            addMouseMotionListener(this);            setBackground(Color.WHITE);            setOpaque(true);        }            public Dimension getPreferredSize() {            return preferredSize;        }            protected void paintComponent(Graphics g) {            //Paint background if we're opaque.            if (isOpaque()) {                g.setColor(getBackground());                g.fillRect(0, 0, getWidth(), getHeight());            }            //Paint 20x20 grid.            g.setColor(Color.GRAY);            drawGrid(g, 20);                        //If user has chosen a point, paint a small dot on top.            if (point != null) {                g.setColor(getForeground());                g.fillRect(point.x - 3, point.y - 3, 7, 7);            }        }                //Draws a 20x20 grid using the current color.        private void drawGrid(Graphics g, int gridSpace) {            Insets insets = getInsets();            int firstX = insets.left;            int firstY = insets.top;            int lastX = getWidth() - insets.right;            int lastY = getHeight() - insets.bottom;                        //Draw vertical lines.            int x = firstX;            while (x < lastX) {                g.drawLine(x, firstY, x, lastY);                x += gridSpace;            }                        //Draw horizontal lines.            int y = firstY;            while (y < lastY) {                g.drawLine(firstX, y, lastX, y);                y += gridSpace;            }        }            //Methods required by the MouseInputListener interface.        public void mouseClicked(MouseEvent e) {             int x = e.getX();            int y = e.getY();            if (point == null) {                point = new Point(x, y);            } else {                point.x = x;                point.y = y;            }            controller.updateClickPoint(point);            repaint();        }        public void mouseMoved(MouseEvent e) {            controller.updateCursorLocation(e.getX(), e.getY());        }        public void mouseExited(MouseEvent e) {             controller.resetLabel();        }        public void mouseReleased(MouseEvent e) { }        public void mouseEntered(MouseEvent e) { }        public void mousePressed(MouseEvent e) { }        public void mouseDragged(MouseEvent e) { }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品亲子伦对白| 国产一区二区三区免费| 成人听书哪个软件好| 久久久精品免费网站| 国内精品久久久久影院薰衣草| 精品粉嫩aⅴ一区二区三区四区| 开心九九激情九九欧美日韩精美视频电影 | 1区2区3区国产精品| 色婷婷综合久久久久中文一区二区| 亚洲欧洲日本在线| 国产精品视频一二三| 久久综合狠狠综合| 在线视频一区二区三| 日本视频在线一区| 久久一区二区三区国产精品| 精品1区2区在线观看| 久久精品人人爽人人爽| 欧美视频在线一区| 麻豆一区二区三| 成人免费在线视频| 一区二区在线电影| 久久这里只有精品首页| 国产女人18毛片水真多成人如厕| 欧美三级日韩在线| 99精品欧美一区二区三区综合在线| 亚洲久草在线视频| 日本午夜一区二区| 粉嫩av一区二区三区在线播放 | 91国偷自产一区二区三区成为亚洲经典 | 婷婷国产v国产偷v亚洲高清| 久久久久久久综合日本| 欧美国产综合一区二区| 欧美成人精品福利| 欧洲在线/亚洲| 欧美成人精品1314www| 欧美国产欧美亚州国产日韩mv天天看完整 | 亚洲欧美日韩国产综合| 久久你懂得1024| 亚洲人成网站在线| 久久不见久久见免费视频7| 成人深夜福利app| 欧美片网站yy| 欧美群妇大交群中文字幕| 久久久久久久久97黄色工厂| 樱花草国产18久久久久| 国模娜娜一区二区三区| 在线观看一区二区视频| 久久婷婷成人综合色| 亚洲精品国久久99热| 国产在线国偷精品免费看| 欧美性生活久久| 国产精品无人区| 日本视频免费一区| 一本久道中文字幕精品亚洲嫩| 日韩精品最新网址| 欧美大片在线观看一区二区| 亚洲曰韩产成在线| 亚洲一区二区三区国产| 成人av网站在线观看免费| 91麻豆精东视频| 欧美日韩综合一区| 国产精品国产馆在线真实露脸 | 欧美日韩精品欧美日韩精品一综合| 国产亚洲一区二区三区| 蜜臀久久99精品久久久久宅男 | 日韩一区二区中文字幕| 亚洲精品一区二区三区香蕉| 亚洲一区二区综合| 97精品久久久久中文字幕| 中文在线一区二区| 国产精品一区二区果冻传媒| 97久久超碰精品国产| 中文字幕欧美日韩一区| 国产91对白在线观看九色| 2020国产精品久久精品美国| 日本不卡123| 成人免费视频视频在线观看免费| 欧美成人激情免费网| 久久精品国产**网站演员| 欧美一区二区免费视频| 国产精品色眯眯| 成人激情视频网站| 久久嫩草精品久久久精品一| 国产麻豆精品在线| 国产欧美日韩麻豆91| 成人免费观看av| 一区二区三区鲁丝不卡| 丝袜脚交一区二区| 成人国产一区二区三区精品| 中文字幕在线免费不卡| 一本色道久久综合亚洲aⅴ蜜桃| 亚洲激情自拍偷拍| 欧美日韩久久一区二区| 日本vs亚洲vs韩国一区三区二区| 亚洲精品在线观| 成年人网站91| 亚洲第一激情av| 99免费精品视频| 精品国产91洋老外米糕| 裸体歌舞表演一区二区| 久久精品水蜜桃av综合天堂| 91啦中文在线观看| 日韩国产精品久久久| 26uuu色噜噜精品一区| 99热这里都是精品| 午夜免费久久看| 国产欧美va欧美不卡在线| 色素色在线综合| 久国产精品韩国三级视频| 欧美色视频一区| 国产资源在线一区| 亚洲黄色在线视频| 精品国产成人系列| 91蝌蚪porny九色| 久久成人综合网| 亚洲精品视频一区| 欧美电影精品一区二区| 色呦呦日韩精品| 国产精品亚洲一区二区三区妖精 | 亚洲色图第一区| 成人v精品蜜桃久久一区| 一区二区三区高清| 国产午夜精品久久| 欧美丰满少妇xxxbbb| 亚洲狠狠爱一区二区三区| 99久久精品国产一区二区三区| 亚洲成av人片在www色猫咪| 久久精品夜色噜噜亚洲a∨| 欧美人妇做爰xxxⅹ性高电影| 成人av网站大全| 国产成人自拍在线| 中文字幕亚洲不卡| 久久免费午夜影院| 欧美刺激午夜性久久久久久久| 色av一区二区| 91亚洲精品久久久蜜桃网站| 国产成人综合网| 极品销魂美女一区二区三区| 日韩国产在线观看一区| 亚洲精品日韩一| 国产精品久久久久一区二区三区共| 精品国免费一区二区三区| 欧美日韩黄色一区二区| 一本色道综合亚洲| 成人福利视频在线看| 国产激情视频一区二区在线观看| 日本欧美一区二区在线观看| 五月天精品一区二区三区| 一区二区激情小说| 一区二区三区 在线观看视频| 亚洲天堂免费在线观看视频| 国产精品成人网| 综合久久久久久| 中文字幕在线观看不卡| 中文字幕一区二区三区av| 国产精品成人一区二区三区夜夜夜 | 国产综合色在线视频区| 精品在线免费观看| 精品一区中文字幕| 国产一区91精品张津瑜| 国产v日产∨综合v精品视频| 丁香五精品蜜臀久久久久99网站| 国产 欧美在线| 9色porny自拍视频一区二区| 99久久精品一区| 欧美在线观看禁18| 欧美丰满少妇xxxbbb| 精品国产免费一区二区三区四区| 精品久久久久久久久久久久久久久久久 | 成人av在线资源网| 91日韩一区二区三区| 欧美亚洲一区二区三区四区| 欧美三级电影网站| 日韩午夜精品视频| 中文字幕第一区| 一区二区三区不卡在线观看| 轻轻草成人在线| 国产成人av电影免费在线观看| 本田岬高潮一区二区三区| 色婷婷av一区二区三区gif | 琪琪一区二区三区| 国产伦理精品不卡| 在线视频观看一区| 欧美大片一区二区| 亚洲欧洲美洲综合色网| 天天色图综合网| 国产99久久久国产精品免费看 | 国产精品一区二区果冻传媒| 91老师片黄在线观看| 日韩免费观看高清完整版| 中文字幕av不卡| 视频一区二区欧美| 国产91在线观看| 欧美精品1区2区3区| 国产精品久久久久久亚洲毛片| 一区二区高清免费观看影视大全| 精品亚洲成a人| 欧美无人高清视频在线观看| 久久久久国产精品麻豆ai换脸| 亚洲福中文字幕伊人影院|