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

📄 index.html

📁 jsf、swing的官方指南
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<body onload="load()">    <div id=TopBar> <div id=TopBar_tr> <div id=TopBar_tl> <div id=TopBar_br> <div id=TopBar_bl>                     <div id=TopBar_right>                             <a target="_blank"                                href="http://java.sun.com/javase/6/download.jsp">Download                                the JDK</a>                            <br>                            <a href="../../search.html" target="_blank">Search the                                Tutorials</a>                        <br>                        <a href="javascript:toggleLeft()"                            id="ToggleLeft">Hide the TOC</a>                    </div>                 </div> </div> </div> </div> </div>    <div id=LeftBar>        <div id=Contents>            <div class="nolinkLESSON">Using Swing Components</div><div class="linkAHEAD"><a href="components.html">A Visual Index to the Swing Components</a></div><div class="linkAHEAD"><a href="html.html">Using HTML in Swing Components</a></div><div class="linkAHEAD"><a href="toplevel.html">Using Top-Level Containers</a></div><div class="linkAHEAD"><a href="model.html">Using Models</a></div><div class="linkAHEAD"><a href="jcomponent.html">The JComponent Class</a></div><div class="linkAHEAD"><a href="text.html">Using Text Components</a></div><div class="linkBHEAD"><a href="generaltext.html">Text Component Features</a></div><div class="linkBHEAD"><a href="textapi.html">The Text Component API</a></div><div class="linkAHEAD"><a href="componentlist.html">How to Use Various Components</a></div><div class="linkBHEAD"><a href="applet.html">How to Make Applets</a></div><div class="linkBHEAD"><a href="button.html">How to Use Buttons, Check Boxes, and Radio Buttons</a></div><div class="linkBHEAD"><a href="colorchooser.html">How to Use Color Choosers</a></div><div class="linkBHEAD"><a href="combobox.html">How to Use Combo Boxes</a></div><div class="linkBHEAD"><a href="dialog.html">How to Make Dialogs</a></div><div class="linkBHEAD"><a href="editorpane.html">How to Use Editor Panes and Text Panes</a></div><div class="linkBHEAD"><a href="filechooser.html">How to Use File Choosers</a></div><div class="linkBHEAD"><a href="formattedtextfield.html">How to Use Formatted Text Fields</a></div><div class="linkBHEAD"><a href="frame.html">How to Make Frames (Main Windows)</a></div><div class="linkBHEAD"><a href="internalframe.html">How to Use Internal Frames</a></div><div class="linkBHEAD"><a href="label.html">How to Use Labels</a></div><div class="linkBHEAD"><a href="layeredpane.html">How to Use Layered Panes</a></div><div class="linkBHEAD"><a href="list.html">How to Use Lists</a></div><div class="linkBHEAD"><a href="menu.html">How to Use Menus</a></div><div class="linkBHEAD"><a href="panel.html">How to Use Panels</a></div><div class="linkBHEAD"><a href="passwordfield.html">How to Use Password Fields</a></div><div class="linkBHEAD"><a href="progress.html">How to Use Progress Bars</a></div><div class="linkBHEAD"><a href="rootpane.html">How to Use Root Panes</a></div><div class="linkBHEAD"><a href="scrollpane.html">How to Use Scroll Panes</a></div><div class="linkBHEAD"><a href="separator.html">How to Use Separators</a></div><div class="linkBHEAD"><a href="slider.html">How to Use Sliders</a></div><div class="linkBHEAD"><a href="spinner.html">How to Use Spinners</a></div><div class="linkBHEAD"><a href="splitpane.html">How to Use Split Panes</a></div><div class="linkBHEAD"><a href="tabbedpane.html">How to Use Tabbed Panes</a></div><div class="linkBHEAD"><a href="table.html">How to Use Tables</a></div><div class="linkBHEAD"><a href="textarea.html">How to Use Text Areas</a></div><div class="linkBHEAD"><a href="textfield.html">How to Use Text Fields</a></div><div class="linkBHEAD"><a href="toolbar.html">How to Use Tool Bars</a></div><div class="linkBHEAD"><a href="tooltip.html">How to Use Tool Tips</a></div><div class="linkBHEAD"><a href="tree.html">How to Use Trees</a></div><div class="linkAHEAD"><a href="icon.html">How to Use Icons</a></div><div class="linkAHEAD"><a href="border.html">How to Use Borders</a></div><div class="linkAHEAD"><a href="problems.html">Solving Common Component Problems</a></div></div>    </div>    <div id=MainFlow class=MainFlow_indented>        <div class=PrintHeaders>            <b>Trail:</b> Creating a GUI with JFC/Swing        </div>        <div id=BreadCrumbs>            <a href=../../index.html target=_top>Home Page</a>        &gt;            <a href=../index.html target=_top>Creating a GUI with JFC/Swing</a>        </div>        <div class=NavBit>                <a target=_top href=../learn/index.html>&laquo;&nbsp;Previous</a>&nbsp;&bull;&nbsp;<a target=_top href=../TOC.html>Trail</a>&nbsp;&bull;&nbsp;<a target=_top href=components.html>Next&nbsp;&raquo;</a>        </div>        <p style="text-align: center">                <a href=examples/index.html>Examples Index</a>        </p>        <div id=PageTitle>Lesson: Using Swing Components</div>        <blockquote><blockquote><hr><strong>Other than<a class="TutorialLink" target="_top" href="tabbedpane.html">How to Use Tabbed Panes</a>, this section has not yet been updated to reflect features andconventions of the latest release, JDK 6.0.</strong><hr></blockquote>This lesson gives you the background informationyou need to use the Swing components,and then describes every Swing component.It assumes that you've successfullycompiled and run a program that uses Swing components,and that you're familiar with basic Swing concepts.These prerequisites are covered in <a class="TutorialLink" target="_top" href="../start/index.html">Getting Started with Swing</a> and<a class="TutorialLink" target="_top" href="../learn/index.html">Learning Swing by Example</a>.</blockquote><h3><a href="components.html">A Visual Index to the Swing Components</a></h3><blockquote>This section has pictures of all the standard Swing components,from top-level containers to scroll panesto buttons.To find the section that discusses a particular component,just click the component's picture.</blockquote><h3><a href="html.html">Using HTML in Swing Components</a></h3><blockquote>Describes how to vary the font, color, or other formatting of textdisplayed by Swing componentsby using HTML tags.</blockquote><h3><a href="toplevel.html">Using Top-Level Containers</a></h3><blockquote>Discusses how to use the features shared by the<code>JFrame</code>,<code>JDialog</code>, and<code>JApplet</code> classes &#151;content panes, menu bars, and root panes.It also discusses the <em>containment hierarchy</em>,which refers to the tree of components contained by a top-level container.</blockquote><h3><a href="model.html">Using Models</a></h3><blockquote>Tells you about the Swing model architecture.This variation on Model-View-Controller (MVC)means that you can, if you wish,specify how the data and state of a Swing componentare stored and retrieved.The benefits are the ability to share data and state between components,and to greatly improve the performance of componentssuch as tablesthat display large amounts of data.</blockquote><h3><a href="jcomponent.html">The JComponent Class</a></h3><blockquote>Tells you about the features <code>JComponent</code> provides to its subclasses &#151; which include almost all Swing components &#151;and gives tips on how to take advantage of these features.This section ends with API tablesdescribing the commonly used API defined by <code>JComponent</code> and its superclasses, <code>Container</code> and<code>Component</code>.</blockquote><h3><a href="text.html">Using Text Components</a></h3><blockquote>Describes the features and API shared by all components that descend from<code>JTextComponent</code>.You probably don't need to read this section if you're just using text fields (formatted or not)or text areas.</blockquote><h3><a href="componentlist.html">How to...</a></h3><blockquote>Sections on how to use each Swing component,in alphabetical order.We don't expect you to read these sections in order.Instead, we recommend reading the relevant "How to" sectionsonce you're ready to start using Swing componentsin your own programs.For example, if your program needs a frame, a label, a button, and a color chooser,you should read<a href="frame.html">How to Make Frames</a>,<a href="label.html">How to Use Labels</a>,<a href="button.html">How to Use Buttons</a>, and<a href="colorchooser.html">How to Use Color Choosers</a>.</blockquote><h3><a href="border.html">How to Use Borders</a></h3><blockquote>Borders are very handy for drawing lines, titles, and empty spacearound the edges of components.  (You might have noticed that theexamples in this trail use a lot of borders.) This section tells you how to add a border to any <code>JComponent</code>.</blockquote><h3><a href="icon.html">How to Use Icons</a></h3><blockquote>Many Swing components can display icons.  Usually, icons areimplemented as instances of the <code>ImageIcon</code> class.</blockquote><h3><a href="problems.html">Solving Common Component Problems</a></h3><blockquote>This section discusses solutions to common component-related problems.</blockquote><h3><a class="TutorialLink" target="_top" href="../QandE/questions-ch3.html">Questions and Exercises</a></h3><blockquote>Try these questions and exercises to test what you've learned in this lesson.</blockquote>         </blockquote>    <div class=NavBit>        <a href=../learn/index.html>&laquo; Previous</a>        &bull;        <a href=../TOC.html>Trail</a>        &bull;        <a href=components.html>Next &raquo;</a>    </div>    </div>    <div id=Footer><div id=TagNotes>    Problems with the examples? Try <a target="_blank"        href=../../information/run-examples.html>Compiling and Running        the Examples: FAQs</a>.    <br>    Complaints? Compliments? Suggestions? <a target="_blank"        href="http://developer.sun.com/contact/tutorial_feedback.jsp">Give    us your feedback</a>.<br><br>    <a target="_blank" href="../../information/copyright.html">Copyright</a>    1995-2006 Sun Microsystems, Inc.  All rights reserved.    <span id=Download></span></div>     </div>    <div class=PrintHeaders>        <b>Previous page:</b> Previous Lesson        <br><b>Next page:</b> A Visual Index to the Swing Components    </div>    </body></html> 

⌨️ 快捷键说明

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