📄 swingcomponentsupport.html
字号:
public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JRadioButton.html" title="class or interface in javax.swing">JRadioButton</A> <B>getRadioButton</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> compName)</PRE><DL><DD>Returns the JRadioButton that is contained in this panel and has the given name. If the component is not found nor is a JRadioButton, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JRadioButton</DL></DD></DL><HR><A NAME="getSelectedItem(java.lang.String)"><!-- --></A><H3>getSelectedItem</H3><PRE>public <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> <B>getSelectedItem</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> compName)</PRE><DL><DD>Returns the selected item from the JList or JComboBox that has the given name. If a list or combo is not found with the name, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the selected item from the named JList or JComboBox.</DL></DD></DL><HR><A NAME="getSpinner(java.lang.String)"><!-- --></A><H3>getSpinner</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JSpinner.html" title="class or interface in javax.swing">JSpinner</A> <B>getSpinner</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> compName)</PRE><DL><DD>Returns JSpinner that is contained in this panel and has the given name. If the component is not found nor is a JSpinner, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JSpinner</DL></DD></DL><HR><A NAME="getTable(java.lang.String)"><!-- --></A><H3>getTable</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html" title="class or interface in javax.swing">JTable</A> <B>getTable</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> compName)</PRE><DL><DD>Returns the JTable that is contained in this panel and has the given name. If the component is not found nor is a JTable, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JTable</DL></DD></DL><HR><A NAME="getTextField(java.lang.String)"><!-- --></A><H3>getTextField</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTextField.html" title="class or interface in javax.swing">JTextField</A> <B>getTextField</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> compName)</PRE><DL><DD>Returns the JTextField that is contained in this panel and has the given name. If the component is not found nor is a JTextField, null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the named JTextField</DL></DD></DL><HR><A NAME="getText(java.lang.String)"><!-- --></A><H3>getText</H3><PRE>public <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> <B>getText</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> compName)</PRE><DL><DD>Returns the text property from a Component. If a component is not found with the given name or a component does not have a text property, then null is returned.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the text property.</DL></DD></DL><HR><A NAME="isSelected(java.lang.String)"><!-- --></A><H3>isSelected</H3><PRE>public boolean <B>isSelected</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> compName)</PRE><DL><DD>Return 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>See Also:</B><DD><CODE>SwingCompnentSupport#getBoolean</CODE></DL></DD></DL><HR><A NAME="setVisible(java.lang.String, boolean)"><!-- --></A><H3>setVisible</H3><PRE>public void <B>setVisible</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> compName, boolean bVisible)</PRE><DL><DD>Shows/Hides the component with the given name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>compName</CODE> - the name of the component to enable/disable<DD><CODE>bVisible</CODE> - show/hide the component/disable</DL></DD></DL><HR><A NAME="setSelected(java.lang.String, boolean)"><!-- --></A><H3>setSelected</H3><PRE>public void <B>setSelected</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> compName, boolean sel)</PRE><DL><DD>Sets the selected attribute for the AbstractButton with the given name. If a component is found with the given name and that component is not an AbstractButton, this call is ignored.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>compName</CODE> - the name of the AbstractButton whose selected attribute to set.<DD><CODE>sel</CODE> - the selected attribute to set</DL></DD></DL><HR><A NAME="setSelectedItem(java.lang.String, java.lang.Object)"><!-- --></A><H3>setSelectedItem</H3><PRE>public void <B>setSelectedItem</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> 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> value)</PRE><DL><DD>Sets the selected item in a JComboBox that has the given name. If a combo is not found with the name, no action is performed.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setText(java.lang.String, java.lang.String)"><!-- --></A><H3>setText</H3><PRE>public void <B>setText</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> 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> txt)</PRE><DL><DD>Sets text property for the Component with the given name. If no component is found or the Component does not have a text property, then this method is a no op.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>compName</CODE> - the name of the JTextComponent whose text to set<DD><CODE>txt</CODE> - the text to set</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SwingComponentSupport.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../com/jeta/open/support/EmptyCollection.html" title="class in com.jeta.open.support"><B>PREV CLASS</B></A> NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="SwingComponentSupport.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright © 2004 JETA Software Inc. All Rights Reserved.</i></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -