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

📄 jcolorchooser.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DL><DD>The preview panel property name.</DL><HR><A NAME="CHOOSER_PANELS_PROPERTY"><!-- --></A><H3>CHOOSER_PANELS_PROPERTY</H3><PRE>public static final <A HREF="../../java/lang/String.html">String</A> <B>CHOOSER_PANELS_PROPERTY</B></PRE><DL><DD>The chooserPanel array property name.</DL><HR><A NAME="accessibleContext"><!-- --></A><H3>accessibleContext</H3><PRE>protected <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>accessibleContext</B></PRE><DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JColorChooser()"><!-- --></A><H3>JColorChooser</H3><PRE>public <B>JColorChooser</B>()</PRE><DL><DD>Creates a color chooser pane with an initial color of white.</DL><HR><A NAME="JColorChooser(java.awt.Color)"><!-- --></A><H3>JColorChooser</H3><PRE>public <B>JColorChooser</B>(<A HREF="../../java/awt/Color.html">Color</A>&nbsp;initialColor)</PRE><DL><DD>Creates a color chooser pane with the specified initial color.<DD><DL><DT><B>Parameters:</B><DD><CODE>initialColor</CODE> - the initial color set in the chooser</DL></DD></DL><HR><A NAME="JColorChooser(javax.swing.colorchooser.ColorSelectionModel)"><!-- --></A><H3>JColorChooser</H3><PRE>public <B>JColorChooser</B>(<A HREF="../../javax/swing/colorchooser/ColorSelectionModel.html">ColorSelectionModel</A>&nbsp;model)</PRE><DL><DD>Creates a color chooser pane with the specified <code>ColorSelectionModel</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>initialColor</CODE> - the initial color set in the chooser</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="showDialog(java.awt.Component, java.lang.String, java.awt.Color)"><!-- --></A><H3>showDialog</H3><PRE>public static <A HREF="../../java/awt/Color.html">Color</A> <B>showDialog</B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;component,                               <A HREF="../../java/lang/String.html">String</A>&nbsp;title,                               <A HREF="../../java/awt/Color.html">Color</A>&nbsp;initialColor)</PRE><DL><DD>Shows a modal color-chooser dialog and blocks until the dialog is hidden.  If the user presses the "OK" button, then this method hides/disposes the dialog and returns the selected color. If the user presses the "Cancel" button or closes the dialog without pressing "OK", then this method hides/disposes the dialog and returns <code>null</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>component</CODE> - the parent <code>Component</code> for the dialog<DD><CODE>title</CODE> - the String containing the dialog's title<DD><CODE>initialColor</CODE> - the initial Color set when the color-chooser is shown</DL></DD></DL><HR><A NAME="createDialog(java.awt.Component, java.lang.String, boolean, javax.swing.JColorChooser, java.awt.event.ActionListener, java.awt.event.ActionListener)"><!-- --></A><H3>createDialog</H3><PRE>public static <A HREF="../../javax/swing/JDialog.html">JDialog</A> <B>createDialog</B>(<A HREF="../../java/awt/Component.html">Component</A>&nbsp;c,                                   <A HREF="../../java/lang/String.html">String</A>&nbsp;title,                                   boolean&nbsp;modal,                                   <A HREF="../../javax/swing/JColorChooser.html">JColorChooser</A>&nbsp;chooserPane,                                   <A HREF="../../java/awt/event/ActionListener.html">ActionListener</A>&nbsp;okListener,                                   <A HREF="../../java/awt/event/ActionListener.html">ActionListener</A>&nbsp;cancelListener)</PRE><DL><DD>Creates and returns a new dialog containing the specified <code>ColorChooser</code>` pane along with "OK", "Cancel", and "Reset" buttons. If the "OK" or "Cancel" buttons are pressed, the dialog is automatically hidden (but not disposed).  If the "Reset" button is pressed, the color-chooser's color will be reset to the color which was set the last time <code>show</code> was invoked on the dialog and the dialog will remain showing.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the parent component for the dialog<DD><CODE>title</CODE> - the title for the dialog<DD><CODE>modal</CODE> - a boolean. When true, the remainder of the program                       is inactive until the dialog is closed.<DD><CODE>chooserPane</CODE> - the color-chooser to be placed inside the dialog<DD><CODE>okListener</CODE> - the ActionListener invoked when "OK" is pressed<DD><CODE>cancelListener</CODE> - the ActionListener invoked when "Cancel" is pressed</DL></DD></DL><HR><A NAME="getUI()"><!-- --></A><H3>getUI</H3><PRE>public <A HREF="../../javax/swing/plaf/ColorChooserUI.html">ColorChooserUI</A> <B>getUI</B>()</PRE><DL><DD>Returns the L&F object that renders this component.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ColorChooserUI object that renders this component</DL></DD></DL><HR><A NAME="setUI(javax.swing.plaf.ColorChooserUI)"><!-- --></A><H3>setUI</H3><PRE>public void <B>setUI</B>(<A HREF="../../javax/swing/plaf/ColorChooserUI.html">ColorChooserUI</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 ColorChooserUI 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>UIManager</code> that the L&F has changed. Replaces the current UI object with the latest version from the <code>UIManager</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>

⌨️ 快捷键说明

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