/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
@SuppressWarnings("serial")
public final class SheetDialog {
// Reusable objects
/** Don't let anyone instantiate this class */
private SheetDialog() {
}
int optionType, int messageType,
if (!(glassPane instanceof SlideAndFadeGlassPane)) {
glassPane = new SlideAndFadeGlassPane();
}
// Workaround for the fact that JOptionPane does not handle
// limiting the width when using multi-line html messages.
// See Swing bug 5074006 and JConsole bug 6426317
}
}
});
// Delay this (even though we're already on the EDT)
public void run() {
}
});
return optionPane;
}
}
public Dimension getPreferredSize() {
if (v != null) {
// Use pref width if less than 300, otherwise
// min width up to size of window.
v.setSize((float)w, 0F);
getIconTextGap());
} else {
return pref; // Should not happen
}
}
};
}
return message;
}
boolean slideIn = true;
super(null);
setVisible(false);
setOpaque(false);
// Grab mouse input, making the dialog modal
addMouseListener(new MouseAdapter() {});
}
this.optionPane = optionPane;
removeAll();
setVisible(true);
slideIn = true;
revalidate();
repaint();
doSlide();
}
if (optionPane != this.optionPane) {
return;
}
slideIn = false;
revalidate();
repaint();
doSlide();
}
private void doSlide() {
return;
}
}
int glassPaneWidth = getWidth();
}
if (!slideIn) {
setVisible(false);
return;
} else {
return;
}
}
}
g.setColor(getBackground());
super.paint(g);
}
}
}
if (visible) {
} else {
}
}
}
super.paint(g);
}
}
}