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

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

?? iwindowtitlebar.java

?? ibm的窗體
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
	 */
	public void setRestoreButtonState(boolean isMaximized)
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			IWindowButton iButton = (IWindowButton)vctWindowButtons.get(i);
			if (iButton.getButtonType() == IWindowButton.RESTORE_MAX && !isMaximized)
				iButton.setButtonType(IWindowButton.RESTORE_MIN)	;
			else if (iButton.getButtonType() == IWindowButton.RESTORE_MIN && isMaximized)
				iButton.setButtonType(IWindowButton.RESTORE_MAX);
		}
	}
	
	/**
	 * Changes the restore button from either maximized to minimized, or minimized
	 * to maximized.  
	 * <p>This changes only the button and has no effect on the frame itself.
	 */
	public void changeRestoreButton()
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			IWindowButton iButton = (IWindowButton)vctWindowButtons.get(i);
			if (iButton.getButtonType() == IWindowButton.RESTORE_MAX)
				iButton.setButtonType(IWindowButton.RESTORE_MIN)	;
			else if (iButton.getButtonType() == IWindowButton.RESTORE_MIN)
				iButton.setButtonType(IWindowButton.RESTORE_MAX);
		}
	}
	
	/**
	 * Removes all the default settings from the title bar including
	 * the title, all the title bar buttons, and the border.
	 */
	public void removeWindowDecorations()
	{
		removeTitle();
		removeAllWindowButtons();
		setBorder(null);
	}
	
	/**
	 * Sets the title on this title bar and by default adds it to the left side of
	 * the title bar.
	 * @param title the window's title
	 */
	public void setTitle(String title)
	{
		if (lblTitle == null)
		{
			lblTitle = new JLabel();
			lblTitle.setOpaque(false);
			lblTitle.setForeground(Color.white);
			add(lblTitle, new GroupFlowLayoutConstraints(SwingConstants.LEFT, new Insets(3, 6, 3, 3)));
		}
		lblTitle.setText(title);	
	}
	
	/**
	 * Removes the title from the title bar.
	 */
	public void removeTitle()
	{
		if (lblTitle == null)
			lblTitle = new JLabel();
		remove(lblTitle);
	}
	
	/**
	 * Adds a title to the title bar.
	 * @param title the frame's title
	 * @param alignment where the title should align (RIGHT, CENTER, LEFT)
	 * @param f the font of the title
	 * @param foreground the foreground color of the title
	 */
	public void addTitle(String title, int alignment, Font f, Color foreground)
	{
		if (lblTitle != null)
			remove(lblTitle);
		lblTitle = new JLabel(title);
		lblTitle.setFont(f);
		lblTitle.setForeground(foreground);
		add(lblTitle, new GroupFlowLayoutConstraints(alignment, new Insets(3,6,3,3)));
	}
	
	/**
	 * Sets the logo on the title bar and adds it to the left side.
	 * @param i the icon used as the logo
	 */
	public void setLogo(Icon i)
	{
		if (lblLogo == null)
		{
			lblLogo = new javax.swing.JLabel();
			lblLogo.setText("");
			lblLogo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		}
		lblLogo.setPreferredSize(new Dimension(i.getIconWidth(), i.getIconHeight()));
		lblLogo.setIcon(i);
	}
	
	/**
	 * Adds a logo to the title bar on the left side.
	 * @param i the icon used as the logo
	 */
	public void addLogo(Icon i)
	{
		lblLogo = new javax.swing.JLabel();
		lblLogo.setText("");
		lblLogo.setPreferredSize(new Dimension(i.getIconWidth(), i.getIconHeight()));
		lblLogo.setIcon(i);
		lblLogo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
		add(lblLogo, new GroupFlowLayoutConstraints(SwingConstants.LEFT, new Insets(3, 6, 3, 3)));
	}
	
	/**
	 * Sets the foreground color on the window buttons.
	 * @param foreground the window buttons' foreground color
	 */
	public void setWindowButtonForeground(Color foreground)
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			((IWindowButton)vctWindowButtons.get(i)).setForeground(foreground);
		}	
	}
	
	/**
	 * Sets the background color on the window buttons.
	 * @param background the window buttons' background color
	 */
	public void setWindowButtonBackground(Color background)
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			((IWindowButton)vctWindowButtons.get(i)).setBackground(background);
		}	
	}
	
	/**
	 * Sets the background and foreground colors on the window buttons.
	 * @param background the window buttons' background color
	 * @param foreground the window buttons' foreground color
	 */
	public void setWindowButtonColors(Color background, Color foreground)
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			((IWindowButton)vctWindowButtons.get(i)).setBackground(background);
			((IWindowButton)vctWindowButtons.get(i)).setForeground(foreground);
		}	
	}
	
	/**
	 * Returns the background color of the first window button on the title bar.
	 * Since every button can be a different color, this function loses
	 * some of its effectiveness when multiple background colors are used
	 * on window buttons.
	 * @return the background color of the first window button
	 */
	public Color getWindowButtonBackground()
	{
		if (vctWindowButtons.size() > 0)
			return ((IWindowButton)vctWindowButtons.get(0)).getBackground();
		return Color.BLACK;
	}
	
	/**
	 * Returns the foreground color of the first window button on the title bar.
	 * Since every button can be a different color, this function loses
	 * some of its effectiveness when multiple foreground colors are used
	 * on window buttons.
	 * @return the foreground color of the first window button
	 */
	public Color getWindowButtonForeground()
	{
		if (vctWindowButtons.size() > 0)
			return ((IWindowButton)vctWindowButtons.get(0)).getForeground();
		return Color.WHITE;
	}
	
	/**
	 * Returns the preferred size of the first window button on the title bar.
	 * Since every button can be a different size, this function loses
	 * some of its effectiveness when multiple sizes are used
	 * on window buttons.
	 * @return the size of the first window button
	 */
	public Dimension getWindowButtonSize()
	{
		if (vctWindowButtons.size() > 0)
			return ((IWindowButton)vctWindowButtons.get(0)).getPreferredSize();
		return new Dimension(0,0);
	}
	
	/**
	 * Adds a button on the title bar on the right side.
	 * @param iButton the window button
	 */
	public void addWindowButton(IWindowButton iButton)
	{
		iButton.addActionListener(this);
		vctWindowButtons.add(iButton);
		add(iButton, new GroupFlowLayoutConstraints(SwingConstants.RIGHT, new Insets(3, 1, 3, 1)));
	}
	
	/**
	 * Adds a button on the title bar on the right side.
	 * @param buttonType the type of button to add
	 */
	public void addWindowButton(int buttonType)
	{
		IWindowButton iButton = new IWindowButton(buttonType);		
		vctWindowButtons.add(iButton);
		addWindowButton(buttonType, iButton.getForeground(), iButton.getBackground());
	}
	
	/**
	 * Adds a button on the title bar on the right side.
	 * @param buttonType the type of button to add
	 * @param foreground the foreground color of the button
	 * @param background the background color of the button
	 */
	public void addWindowButton(int buttonType, Color foreground, Color background)
	{
		IWindowButton iButton = new IWindowButton(buttonType);
		iButton.setForeground(foreground);
		iButton.setBackground(background);
		iButton.addActionListener(this);
		vctWindowButtons.add(iButton);
		add(iButton, new GroupFlowLayoutConstraints(SwingConstants.RIGHT, new Insets(3, 3, 3, 3)));
	}
	
	/**
	 * Adds a button on the title bar with the desired orientation on the title bar.
	 * @param buttonType the type of button to add
	 * @param orientation the orientation the title where the button should be added
	 */
	public void addWindowButton(int buttonType, int orientation)
	{
		addWindowButton(new IWindowButton(buttonType), orientation);
	}
	
	/**
	 * Adds a button on the title bar with the desired orientation on the title bar.
	 * @param button the button to add
	 * @param orientation the orientation the title where the button should be added
	 */
	public void addWindowButton(IWindowButton button, int orientation)
	{
		vctWindowButtons.add(button);
		button.addActionListener(this);
		add(button, new GroupFlowLayoutConstraints(orientation, new Insets(3,3,3,3)));
	}
	
	/**
	 * Adds all the window buttons that are default displayed in a Windows OS.
	 */
	public void addAllWindowButtons()
	{
		removeAllWindowButtons();
		addWindowButton(IWindowButton.MINIMIZE);
		addWindowButton(IWindowButton.RESTORE_MIN);
		addWindowButton(IWindowButton.CLOSE);
	}
	
	/**
	 * Adds all the window buttons that are default displayed in a Windows OS
	 * with the specified colors.
	 * @param foreground the foreground color of the buttons
	 * @param background the background colors of the buttons
	 */
	public void addAllWindowButtons(Color foreground, Color background)
	{
		removeAllWindowButtons();
		addWindowButton(IWindowButton.MINIMIZE, foreground, background);
		addWindowButton(IWindowButton.RESTORE_MIN, foreground, background);
		addWindowButton(IWindowButton.CLOSE, foreground, background);
	}
	
	/**
	 * Removes all the window buttons from the title bar.
	 */
	public void removeAllWindowButtons()
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			IWindowButton b = (IWindowButton)vctWindowButtons.get(i);
			remove(b);
			b.removeActionListener(this);			 
		}	
		vctWindowButtons.removeAllElements();
	}
	
	/** 
	 * Removes the specified window button from the title bar.
	 * @param iButton the button to be removed
	 */
	public void removeWindowButton(IWindowButton iButton)
	{
		remove(iButton);
		iButton.removeActionListener(this);
		vctWindowButtons.remove(iButton);	
	}
	
	/**
	 * Sets the size of the buttons on the title bar.
	 * @param size the size of the buttons
	 */
	public void setWindowButtonSize(Dimension size)
	{
		for (int i=0; i<vctWindowButtons.size(); i++)
		{
			 ((IWindowButton)vctWindowButtons.get(i)).setPreferredSize(size);
		}			
	}
	
	/**
	 * The default border that appears around the title bar in Windows 2000.
	 * @author MAbernethy
	 */
	protected class DefaultBorder extends AbstractBorder
	{	
		public void paintBorder(Component c, Graphics g, int x, int y, int w, int h)  
		{
			g.setColor(c.getBackground().brighter().brighter());
	        g.drawLine(0, 0, 0, h-1);
        	g.drawLine(1, 0, w-1, 0);
	
	        g.setColor(c.getBackground().brighter());
	        g.drawLine(1, 1, 1, h-2);
        	g.drawLine(2, 1, w-2, 1);
	
	        g.setColor(c.getBackground().darker().darker());
	        g.drawLine(w-1, 1, w-1, h-2);
	
	        g.setColor(c.getBackground().darker());
	        g.drawLine(w-2, 2, w-2, h-3);	
		}
	} 
	
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品一区二区三区嫩草| 日韩国产欧美视频| 丁香婷婷综合色啪| 中文字幕中文字幕中文字幕亚洲无线| 成人激情图片网| 亚洲三级电影网站| 欧美性感一类影片在线播放| 香蕉加勒比综合久久| 欧美成人激情免费网| 国产很黄免费观看久久| 国产精品免费视频网站| 在线免费亚洲电影| 美女久久久精品| 中文字幕视频一区| 欧美老肥妇做.爰bbww视频| 精品制服美女久久| 国产精品美日韩| 欧美日韩成人综合天天影院| 国产另类ts人妖一区二区| 18涩涩午夜精品.www| 欧美精品成人一区二区三区四区| 国产在线一区观看| 一区二区在线免费观看| 欧美mv日韩mv国产网站| 色综合天天做天天爱| 伦理电影国产精品| 亚洲精品免费电影| 久久久久久久综合日本| 欧美三级电影精品| 国产精品综合av一区二区国产馆| 亚洲欧美另类小说视频| 久久综合色综合88| 欧美久久久久久久久中文字幕| 国产精品一区二区在线播放| 亚洲成在人线免费| 欧美高清在线精品一区| 欧美一区二区三区四区久久| 99精品桃花视频在线观看| 精品在线观看视频| 天堂久久久久va久久久久| 国产精品久久久久久久久晋中| 日韩一区二区三区在线观看| 色噜噜夜夜夜综合网| 成人丝袜视频网| 狠狠色丁香婷综合久久| 亚洲成在人线免费| 亚洲精品菠萝久久久久久久| 国产日韩欧美a| 欧美精品一区二区在线播放 | 亚洲精品一区二区三区影院| 色呦呦日韩精品| 国产成人av一区二区三区在线| 天天综合日日夜夜精品| 亚洲一区二区三区四区在线观看 | 久久精品av麻豆的观看方式| 亚洲一区二区高清| 亚洲精品视频自拍| 亚洲欧洲国产日本综合| 国产日韩欧美精品在线| 久久亚洲影视婷婷| 精品久久人人做人人爱| 666欧美在线视频| 欧美日韩成人高清| 欧美日韩精品欧美日韩精品 | 国产精品美女久久久久久久 | 99久久伊人久久99| 国产成人亚洲综合a∨婷婷| 久久成人免费日本黄色| 麻豆高清免费国产一区| 欧美a级理论片| 日韩成人免费电影| 日本成人在线网站| 男女男精品网站| 蜜芽一区二区三区| 极品美女销魂一区二区三区| 欧美aⅴ一区二区三区视频| 日本不卡1234视频| 麻豆成人av在线| 国产一区亚洲一区| 成人午夜又粗又硬又大| 成人美女视频在线看| 波多野结衣视频一区| 91色|porny| 欧美吞精做爰啪啪高潮| 制服视频三区第一页精品| 日韩精品一区二区三区在线| 欧美精品一区二区三区高清aⅴ| 日韩一区二区三| 国产日韩欧美在线一区| 国产精品三级av在线播放| 亚洲欧美日韩在线| 亚洲成在人线在线播放| 老鸭窝一区二区久久精品| 国产成人啪午夜精品网站男同| 成人性色生活片免费看爆迷你毛片| 91美女福利视频| 欧美精品在欧美一区二区少妇| 日韩精品一区二区三区中文精品| 久久精品人人做人人综合| 国产精品久久国产精麻豆99网站| 亚洲女人小视频在线观看| 日韩精品色哟哟| 国产精品一区不卡| 在线亚洲免费视频| 精品99999| 亚洲精品日日夜夜| 久久精品国内一区二区三区| 成人国产精品免费| 欧美一区欧美二区| 欧美国产欧美亚州国产日韩mv天天看完整 | 精品久久国产老人久久综合| 欧美国产日韩在线观看| 午夜av电影一区| 高清国产一区二区| 欧美美女直播网站| 欧美激情资源网| 天天操天天色综合| 99热99精品| 精品久久久久久无| 亚洲在线成人精品| 国产超碰在线一区| 欧美一区二区视频观看视频| 欧美国产日本韩| 美女任你摸久久| 91福利精品视频| 久久九九全国免费| 性久久久久久久久久久久| eeuss影院一区二区三区| 欧美一区2区视频在线观看| 综合激情成人伊人| 国产精品一区免费在线观看| 欧美日韩极品在线观看一区| 国产精品国产馆在线真实露脸| 日本欧美在线观看| 欧美性猛交xxxxxx富婆| 中国色在线观看另类| 久久国产日韩欧美精品| 欧美日韩亚洲综合| 亚洲精品亚洲人成人网| 高潮精品一区videoshd| 欧美岛国在线观看| 日韩精品免费专区| 欧美在线综合视频| 亚洲欧美日韩一区二区三区在线观看| 精品一区二区av| 日韩视频一区二区在线观看| 亚洲成人黄色影院| 在线一区二区三区| 亚洲精品菠萝久久久久久久| 成+人+亚洲+综合天堂| 国产喷白浆一区二区三区| 精品一区二区三区欧美| 欧美一卡二卡三卡| 亚洲成人免费看| 欧美在线999| 一区二区在线观看视频| 91视频观看视频| 亚洲精品欧美专区| 成人av免费在线| 久久美女艺术照精彩视频福利播放| 免费成人在线观看| 欧美一区二区三区不卡| 日本aⅴ精品一区二区三区| 欧美精品久久一区| 亚洲一区二区高清| 欧美高清性hdvideosex| 天堂蜜桃91精品| 日韩视频123| 国产一区二区三区四区五区入口| 欧美精品一区二区三区蜜臀| 国产精品羞羞答答xxdd| 国产精品美女久久久久av爽李琼 | 亚洲精品国产一区二区三区四区在线| 成人性生交大片免费| 国产精品久久久久一区二区三区 | 国产清纯美女被跳蛋高潮一区二区久久w| 亚洲国产精品久久人人爱蜜臀 | 日韩一区二区在线看| 美国毛片一区二区| 久久九九99视频| 成人黄色在线网站| 亚洲另类在线一区| 欧美日韩久久一区| 麻豆国产精品视频| 国产精品第四页| 欧美性大战久久| 精品在线亚洲视频| 国产精品久久三| 欧美日韩午夜精品| 国内成人精品2018免费看| 国产精品美女久久久久aⅴ国产馆| 91在线porny国产在线看| 亚洲国产一区二区三区青草影视| 欧美日韩中文国产| 国产在线观看免费一区| 一区二区三区精品视频| 日韩欧美一区二区视频| 成人av在线影院| 日韩电影在线观看网站| 中文字幕国产一区|