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

📄 jtoolbar.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
JToolBar</H3><PRE>public <B>JToolBar</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name)</PRE><DL><DD>Creates a new toolbar with the specified <code>name</code>.  The  name is used as the title of the undocked toolbar.  The default orientation is <code>HORIZONTAL</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the toolbar<DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="JToolBar(java.lang.String, int)"><!-- --></A><H3>JToolBar</H3><PRE>public <B>JToolBar</B>(<A HREF="../../java/lang/String.html">String</A>&nbsp;name,                int&nbsp;orientation)</PRE><DL><DD>Creates a new toolbar with a specified <code>name</code> and <code>orientation</code>. All other constructors call this constructor. If <code>orientation</code> is an invalid value, an exception will be thrown.<DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the toolbar<DD><CODE>orientation</CODE> - the initial orientation -- it must be		either <code>HORIZONTAL</code> or <code>VERTICAL</code><DT><B>Throws:</B><DD><CODE><A HREF="../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if orientation is neither		<code>HORIZONTAL</code> nor <code>VERTICAL</code><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getUI()"><!-- --></A><H3>getUI</H3><PRE>public <A HREF="../../javax/swing/plaf/ToolBarUI.html">ToolBarUI</A> <B>getUI</B>()</PRE><DL><DD>Returns the toolbar's current UI.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JToolBar.html#setUI(javax.swing.plaf.ToolBarUI)"><CODE>setUI(javax.swing.plaf.ToolBarUI)</CODE></A></DL></DD></DL><HR><A NAME="setUI(javax.swing.plaf.ToolBarUI)"><!-- --></A><H3>setUI</H3><PRE>public void <B>setUI</B>(<A HREF="../../javax/swing/plaf/ToolBarUI.html">ToolBarUI</A>&nbsp;ui)</PRE><DL><DD>Sets the L&F object that renders this component.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ui</CODE> - the <code>ToolBarUI</code> L&F object<DT><B>See Also: </B><DD><A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="updateUI()"><!-- --></A><H3>updateUI</H3><PRE>public void <B>updateUI</B>()</PRE><DL><DD>Notification from the <code>UIFactory</code> that the L&F has changed.  Called to replace the UI with the latest version from the  <code>UIFactory</code>.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#updateUI()">updateUI</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#updateUI()"><CODE>JComponent.updateUI()</CODE></A></DL></DD></DL><HR><A NAME="getUIClassID()"><!-- --></A><H3>getUIClassID</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getUIClassID</B>()</PRE><DL><DD>Returns the name of the L&F class that renders this component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JComponent.html#getUIClassID()">getUIClassID</A></CODE> in class <CODE><A HREF="../../javax/swing/JComponent.html">JComponent</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string "ToolBarUI"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, <A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="getComponentIndex(java.awt.Component)"><!-- --></A><H3>getComponentIndex</H3><PRE>public int <B>getComponentIndex</B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c)</PRE><DL><DD>Returns the index of the specified component. (Note: Separators occupy index positions.)<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the <code>Component</code> to find<DT><B>Returns:</B><DD>an integer indicating the component's position,		where 0 is first</DL></DD></DL><HR><A NAME="getComponentAtIndex(int)"><!-- --></A><H3>getComponentAtIndex</H3><PRE>public <A HREF="../../java/awt/Component.html">Component</A> <B>getComponentAtIndex</B>(int&nbsp;i)</PRE><DL><DD>Returns the component at the specified index.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>i</CODE> - the component's position, where 0 is first<DT><B>Returns:</B><DD>the <code>Component</code> at that position,		or <code>null</code> for an invalid index</DL></DD></DL><HR><A NAME="setMargin(java.awt.Insets)"><!-- --></A><H3>setMargin</H3><PRE>public void <B>setMargin</B>(<A HREF="../../java/awt/Insets.html">Insets</A>&nbsp;m)</PRE><DL><DD>Sets the margin between the toolbar's border and its buttons. Setting to <code>null</code> causes the toolbar to use the default margins. The toolbar's default <code>Border</code> object uses this value to create the proper margin. However, if a non-default border is set on the toolbar,  it is that <code>Border</code> object's responsibility to create the appropriate margin space (otherwise this property will  effectively be ignored).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - an <code>Insets</code> object that defines the space 	between the border and the buttons<DT><B>See Also: </B><DD><A HREF="../../java/awt/Insets.html"><CODE>Insets</CODE></A></DL></DD></DL><HR><A NAME="getMargin()"><!-- --></A><H3>getMargin</H3><PRE>public <A HREF="../../java/awt/Insets.html">Insets</A> <B>getMargin</B>()</PRE><DL><DD>Returns the margin between the toolbar's border and its buttons.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an <code>Insets</code> object containing the margin values<DT><B>See Also: </B><DD><A HREF="../../java/awt/Insets.html"><CODE>Insets</CODE></A></DL></DD></DL><HR><A NAME="isBorderPainted()"><!-- --></A><H3>isBorderPainted</H3><PRE>public boolean <B>isBorderPainted</B>()</PRE>

⌨️ 快捷键说明

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