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

📄 jetatoolbox.html

📁 Swing组件的可视化设计程序
💻 HTML
📖 第 1 页 / 共 3 页
字号:
    ctor( JDialog owner, boolean bmodal )    ctor( Frame owner, boolean bmodal ) This method interogates the owner object.  If this object is a JDialog or Frame, then we call the appropriate constructor for the class.  If this object is a JComponent, then we get the objects owner window and determine if that is a JDialog or Frame.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>dlgclass</CODE> - the class of the dialog we want to create<DD><CODE>owner</CODE> - the owner of the new dialog.  This object can be indirectly an owner.  For example,    you can pass in a JPanel as the owner.  This method will detect this and get the appropriate owner    of the JPanel<DD><CODE>bModal</CODE> - true if you want the dialog to be modal</DL></DD></DL><HR><A NAME="createDialog(java.lang.Class, 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,                                  boolean&nbsp;bModal)</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getFrameBorderThickness()"><!-- --></A><H3>getFrameBorderThickness</H3><PRE>public static int <B>getFrameBorderThickness</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the thickness (in pixels) of the border on a frame or dialog window    Currently, this is hard coded until I figure out a way to get    this value.</DL></DD></DL><HR><A NAME="getTitleBarHeight()"><!-- --></A><H3>getTitleBarHeight</H3><PRE>public static int <B>getTitleBarHeight</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>the height (in pixels) of the titlebar on a frame or dialog window    Currently, this is hard coded until I figure out a way to get    this value.</DL></DD></DL><HR><A NAME="getWindowDimension(int, int)"><!-- --></A><H3>getWindowDimension</H3><PRE>public static <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> <B>getWindowDimension</B>(int&nbsp;widthFactor,                                           int&nbsp;heightFactor)</PRE><DL><DD>This method returns a dimension for use in getPreferredSize.   In our application, a dialog or window is sized based on a multiple of the getUnitWidth and getUnitHeight.  This is a helper method that allows callers to quickly get a preferredSize for a container.  It reuses a Dimension object so be aware of this<P><DD><DL><DT><B>Parameters:</B><DD><CODE>widthFactor</CODE> - a factor to multiple times the getWindowUnitWidth value. This determines the width in the returned dimension.<DD><CODE>heightFactor</CODE> - a factor to multiple times the getWindowUnitHeight value. This determines the height in the returned dimension.</DL></DD></DL><HR><A NAME="getWindowUnitHeight()"><!-- --></A><H3>getWindowUnitHeight</H3><PRE>public static int <B>getWindowUnitHeight</B>()</PRE><DL><DD>This method returns a common 'unit' of size in pixels.  Containers use this as a basis for determining their preferred with.  The calculation is based on the font size.  This must be so because all Swing component sizes (e.g. JButton width/height, JTextField height, JLabel width/height) all depend on the current system font.<P><DD><DL></DL></DD></DL><HR><A NAME="getWindowUnitWidth()"><!-- --></A><H3>getWindowUnitWidth</H3><PRE>public static int <B>getWindowUnitWidth</B>()</PRE><DL><DD>This method returns a common 'unit' of size in pixels.  Containers use this as a basis for determining their preferred with.  The calculation is based on the font size.  This must be so because all Swing component sizes (e.g. JButton width/height, JTextField height, JLabel width/height) all depend on the current system font.<P><DD><DL></DL></DD></DL><HR><A NAME="invokeDialog(com.jeta.open.gui.framework.JETAPanel, java.lang.String)"><!-- --></A><H3>invokeDialog</H3><PRE>public static <A HREF="../../../../../com/jeta/open/gui/framework/JETADialog.html" title="class in com.jeta.open.gui.framework">JETADialog</A> <B>invokeDialog</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)</PRE><DL><DD>Creates and displays a model JETADialog using the given view as the content pane. The dialog is centered on the screen and it's modal parent is set to null.<P><DD><DL></DL></DD></DL><HR><A NAME="isOSX()"><!-- --></A><H3>isOSX</H3><PRE>public static boolean <B>isOSX</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>true if running Mac OS X</DL></DD></DL><HR><A NAME="isWindows()"><!-- --></A><H3>isWindows</H3><PRE>public static boolean <B>isWindows</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>true if running Windows</DL></DD></DL><HR><A NAME="isWindowsLookAndFeel()"><!-- --></A><H3>isWindowsLookAndFeel</H3><PRE>public static boolean <B>isWindowsLookAndFeel</B>()</PRE><DL><DD><DL><DT><B>Returns:</B><DD>true if we are currently in the windows look and feel.  This L&F has different focus issues with the popup</DL></DD></DL><HR><A NAME="setReasonableWindowSize(java.awt.Component, java.awt.Dimension)"><!-- --></A><H3>setReasonableWindowSize</H3><PRE>public static void <B>setReasonableWindowSize</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)</PRE><DL><DD>Sets the size of the given window to the passed in dimension.  However, if the given dimension is larger than the screen size, then we set the window to 80% of the screen size<P><DD><DL><DT><B>Parameters:</B><DD><CODE>window</CODE> - the window whose size we are setting<DD><CODE>d</CODE> - the dimension of the window 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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/JETAToolbox.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="JETAToolbox.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &#169; 2004 JETA Software Inc. All Rights Reserved.</i></BODY></HTML>

⌨️ 快捷键说明

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