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

📄 swingcomponentsupport.html

📁 Swing组件的可视化设计程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/jeta/open/support/SwingComponentSupport.html#isSelected(java.lang.String)">isSelected</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the selected state of the AbstractButton that has the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/jeta/open/support/SwingComponentSupport.html#setSelected(java.lang.String, boolean)">setSelected</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName,            boolean&nbsp;sel)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selected attribute for the AbstractButton with the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/jeta/open/support/SwingComponentSupport.html#setSelectedItem(java.lang.String, java.lang.Object)">setSelectedItem</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName,                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the selected item in a JComboBox that has the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/jeta/open/support/SwingComponentSupport.html#setText(java.lang.String, java.lang.String)">setText</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName,        <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;txt)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets text property for the Component with the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/jeta/open/support/SwingComponentSupport.html#setVisible(java.lang.String, boolean)">setVisible</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName,           boolean&nbsp;bVisible)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shows/Hides the component with the given name.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_com.jeta.open.support.ComponentFinder"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface com.jeta.open.support.<A HREF="../../../../com/jeta/open/support/ComponentFinder.html" title="interface in com.jeta.open.support">ComponentFinder</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../com/jeta/open/support/ComponentFinder.html#getComponentByName(java.lang.String)">getComponentByName</A>, <A HREF="../../../../com/jeta/open/support/ComponentFinder.html#getComponentsByName(java.lang.String)">getComponentsByName</A>, <A HREF="../../../../com/jeta/open/support/ComponentFinder.html#reset()">reset</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="enableComponent(java.lang.String, boolean)"><!-- --></A><H3>enableComponent</H3><PRE>public void <B>enableComponent</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;commandId,                            boolean&nbsp;bEnable)</PRE><DL><DD>Enables/Disables the component associated with the commandid<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>commandId</CODE> - the id of the command whose button to enable/disable<DD><CODE>bEnable</CODE> - true/false to enable/disable</DL></DD></DL><HR><A NAME="getBoolean(java.lang.String)"><!-- --></A><H3>getBoolean</H3><PRE>public boolean <B>getBoolean</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the selected state of the AbstractButton that has the given name. If a component is found with the given name and that component is not an AbstractButton, then false is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the selected state of the named AbstractButton.</DL></DD></DL><HR><A NAME="getButton(java.lang.String)"><!-- --></A><H3>getButton</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/AbstractButton.html" title="class or interface in javax.swing">AbstractButton</A> <B>getButton</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the button that is contained in this panel and has the given name.  If the component is not found nor is an AbstractButton, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named AbstractButton</DL></DD></DL><HR><A NAME="getCheckBox(java.lang.String)"><!-- --></A><H3>getCheckBox</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JCheckBox.html" title="class or interface in javax.swing">JCheckBox</A> <B>getCheckBox</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the JCheckBox that is contained in this panel and has the given name.  If the component is not found nor is a JCheckBox, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JCheckBox</DL></DD></DL><HR><A NAME="getComboBox(java.lang.String)"><!-- --></A><H3>getComboBox</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComboBox.html" title="class or interface in javax.swing">JComboBox</A> <B>getComboBox</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the JComboBox that is contained in this panel and has the given name.  If the component is not found nor is a JComboBox, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JComboBox</DL></DD></DL><HR><A NAME="getInteger(java.lang.String, int)"><!-- --></A><H3>getInteger</H3><PRE>public int <B>getInteger</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName,                      int&nbsp;defaultValue)</PRE><DL><DD>Locates the JTextField that has the given component name.  The text in the field is converted to an integer and returned.  If the text cannot be converted to an integer or the component is not a JTextField, the defaultValue is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>compName</CODE> - the JTextField to find.<DD><CODE>defaultValue</CODE> - the value to return if the component is not a JTextField or the text in the field is not an integer.<DT><B>Returns:</B><DD>the text converted to an integer.</DL></DD></DL><HR><A NAME="getLabel(java.lang.String)"><!-- --></A><H3>getLabel</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JLabel.html" title="class or interface in javax.swing">JLabel</A> <B>getLabel</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the JLabel that is contained in this panel and has the given name.  If the component is not found nor is a JLabel, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JLabel.</DL></DD></DL><HR><A NAME="getList(java.lang.String)"><!-- --></A><H3>getList</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JList.html" title="class or interface in javax.swing">JList</A> <B>getList</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the JList that is contained in this panel and has the given name.  If the component is not found nor is a JList, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JList</DL></DD></DL><HR><A NAME="getPanel(java.lang.String)"><!-- --></A><H3>getPanel</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JPanel.html" title="class or interface in javax.swing">JPanel</A> <B>getPanel</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns the JPanel that is contained in this panel and has the given name.  If the component is not found nor is a JPanel, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JPanel</DL></DD></DL><HR><A NAME="getProgressBar(java.lang.String)"><!-- --></A><H3>getProgressBar</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JProgressBar.html" title="class or interface in javax.swing">JProgressBar</A> <B>getProgressBar</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;compName)</PRE><DL><DD>Returns JProgressBar that is contained in this panel and has the given name.  If the component is not found nor is a JProgressBar, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JProgressBar.</DL></DD></DL><HR><A NAME="getRadioButton(java.lang.String)"><!-- --></A><H3>getRadioButton</H3><PRE>

⌨️ 快捷键说明

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