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

📄 jetatoolbox.html

📁 Swing组件的可视化设计程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Dimension.html" title="class or interface in java.awt">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#getWindowDimension(int, int)">getWindowDimension</A></B>(int&nbsp;widthFactor,                   int&nbsp;heightFactor)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a dimension for use in getPreferredSize.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#getWindowUnitHeight()">getWindowUnitHeight</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a common 'unit' of size in pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#getWindowUnitWidth()">getWindowUnitWidth</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method returns a common 'unit' of size in pixels.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../../../com/jeta/open/gui/framework/JETADialog.html" title="class in com.jeta.open.gui.framework">JETADialog</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#invokeDialog(com.jeta.open.gui.framework.JETAPanel, java.lang.String)">invokeDialog</A></B>(<A HREF="../../../../../com/jeta/open/gui/framework/JETAPanel.html" title="class in com.jeta.open.gui.framework">JETAPanel</A>&nbsp;view,             <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;title)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates and displays a model JETADialog using the given view as the content pane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#isOSX()">isOSX</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#isWindows()">isWindows</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#isWindowsLookAndFeel()">isWindowsLookAndFeel</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/jeta/open/gui/utils/JETAToolbox.html#setReasonableWindowSize(java.awt.Component, java.awt.Dimension)">setReasonableWindowSize</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A>&nbsp;window,                        <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Dimension.html" title="class or interface in java.awt">Dimension</A>&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the size of the given window to the passed in dimension.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="WINDOWS_LF"><!-- --></A><H3>WINDOWS_LF</H3><PRE>public static final <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>WINDOWS_LF</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.jeta.open.gui.utils.JETAToolbox.WINDOWS_LF">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="JETAToolbox()"><!-- --></A><H3>JETAToolbox</H3><PRE>public <B>JETAToolbox</B>()</PRE><DL></DL><!-- ============ 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="addItems(javax.swing.JComboBox, java.lang.Object[])"><!-- --></A><H3>addItems</H3><PRE>public static void <B>addItems</B>(<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>&nbsp;cbox,                            <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;items)</PRE><DL><DD>Adds an array or collection of items to a combo box<P><DD><DL></DL></DD></DL><HR><A NAME="calculateAverageTextWidth(java.awt.Component, int)"><!-- --></A><H3>calculateAverageTextWidth</H3><PRE>public static int <B>calculateAverageTextWidth</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A>&nbsp;comp,                                            int&nbsp;numCharacters)</PRE><DL><DD>Calculates the width of an average string of text.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>comp</CODE> - the component whose font metrics will determine the width<DD><CODE>numCharacters</CODE> - the number of characters to use to calculate the length</DL></DD></DL><HR><A NAME="calculateReasonableComponentSize(java.awt.Dimension)"><!-- --></A><H3>calculateReasonableComponentSize</H3><PRE>public static void <B>calculateReasonableComponentSize</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Dimension.html" title="class or interface in java.awt">Dimension</A>&nbsp;d)</PRE><DL><DD>Sets the size of the dimension to some reasonable value.  If the given dimension is larger than the screen size, then we set the window to 80% of the screen size.  Otherwise, we leave it alone<P><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the dimension of the window to set</DL></DD></DL><HR><A NAME="centerFrame(java.awt.Window, float, float)"><!-- --></A><H3>centerFrame</H3><PRE>public static void <B>centerFrame</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html" title="class or interface in java.awt">Window</A>&nbsp;frame,                               float&nbsp;xpctWidth,                               float&nbsp;ypctWidth)</PRE><DL><DD>This method centers and sizes a frame window on the screen.  The caller must pass the x and y percentages of screen width/height.<P><DD><DL></DL></DD></DL><HR><A NAME="centerWindow(java.awt.Window)"><!-- --></A><H3>centerWindow</H3><PRE>public static void <B>centerWindow</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html" title="class or interface in java.awt">Window</A>&nbsp;frame)</PRE><DL><DD>This method centers a window window on the screen.  The caller must pass the x and y percentages of screen width/height.<P><DD><DL></DL></DD></DL><HR><A NAME="centerWindowChangeWidth(java.awt.Window, float)"><!-- --></A><H3>centerWindowChangeWidth</H3><PRE>public static void <B>centerWindowChangeWidth</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Window.html" title="class or interface in java.awt">Window</A>&nbsp;frame,                                           float&nbsp;xpctWidth)</PRE><DL><DD>This method centers a window window and changes the width on the screen.  The caller must pass the x percentages of screen width.  The height remains unchanged<P><DD><DL></DL></DD></DL><HR><A NAME="copyToClipboard(java.lang.String)"><!-- --></A><H3>copyToClipboard</H3><PRE>public static void <B>copyToClipboard</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;str)</PRE><DL><DD>Copies to the clipboard the given string<P><DD><DL></DL></DD></DL><HR><A NAME="createDialog(java.lang.Class, java.awt.Component, boolean)"><!-- --></A><H3>createDialog</H3><PRE>public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Dialog.html" title="class or interface in java.awt">Dialog</A> <B>createDialog</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html" title="class or interface in java.lang">Class</A>&nbsp;dlgclass,                                  <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html" title="class or interface in java.awt">Component</A>&nbsp;owner,                                  boolean&nbsp;bModal)</PRE><DL><DD>This method creates a dialog of the type class.  It assumes that the dialog will have constructors that have the following form:

⌨️ 快捷键说明

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