protected void _showDialog_() { String strMethod = "_showDialog_()"; String[] strsTypeFileShkCur = _getTypeFileShkCur(); if (strsTypeFileShkCur == null) MySystem.s_printOutExit(this, strMethod, "nil strsTypeFileShkCur"); String strFileDesc = _getDescFileShkCur(); if (strFileDesc == null) MySystem.s_printOutExit(this, strMethod, "nil strFileDesc"); // ---- File fle = null; String strButtonTextOk = "Save file"; fle = S_FileChooserUI.s_getSaveFile( super._frmParent_, strButtonTextOk, strsTypeFileShkCur, strFileDesc, com.google.code.p.keytooliui.ktl.io.S_FileExtensionUI.f_s_strDirNameDefaultShk); if (fle == null) { // cancelled return; } if (!_assignValues(fle)) MySystem.s_printOutExit(this, strMethod, "failed, fle.getName()=" + fle.getName()); }
protected TBMainAbstract( String strHelpID, ActionListener actListenerParent, // javax.help.HelpBroker hbrHelpStandard, int intOrientation, javax.swing.ImageIcon iinFrameFloatable, // should be used once bug fixed "setFloatable(true), see below boolean blnDoHelpOnItem, boolean blnFloatable) { super(intOrientation, iinFrameFloatable, strHelpID, blnFloatable); String strMethod = "TBMainAbstract(...)"; try { this._btnHelpSource_ = new BESHelpJHSource(); if (blnDoHelpOnItem) { this._btnHelpTrack_ = new BESHelpJHTrack(); } } catch (NullPointerException excNullPointer) { excNullPointer.printStackTrace(); MySystem.s_printOutExit(this, strMethod, "excNullPointerCaught"); } this._btnExit_ = new BESExit24(actListenerParent); if (actListenerParent != null) super._btnPrint_ = new BESPrint24(actListenerParent); }
static { final String f_strWhere = "com.google.code.p.keytooliui.shared.swing.menu.METextAlignmentEditorText"; try { _s_rbeResources = java.util.ResourceBundle.getBundle( _f_s_strBundleFileShort, java.util.Locale.getDefault()); } catch (java.util.MissingResourceException excMissingResource) { excMissingResource.printStackTrace(); MySystem.s_printOutExit(f_strWhere, _f_s_strBundleFileLong + "excMissingResource caught"); } }
protected void _showDialog_() { String strMethod = "_showDialog_()"; String strButtonTextOk = "Open directory"; File fle = S_FileChooserAbs.s_getOpenDir(super._frmParent_, strButtonTextOk); if (fle == null) { // cancelled return; } if (!_assignValues(fle)) MySystem.s_printOutExit(this, strMethod, "failed, fle.getName()=" + fle.getName()); }
public CBIcon(ActionListener actListenerParent, ImageIcon iin, String strTip) { super(actListenerParent, strTip); String strMethod = "CBIcon(...)"; if (iin == null) MySystem.s_printOutExit(this, strMethod, "nil iin"); setIcon(iin); // FIXING UP BUG jdk1.3.0-final (not in jdk1.2.2 or in jdk1.3.0beta) ... setSelectedIcon(iin); setDisabledIcon(null); setDisabledSelectedIcon(null); // ... if disabled & selected, icon not shown as grayed setBorderPainted(true); setHorizontalAlignment(CENTER); setVerticalAlignment(CENTER); }