⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 usetheme.html

📁 Besides enhanced looks and advanced features, one of the best things about Swing is its pluggable lo
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>How to use themes</title>
	<meta name="AUTHOR" content="Manish Hatwalne">
</head>
<body>

<font color="#000066" size="7">Using themes</font>

<p>The Theme Demo has a menu with three options. Viz. File, Themes and Help. The demo has a menu and
a <code>JEditorPane</code> which displays HTML and text files. You can view this file in the 
demo application. The sub-menu options and functions are given below.</p>

<h2><font color="#000066">File</font></h2>
<ul>
	<li><b>Open...</b> - This opens a file dialog, from which you can choose the file that you want to display in the
	<code>JEditorPane</code> area of the application. The demo application can only display <code>HTML</code> and 
	<code>text/plain</code> files, it can not edit the files. However, it can follow the HTML links.</li>
	<li><b>Quit</b> - To quit the application.</li>
</ul>	

<h2><font color="#000066">Themes</font></h2>
<ul>
	<li><b>Default Theme</b> - Swing's default Metal L&amp;F with Stell theme, the original Java swing colors.</li>
	<li><b>White Satin</b> - In built theme with Verdana font an off-white colors. The theme is implemented in the code,
	by extending <code>DefaultMetalTheme</code> class.</li>
	<li><b>Moody Blues</b> - Another In built theme with cool blue colors, and default fonts.</li>
	<li><b>Custom Theme...</b> - This will open a file dialog, from which you can select the theme file for the
	application. The theme file is created as a typical Java property file, which can specify 
	the theme colors and fonts.	You can view the theme file format by reading the theme file that has
	been given with this demo application, or from the help. You can also write your own custom theme based on this format.
	This option gives you the choice of having virtually innumerable custom themes for your application.</li>
</ul>
<h2><font color="#000066">Help</font></h2>
<ul>
	<li><b>Show Help</b> - It will display these help pages.</li>
	<li><b>About...</b> - This will display copyright message box, you can also notice that the dialog
	will have colors and fonts depending on the theme.</li> 
</ul>	

<br><hr>
<center><a href="theme.html"><img src="home.gif" width="64" height="64" alt="Home" border="0"><br><b>Home</b></a></center>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -