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

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

?? basicoptionpaneui.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
		addMessageComponents(container, cons, msgs[i], maxll, false);            }	} else if (msg instanceof Icon) {	    JLabel label = new JLabel( (Icon)msg, SwingConstants.CENTER );            configureMessageLabel(label);	    addMessageComponents(container, cons, label, maxll, true);	} else {	    String s = msg.toString();	    int len = s.length();	    if (len <= 0) {		return;            }	    int nl = -1;	    int nll = 0;	    if ((nl = s.indexOf(newline)) >= 0) {		nll = newline.length();	    } else if ((nl = s.indexOf("\r\n")) >= 0) {	        nll = 2;	    } else if ((nl = s.indexOf('\n')) >= 0) {	        nll = 1;	    }	    if (nl >= 0) {		// break up newlines		if (nl == 0) {                    JPanel breakPanel = new JPanel() {		        public Dimension getPreferredSize() {			    Font       f = getFont();			    			    if (f != null) {				return new Dimension(1, f.getSize() + 2);                            }			    return new Dimension(0, 0);		        }                    };                    breakPanel.setName("OptionPane.break");		    addMessageComponents(container, cons, breakPanel, maxll,                                         true);		} else {		    addMessageComponents(container, cons, s.substring(0, nl),				      maxll, false);                }		addMessageComponents(container, cons, s.substring(nl + nll), maxll,				  false);	    } else if (len > maxll) {		Container c = Box.createVerticalBox();                c.setName("OptionPane.verticalBox");		burstStringInto(c, s, maxll);		addMessageComponents(container, cons, c, maxll, true );	    } else {	        JLabel label;		label = new JLabel( s, JLabel.LEADING );                label.setName("OptionPane.label");                configureMessageLabel(label);		addMessageComponents(container, cons, label, maxll, true);	    }	}    }    /**     * Returns the message to display from the JOptionPane the receiver is     * providing the look and feel for.     */    protected Object getMessage() {	inputComponent = null;	if (optionPane != null) {	    if (optionPane.getWantsInput()) {		/* Create a user component to capture the input. If the		   selectionValues are non null the component and there		   are < 20 values it'll be a combobox, if non null and		   >= 20, it'll be a list, otherwise it'll be a textfield. */		Object             message = optionPane.getMessage();		Object[]           sValues = optionPane.getSelectionValues();		Object             inputValue = optionPane		                           .getInitialSelectionValue();		JComponent         toAdd;		if (sValues != null) {		    if (sValues.length < 20) {			JComboBox            cBox = new JComboBox();                        cBox.setName("OptionPane.comboBox");			for(int counter = 0, maxCounter = sValues.length;			    counter < maxCounter; counter++) {			    cBox.addItem(sValues[counter]);                        }			if (inputValue != null) {			    cBox.setSelectedItem(inputValue);                        }			inputComponent = cBox;			toAdd = cBox;		    } else {			JList                list = new JList(sValues);			JScrollPane          sp = new JScrollPane(list);                        sp.setName("OptionPane.scrollPane");                        list.setName("OptionPane.list");			list.setVisibleRowCount(10);			list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);			if(inputValue != null)			    list.setSelectedValue(inputValue, true);			list.addMouseListener(getHandler());			toAdd = sp;			inputComponent = list;		    }		} else {		    MultiplexingTextField   tf = new MultiplexingTextField(20);                    tf.setName("OptionPane.textField");                    tf.setKeyStrokes(new KeyStroke[] {                                     KeyStroke.getKeyStroke("ENTER") } );		    if (inputValue != null) {                        String inputString = inputValue.toString();			tf.setText(inputString);                        tf.setSelectionStart(0);                        tf.setSelectionEnd(inputString.length());                    }		    tf.addActionListener(getHandler());		    toAdd = inputComponent = tf;		}		Object[]           newMessage;		if (message == null) {		    newMessage = new Object[1];		    newMessage[0] = toAdd;				} else {		    newMessage = new Object[2];		    newMessage[0] = message;		    newMessage[1] = toAdd;		}		return newMessage;	    }	    return optionPane.getMessage();	}	return null;    }    /**     * Creates and adds a JLabel representing the icon returned from     * <code>getIcon</code> to <code>top</code>. This is messaged from     * <code>createMessageArea</code>     */    protected void addIcon(Container top) {	/* Create the icon. */	Icon                  sideIcon = getIcon();	if (sideIcon != null) {	    JLabel            iconLabel = new JLabel(sideIcon);            iconLabel.setName("OptionPane.iconLabel");	    iconLabel.setVerticalAlignment(SwingConstants.TOP);	    top.add(iconLabel, BorderLayout.BEFORE_LINE_BEGINS);	}    }    /**     * Returns the icon from the JOptionPane the receiver is providing     * the look and feel for, or the default icon as returned from     * <code>getDefaultIcon</code>.     */    protected Icon getIcon() {	Icon      mIcon = (optionPane == null ? null : optionPane.getIcon());	if(mIcon == null && optionPane != null)	    mIcon = getIconForType(optionPane.getMessageType());	return mIcon;    }    /**     * Returns the icon to use for the passed in type.     */    protected Icon getIconForType(int messageType) {	if(messageType < 0 || messageType > 3)	    return null;        String propertyName = null;	switch(messageType) {	case 0:	    propertyName = "OptionPane.errorIcon";            break;	case 1:	    propertyName = "OptionPane.informationIcon";            break;	case 2:	    propertyName = "OptionPane.warningIcon";            break;	case 3:	    propertyName = "OptionPane.questionIcon";            break;	}        if (propertyName != null) {            return (Icon)DefaultLookup.get(optionPane, this, propertyName);	}	return null;    }    /**     * Returns the maximum number of characters to place on a line.     */    protected int getMaxCharactersPerLineCount() {	return optionPane.getMaxCharactersPerLineCount();    }   /**     * Recursively creates new JLabel instances to represent <code>d</code>.     * Each JLabel instance is added to <code>c</code>.     */    protected void burstStringInto(Container c, String d, int maxll) {	// Primitive line wrapping	int len = d.length();	if (len <= 0)	    return;	if (len > maxll) {	    int p = d.lastIndexOf(' ', maxll);	    if (p <= 0)		p = d.indexOf(' ', maxll);	    if (p > 0 && p < len) {		burstStringInto(c, d.substring(0, p), maxll);		burstStringInto(c, d.substring(p + 1), maxll);		return;	    }	}	JLabel label = new JLabel(d, JLabel.LEFT);        label.setName("OptionPane.label");        configureMessageLabel(label);	c.add(label);    }    protected Container createSeparator() {        return null;    }    /**     * Creates and returns a Container containing the buttons. The buttons     * are created by calling <code>getButtons</code>.     */    protected Container createButtonArea() {        JPanel bottom = new JPanel();        Border border = (Border)DefaultLookup.get(optionPane, this,                                          "OptionPane.buttonAreaBorder");        bottom.setName("OptionPane.buttonArea");        if (border != null) {            bottom.setBorder(border);        }	bottom.setLayout(new ButtonAreaLayout(           DefaultLookup.getBoolean(optionPane, this,                                    "OptionPane.sameSizeButtons", true),           DefaultLookup.getInt(optionPane, this, "OptionPane.buttonPadding",                                6),           DefaultLookup.getInt(optionPane, this,                        "OptionPane.buttonOrientation", SwingConstants.CENTER),           DefaultLookup.getBoolean(optionPane, this, "OptionPane.isYesLast",                                    false)));	addButtonComponents(bottom, getButtons(), getInitialValueIndex());	return bottom;    }    /**     * Creates the appropriate object to represent each of the objects in     * <code>buttons</code> and adds it to <code>container</code>. This     * differs from addMessageComponents in that it will recurse on     * <code>buttons</code> and that if button is not a Component     * it will create an instance of JButton.     */    protected void addButtonComponents(Container container, Object[] buttons,				 int initialIndex) {	if (buttons != null && buttons.length > 0) {	    boolean            sizeButtonsToSame = getSizeButtonsToSameWidth();	    boolean            createdAll = true;	    int                numButtons = buttons.length;	    JButton[]          createdButtons = null;	    int                maxWidth = 0;	    if (sizeButtonsToSame) {		createdButtons = new JButton[numButtons];            }	    for(int counter = 0; counter < numButtons; counter++) {		Object       button = buttons[counter];		Component    newComponent;		if (button instanceof Component) {		    createdAll = false;		    newComponent = (Component)button;		    container.add(newComponent);		    hasCustomComponents = true;				} else {		    JButton      aButton;                    if (button instanceof ButtonFactory) {                        aButton = ((ButtonFactory)button).createButton();                    }		    else if (button instanceof Icon)			aButton = new JButton((Icon)button);		    else			aButton = new JButton(button.toString());                    aButton.setName("OptionPane.button");		    aButton.setMultiClickThreshhold(DefaultLookup.getInt(                          optionPane, this, "OptionPane.buttonClickThreshhold",                          0));                    configureButton(aButton);		    container.add(aButton);                    ActionListener buttonListener = createButtonActionListener(counter);                    if (buttonListener != null) {                        aButton.addActionListener(buttonListener);                    }		    newComponent = aButton;		}		if (sizeButtonsToSame && createdAll && 		   (newComponent instanceof JButton)) {		    createdButtons[counter] = (JButton)newComponent;		    maxWidth = Math.max(maxWidth,					newComponent.getMinimumSize().width);		}		if (counter == initialIndex) {		    initialFocusComponent = newComponent;                    if (initialFocusComponent instanceof JButton) {                        JButton defaultB = (JButton)initialFocusComponent;                        defaultB.addAncestorListener(new AncestorListener() {                           public void ancestorAdded(AncestorEvent e) {                                JButton defaultButton = (JButton)e.getComponent();                               JRootPane root = SwingUtilities.getRootPane(defaultButton);                               if (root != null) {                                   root.setDefaultButton(defaultButton);                               }                           }                           public void ancestorRemoved(AncestorEvent event) {}                           public void ancestorMoved(AncestorEvent event) {}                        });                    }		}	    }	    ((ButtonAreaLayout)container.getLayout()).		              setSyncAllWidths((sizeButtonsToSame && createdAll));	    /* Set the padding, windows seems to use 8 if <= 2 components,	       otherwise 4 is used. It may actually just be the size of the	       buttons is always the same, not sure. */	    if (DefaultLookup.getBoolean(optionPane, this,                   "OptionPane.setButtonMargin", true) && sizeButtonsToSame &&                   createdAll) {		JButton               aButton;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色电影在线| 中文字幕一区二区三区视频| 亚洲国产精品一区二区www在线| 91在线观看视频| 亚洲国产成人高清精品| 亚洲乱码精品一二三四区日韩在线| 欧美色综合影院| 精品午夜久久福利影院| 国产日韩欧美麻豆| 在线观看视频一区| 国产电影精品久久禁18| 亚洲3atv精品一区二区三区| 久久久精品天堂| 欧美色区777第一页| 欧美精品在欧美一区二区少妇 | 激情综合色播激情啊| 不卡一区在线观看| 亚洲va国产天堂va久久en| 亚洲黄色免费电影| 天天色综合成人网| 国产欧美日本一区视频| 国产日韩三级在线| 亚洲视频在线一区二区| 日韩美女一区二区三区四区| 成人avav在线| 色婷婷综合中文久久一本| 国产麻豆日韩欧美久久| 五月激情丁香一区二区三区| 秋霞电影网一区二区| 国产精品女人毛片| 亚洲精品一区二区三区精华液 | 欧美日本视频在线| 91在线云播放| 成人午夜视频在线| 国产精品影音先锋| 蓝色福利精品导航| 亚洲va欧美va天堂v国产综合| 午夜精彩视频在线观看不卡| 激情综合网天天干| 一本大道久久a久久精品综合| 在线电影国产精品| 国产欧美日韩综合精品一区二区| 亚洲日本在线a| 久久电影网站中文字幕| 99久久99久久精品免费观看| 欧美精品精品一区| 中文一区一区三区高中清不卡| 精品久久久久一区| 精品粉嫩超白一线天av| 亚洲视频免费在线观看| 日本视频中文字幕一区二区三区| 亚洲综合丝袜美腿| 尤物av一区二区| 狠狠色丁香久久婷婷综合_中 | 欧美日韩性生活| 26uuu另类欧美| 久久蜜桃av一区二区天堂| 一区二区三区成人在线视频| 亚洲免费毛片网站| 一区二区三区视频在线观看| 韩国中文字幕2020精品| 欧美午夜电影网| 国产亚洲va综合人人澡精品| 久久精品人人爽人人爽| 偷拍与自拍一区| 99久久精品情趣| 欧美一级专区免费大片| 欧美一级搡bbbb搡bbbb| 伊人开心综合网| 成人综合在线视频| 欧美va亚洲va香蕉在线| 性欧美大战久久久久久久久| 国产成人一区二区精品非洲| 欧美人牲a欧美精品| 亚洲视频在线观看三级| 国产成人精品影院| 日韩三级中文字幕| 日韩欧美黄色影院| 午夜视频在线观看一区二区| 99在线精品视频| 欧美日韩高清一区二区| 亚洲欧洲精品一区二区三区不卡| 精品一二线国产| 91精选在线观看| 久久久精品蜜桃| 另类中文字幕网| 欧美老人xxxx18| 亚洲一区二区三区小说| 色呦呦网站一区| 国产精品成人一区二区艾草 | 日本中文字幕一区二区视频| 色88888久久久久久影院野外| 亚洲成人资源在线| 国产一区二区三区视频在线播放| 日韩欧美激情一区| 老司机午夜精品99久久| 91精品欧美久久久久久动漫| 亚洲一区二区高清| 欧美怡红院视频| 亚洲大片一区二区三区| 欧美日韩在线播放| 亚洲电影一级黄| 欧美丰满嫩嫩电影| 天天色 色综合| 日韩一区二区在线观看| 免费av网站大全久久| 日韩一区二区三区四区五区六区 | 色94色欧美sute亚洲线路二| 亚洲视频一区在线观看| 色欧美片视频在线观看| 亚洲高清一区二区三区| 欧美日本免费一区二区三区| 香蕉成人伊视频在线观看| 欧美精品久久99| 精东粉嫩av免费一区二区三区| 久久综合国产精品| 高清日韩电视剧大全免费| 欧美日韩国产首页在线观看| 午夜成人免费电影| 日韩一区二区三区视频| 韩日av一区二区| 国产精品久久久久影院老司| 91视频在线观看| 亚洲一区二区在线观看视频| 91精品国产黑色紧身裤美女| 精品在线播放免费| 中文字幕不卡的av| 欧美亚洲禁片免费| 久久精品国产精品青草| 国产午夜亚洲精品不卡| 色综合天天天天做夜夜夜夜做| 精品免费日韩av| 成人av影视在线观看| 一区二区三区四区精品在线视频| 欧美肥妇free| 国产在线视视频有精品| 亚洲特黄一级片| 欧美日韩成人在线| 国产盗摄一区二区| 亚洲国产欧美一区二区三区丁香婷| 正在播放一区二区| 国产**成人网毛片九色| 亚洲综合自拍偷拍| 精品对白一区国产伦| 99riav一区二区三区| 日本成人在线看| 中文字幕亚洲一区二区va在线| 欧美日韩一区 二区 三区 久久精品| 国内外成人在线| 亚洲一区在线观看免费 | 136国产福利精品导航| 欧美日韩视频在线第一区| 狠狠色综合播放一区二区| 成人欧美一区二区三区视频网页| 91精品免费在线观看| a亚洲天堂av| 久久国产精品99久久人人澡| 一区二区在线免费| 欧美电影免费观看高清完整版| 99国产精品久久久| 黄色日韩网站视频| 天天色天天操综合| 亚洲欧美中日韩| 精品久久久久久综合日本欧美| 欧洲一区二区av| 国产成都精品91一区二区三| 首页国产丝袜综合| 欧美一区二区三区的| 91在线国产福利| 国产经典欧美精品| 蜜臀久久99精品久久久画质超高清 | 国产主播一区二区三区| 亚洲一区二区精品视频| 国产精品青草久久| 精品国产一二三| 在线观看91精品国产麻豆| 色欧美乱欧美15图片| 国产成人午夜精品影院观看视频| 日韩vs国产vs欧美| 亚洲曰韩产成在线| 亚洲天堂2016| 国产精品国产自产拍高清av| 久久久久久久久久久久电影| 欧美一级夜夜爽| 91超碰这里只有精品国产| 在线看不卡av| 91理论电影在线观看| av不卡免费电影| 福利一区在线观看| 国产精品一区二区你懂的| 美女被吸乳得到大胸91| 视频一区二区国产| 亚洲大型综合色站| 亚洲成人激情自拍| 一二三区精品福利视频| 亚洲欧美一区二区三区久本道91| 一区在线中文字幕| 中文字幕一区在线观看| 1000部国产精品成人观看| 亚洲国产成人私人影院tom|