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

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

?? mainframe.java

?? JAVA HelpGUI 1.1是一個在JAVA環境下幫助開發“幫助視圖“菜單的組件庫
?? JAVA
字號:
/* * MainFrame.java - HelpGui main frame * Copyright (C) 2003 Alexandre THOMAS * alexthomas@free.fr * http://helpgui.sourceforge.net * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */package net.sourceforge.helpgui.gui;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.GridBagConstraints;import java.awt.GridBagLayout;import javax.swing.ImageIcon;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JToolBar;import javax.swing.JMenuBar;import javax.swing.JMenu;import javax.swing.JMenuItem;import net.sourceforge.helpgui.page.PageBookMarks;import net.sourceforge.helpgui.util.Language;import net.sourceforge.helpgui.parser.TocOpen;import net.sourceforge.helpgui.util.Out;import net.sourceforge.helpgui.HelpGui;/**  * Main frame of the help GUI	* @author Alexandre THOMAS	*/public class MainFrame extends JFrame implements ActionListener{	/** Version of HelpGUI.*/	public String version = "1.0";		/**Buttons on the toolbar*/	protected JButton jbPrev;	protected JButton jbNext;	protected JButton jbHome;	protected JButton jbPrint;	protected JButton jbBookmarks;	/** Menu for bookmarks */	JMenu menuBookMarks;		//The view of the data	protected HelpView helpView;	/** The help path where the data are */	public static String helpPath = "/docs/help";		/** The icons path where the icons are */	public static String iconsPath = "java";	////////////////////////////////////////////////////////////////////	/** Standard Constructor. */	public MainFrame () {		super("Help Gui");		initFrame("/docs/help", iconsPath);		}		/** Standard Constructor. */	public MainFrame (String helpPath) {		super("Help Gui");		initFrame(helpPath, iconsPath);		}	/** Standard Constructor. */	public MainFrame(String helpPath, String iconsPath) {		super("Help Gui");		initFrame(helpPath, iconsPath);	}	/** Standard Constructor. */	public void initFrame(String helpPath, String iconsPath) {						//Remove the last "/" character		if(helpPath.endsWith("/")) helpPath = helpPath.substring(0,helpPath.length()-1);				this.helpPath = helpPath;		this.iconsPath = iconsPath;										//Default action on close		setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);		addWindowListener(new java.awt.event.WindowAdapter() {			public void windowClosing(java.awt.event.WindowEvent evt) {				setVisible(false);			}		});						//Create the menu bar		JMenuBar menuBar = new JMenuBar();		setJMenuBar(menuBar);				JMenu menuFile = new JMenu(Language.getInstance().getText("file"));		JMenu menuAction = new JMenu(Language.getInstance().getText("action"));		menuBookMarks = new JMenu(Language.getInstance().getText("bookmarks"));				menuBar.add(menuFile);    menuBar.add(menuAction);    menuBar.add(menuBookMarks);					menuFile.add(Language.getInstance().getText("print")).addActionListener(this);		menuFile.add(Language.getInstance().getText("quit")).addActionListener(this);		menuAction.add(Language.getInstance().getText("previous")).addActionListener(this);		menuAction.add(Language.getInstance().getText("next")).addActionListener(this);		menuAction.add(Language.getInstance().getText("home")).addActionListener(this);		menuBookMarks.add(Language.getInstance().getText("addBookmarks")).addActionListener(this);				menuBookMarks.addSeparator();						//Construct the buttons		jbPrev  = new TestRolloverButton(new ImageIcon(getClass().getResource("/net/sourceforge/helpgui/icons/"+iconsPath+"/previous.gif")));		jbNext  = new TestRolloverButton(new ImageIcon(getClass().getResource("/net/sourceforge/helpgui/icons/"+iconsPath+"/next.gif")));		jbHome  = new TestRolloverButton(new ImageIcon(getClass().getResource("/net/sourceforge/helpgui/icons/"+iconsPath+"/home.gif")));		jbPrint = new TestRolloverButton(new ImageIcon(getClass().getResource("/net/sourceforge/helpgui/icons/"+iconsPath+"/print.gif")));		jbBookmarks = new TestRolloverButton(new ImageIcon(getClass().getResource("/net/sourceforge/helpgui/icons/"+iconsPath+"/addbookmarks.gif")));						jbPrev.addActionListener(this);		jbNext.addActionListener(this);		jbHome.addActionListener(this);		jbPrint.addActionListener(this);		jbBookmarks.addActionListener(this);						//Construct a toolbar		JToolBar toolBar = new JToolBar();    toolBar.setRollover(true);		toolBar.setFloatable(false);		toolBar.setBorderPainted(true);    		//Add buttons to toolbar		toolBar.add(jbPrev);		toolBar.add(jbNext);		toolBar.add(jbHome);		toolBar.add(jbPrint);		toolBar.add(jbBookmarks);		//Set ToolTipsText to the button			jbPrev.setToolTipText(Language.getInstance().getText("previous"));		jbNext.setToolTipText(Language.getInstance().getText("next"));		jbHome.setToolTipText(Language.getInstance().getText("home"));		jbPrint.setToolTipText(Language.getInstance().getText("print"));		jbBookmarks.setToolTipText(Language.getInstance().getText("addBookmarks"));			//View of Data		helpView = new HelpView();				//Construct gui parameters		GridBagLayout gbPanel = new GridBagLayout();		GridBagConstraints gbcPanel = new GridBagConstraints();		getContentPane().setLayout( gbPanel );				//Add the main tool bar		gbcPanel.gridx = 0;		gbcPanel.gridy = 0;		gbcPanel.gridwidth = 1;		gbcPanel.gridheight = 1;		gbcPanel.fill = GridBagConstraints.VERTICAL;		gbcPanel.weightx = 1;		gbcPanel.weighty = 0;		gbcPanel.anchor = GridBagConstraints.WEST;		gbPanel.setConstraints( toolBar, gbcPanel );		getContentPane().add( toolBar );				//Add the panel with data to the mainframe		gbcPanel.gridx = 0;		gbcPanel.gridy = 1;		gbcPanel.gridwidth = 1;		gbcPanel.gridheight = 1;		gbcPanel.fill = GridBagConstraints.BOTH;		gbcPanel.weightx = 1;		gbcPanel.weighty = 1;		gbcPanel.anchor = GridBagConstraints.CENTER;		gbPanel.setConstraints( helpView, gbcPanel );		getContentPane().add( helpView );				//Pack the window		pack();				setLocation(100,100);		//Set a message		Out.msg("Construction of the GUI", Out.OK);				//Load the TOC		try {			TocOpen opener = new TocOpen (helpView);			opener.load();						Out.msg("Loading the Table of Content", Out.OK);		} catch (Exception e) {			Out.msg("Table of Content XML parsing", Out.FAILED);			System.out.println(e);		}						//Go to the home page		helpView.goHome();		//helpView.firstNodeExpand();	}		/** Handles buttons events */	public void actionPerformed(ActionEvent e) {		if (e.getSource() instanceof JButton) {			if(e.getSource().equals(jbPrev)) 				helpView.previousPage();			else if(e.getSource().equals(jbNext)) 				helpView.nextPage();			else if(e.getSource().equals(jbHome))				helpView.goHome();			else if(e.getSource().equals(jbPrint)) 				helpView.print();			else if(e.getSource().equals(jbBookmarks)) 				addBookMarks();		} else if (e.getSource() instanceof JMenuItem) {				String arg = e.getActionCommand();				if (arg.equals(Language.getInstance().getText("previous"))) 					helpView.previousPage();				else if (arg.equals(Language.getInstance().getText("next"))) 					helpView.nextPage();				else if (arg.equals(Language.getInstance().getText("home"))) 					helpView.goHome();				else if (arg.equals(Language.getInstance().getText("print"))) 					helpView.print();				else if (arg.equals(Language.getInstance().getText("quit"))) 					quit();				else if (arg.equals(Language.getInstance().getText("addBookmarks"))) 					addBookMarks();				else helpView.updatePage (PageBookMarks.getInstance().getBookMark((JMenuItem)e.getSource()), true);		}	}		/** Close the Frame */	public void quit() {		if(HelpGui.debug) System.exit(0);		else setVisible(false);	}			/** Set a bookmark to the current page */	public void addBookMarks() {		//System.out.println("Add bookmark to "+helpView.getCurrentPage());				JMenuItem menuItem = new JMenuItem(helpView.getCurrentPage().toString());		menuItem.addActionListener(this);		menuBookMarks.add(menuItem);		PageBookMarks.getInstance().addBookMark(menuItem, helpView.getCurrentPage());	}	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一区二区三区中文免费| 国产99久久久国产精品潘金| 欧美午夜精品一区| 亚洲免费观看视频| 欧美午夜精品一区| 免费观看在线色综合| 日韩你懂的电影在线观看| 久久99久国产精品黄毛片色诱| 5566中文字幕一区二区电影| 九色|91porny| 国产精品乱码人人做人人爱| 在线精品视频免费观看| 天天操天天干天天综合网| 欧美成人午夜电影| 成人激情电影免费在线观看| 亚洲综合999| 日韩一区二区在线观看视频播放| 国产高清精品在线| 亚洲美女偷拍久久| 欧美一区二区三区在线| 国产成人99久久亚洲综合精品| 一区免费观看视频| 欧美日韩亚洲不卡| 国产精品77777| 一区二区视频在线| 日韩一二三区不卡| av一区二区不卡| 蜜臀av一级做a爰片久久| 欧美激情艳妇裸体舞| 欧美视频在线播放| 国产成人av福利| 亚洲妇女屁股眼交7| 久久嫩草精品久久久精品| 色天天综合久久久久综合片| 久久99九九99精品| 亚洲尤物在线视频观看| 久久亚洲精华国产精华液 | 精品少妇一区二区三区日产乱码| 成人18视频在线播放| 日本不卡一二三| ...xxx性欧美| 欧美成人艳星乳罩| 在线观看亚洲成人| 国产精品小仙女| 亚洲成人av福利| 国产精品久久久久久久岛一牛影视| 欧美精品v国产精品v日韩精品| 国产精品亚洲午夜一区二区三区| 一区二区三区精品| 中文成人av在线| 欧美一区二区三区系列电影| 91亚洲男人天堂| 麻豆精品精品国产自在97香蕉| 亚洲天堂成人在线观看| 精品国产免费一区二区三区四区| 欧美综合亚洲图片综合区| 成人18精品视频| 国产精品一区在线观看你懂的| 日韩av不卡在线观看| 亚洲黄色av一区| 综合久久给合久久狠狠狠97色| 久久久高清一区二区三区| 日韩欧美黄色影院| 日韩视频不卡中文| 欧美日韩精品专区| 欧美午夜精品久久久久久孕妇| 99视频精品全部免费在线| 国产aⅴ精品一区二区三区色成熟| 免费高清在线视频一区·| 午夜精品久久久久久久99水蜜桃 | 精品无人区卡一卡二卡三乱码免费卡| 亚洲午夜羞羞片| 一区二区三区影院| 一区二区三区四区蜜桃| 亚洲日本成人在线观看| 国产欧美日韩不卡| 国产日韩精品视频一区| 国产三级欧美三级| 国产欧美一区二区三区网站| 国产偷国产偷精品高清尤物| 久久久久99精品国产片| 国产欧美日韩久久| 国产精品久久久久毛片软件| 亚洲国产成人午夜在线一区| 国产女人18毛片水真多成人如厕| 久久这里只有精品首页| 久久久久久一二三区| 国产三级精品在线| 最新高清无码专区| 亚洲激情校园春色| 亚洲不卡一区二区三区| 视频一区中文字幕国产| 免费观看在线综合| 国产精品影音先锋| 成人毛片视频在线观看| 日本乱码高清不卡字幕| 在线观看av一区二区| 欧美精品乱人伦久久久久久| 欧美刺激脚交jootjob| 久久久精品黄色| 亚洲欧洲三级电影| 尤物在线观看一区| 婷婷综合久久一区二区三区| 蜜臀av在线播放一区二区三区| 国内成人精品2018免费看| 国产suv精品一区二区6| 欧美在线视频日韩| 精品国产乱码久久久久久图片| 国产精品三级久久久久三级| 亚洲一级在线观看| 久久超碰97中文字幕| 99热99精品| 欧美久久久久久久久久| 国产色91在线| 午夜视频在线观看一区| 国产精品一区二区久激情瑜伽| 91猫先生在线| 久久这里都是精品| 亚洲综合精品久久| 国产成人免费视频精品含羞草妖精| 91麻豆成人久久精品二区三区| 欧美一卡二卡三卡四卡| 亚洲欧美自拍偷拍| 美国av一区二区| 色综合久久天天综合网| 欧美精品一区二区三区蜜臀| 亚洲一区在线观看网站| 国产精品99久久久久久有的能看| 欧洲另类一二三四区| 国产日韩精品一区二区三区| 天使萌一区二区三区免费观看| 成人av网站在线观看免费| 日韩美女天天操| 亚洲一区二区精品视频| 大白屁股一区二区视频| 日韩亚洲欧美在线观看| 亚洲精品免费看| 高清beeg欧美| 2023国产精品自拍| 奇米影视一区二区三区| 色噜噜狠狠成人网p站| 国产午夜亚洲精品午夜鲁丝片| 日日夜夜精品视频天天综合网| 91婷婷韩国欧美一区二区| 久久久亚洲综合| 久色婷婷小香蕉久久| 欧美日韩在线免费视频| 中文字幕亚洲成人| 国产一区在线精品| 日韩一区二区三区视频在线观看 | 亚洲国产成人av好男人在线观看| 岛国精品在线观看| 久久久综合网站| 精品一区二区精品| 日韩精品中文字幕一区| 香蕉久久一区二区不卡无毒影院 | 911国产精品| 亚洲国产你懂的| 在线精品视频免费播放| 亚洲欧美偷拍卡通变态| 99麻豆久久久国产精品免费优播| 国产欧美日韩在线| 成人免费视频免费观看| 欧美韩国日本一区| 成人一道本在线| 国产精品久99| 99re亚洲国产精品| √…a在线天堂一区| 色视频成人在线观看免| 亚洲欧美aⅴ...| 在线中文字幕不卡| 亚洲国产欧美另类丝袜| 欧美裸体一区二区三区| 日韩精品久久理论片| 欧美一二三在线| 国产乱码精品一区二区三区忘忧草| 久久午夜色播影院免费高清| 国产又黄又大久久| 国产精品少妇自拍| 成人成人成人在线视频| 亚洲免费电影在线| 欧美色偷偷大香| 另类小说欧美激情| 国产欧美日韩麻豆91| 91一区一区三区| 亚洲国产精品久久不卡毛片 | 久久99精品国产.久久久久| 久久久午夜精品| 99精品视频一区二区三区| 亚洲国产va精品久久久不卡综合| 欧美区在线观看| 国产剧情一区二区| 亚洲欧美成人一区二区三区| 欧美精品成人一区二区三区四区| 久久99精品国产91久久来源| 国产精品福利在线播放| 欧美吻胸吃奶大尺度电影| 经典三级一区二区| 亚洲天堂av一区| 欧美一区二区三区在线视频|