本文整理了Java中javax.swing.JInternalFrame.isMaximizable()
方法的一些代码示例,展示了JInternalFrame.isMaximizable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JInternalFrame.isMaximizable()
方法的具体详情如下:
包路径:javax.swing.JInternalFrame
类名称:JInternalFrame
方法名:isMaximizable
暂无
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/skinlf
/**
* Gets the Maximizable attribute of the InternalFrameWindow
* object
*
* @return The Maximizable value
*/
public boolean isMaximizable() {
return frame.isMaximizable();
}
代码示例来源:origin: com.jtattoo/JTattoo
protected void enableActions() {
super.enableActions();
maximizeAction.setEnabled(frame.isMaximizable());
}
代码示例来源:origin: joel-costigliola/assertj-swing
@RunsInCurrentThread
private static void checkCanMaximize(@Nonnull JInternalFrame internalFrame) {
checkShowingOrIconified(internalFrame);
if (!internalFrame.isMaximizable()) {
String msg = String.format("The JInternalFrame <%s> is not maximizable", format(internalFrame));
throw new IllegalStateException(msg);
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* Set the enable/disabled state for the buttons.
*/
private void enableActions() {
restoreAction.setEnabled(frame.isMaximum() || frame.isIcon());
maximizeAction.setEnabled((frame.isMaximizable() && !frame.isMaximum() && !frame.isIcon())
|| (frame.isMaximizable() && frame.isIcon()));
iconifyAction.setEnabled(frame.isIconifiable() && !frame.isIcon());
closeAction.setEnabled(frame.isClosable());
sizeAction.setEnabled(false);
moveAction.setEnabled(false);
}
代码示例来源:origin: com.jtattoo/JTattoo
width += 21;
if (frame.isMaximizable()) {
width += 16 + (frame.isClosable() ? 10 : 4);
width += 16 + (frame.isMaximizable() ? 2 : (frame.isClosable() ? 10 : 4));
代码示例来源:origin: com.jtattoo/JTattoo
width += 21;
if (frame.isMaximizable()) {
width += 16 + (frame.isClosable() ? 10 : 4);
width += 16 + (frame.isMaximizable() ? 2 : (frame.isClosable() ? 10 : 4));
代码示例来源:origin: com.jtattoo/JTattoo
width += 21;
if (frame.isMaximizable()) {
width += 16 + (frame.isClosable() ? 10 : 4);
width += 16 + (frame.isMaximizable() ? 2 : (frame.isClosable() ? 10 : 4));
代码示例来源:origin: com.jtattoo/JTattoo
public void setPalette(boolean b) {
isPalette = b;
if (isPalette) {
closeButton.setIcon(paletteCloseIcon);
if (frame.isMaximizable()) {
remove(maxButton);
}
if (frame.isIconifiable()) {
remove(iconButton);
}
} else {
closeButton.setIcon(closeIcon);
if (frame.isMaximizable()) {
add(maxButton);
}
if (frame.isIconifiable()) {
add(iconButton);
}
}
revalidate();
repaint();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = MAXIMIZE_ALL_JSDOC)
public void maximizeAll() throws PropertyVetoException {
for (JInternalFrame f : getAllFrames()) {
if (f.isIcon()) {
f.setIcon(false);
}
if (f.isMaximizable()) {
f.setMaximum(true);
}
}
}
代码示例来源:origin: khuxtable/seaglass
/**
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent evt) {
if (frame.isMaximizable() && frame.isMaximum() && frame.isIcon()) {
try {
frame.setIcon(false);
} catch (PropertyVetoException e) {
}
} else if (frame.isMaximizable() && frame.isMaximum()) {
try {
frame.setMaximum(false);
} catch (PropertyVetoException e) {
}
} else if (frame.isIconifiable() && frame.isIcon()) {
try {
frame.setIcon(false);
} catch (PropertyVetoException e) {
}
}
}
}
代码示例来源:origin: com.jtattoo/JTattoo
if (frame.isMaximizable() && !isPalette) {
x += leftToRight ? -spacing - buttonWidth : spacing;
maxButton.setBounds(x, y, buttonWidth, buttonHeight);
代码示例来源:origin: net.sf.squirrel-sql.plugins/graph
if (frame.isIconifiable())
r = iconButton.getBounds();
else if (frame.isMaximizable())
r = maxButton.getBounds();
else if (frame.isClosable()) r = closeButton.getBounds();
代码示例来源:origin: com.jtattoo/JTattoo
x += btnWidth + spacing;
if (frame.isMaximizable() && !isPalette) {
maxButton.setBounds(x, y, btnWidth, btnHeight);
x += btnWidth + spacing;
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction(jsDoc = MAXIMIZE_JSDOC)
public void maximize() {
if (surface != null) {
if (surface instanceof JFrame) {
((JFrame) surface).setExtendedState(JFrame.MAXIMIZED_BOTH);
} else if (surface instanceof JInternalFrame) {
JInternalFrame aFrame = (JInternalFrame) surface;
try {
if (aFrame.isIcon()) {
aFrame.setIcon(false);
}
if (!aFrame.isMaximum() && aFrame.isMaximizable()) {
aFrame.setMaximum(true);
aFrame.toFront();
}
} catch (Exception e) {
}
}
}
}
private static final String RESTORE_JSDOC = ""
代码示例来源:origin: com.jtattoo/JTattoo
x += spacing + btnWidth;
if (frame.isMaximizable() && !isPalette) {
maxButton.setBounds(x, y, btnWidth, btnHeight);
x += spacing + btnWidth;
代码示例来源:origin: khuxtable/seaglass
/**
* @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
*/
public void actionPerformed(ActionEvent evt) {
if (frame.isMaximizable()) {
if (frame.isMaximum() && frame.isIcon()) {
try {
frame.setIcon(false);
} catch (PropertyVetoException e) {
}
} else if (!frame.isMaximum()) {
try {
frame.setMaximum(true);
} catch (PropertyVetoException e) {
}
} else {
try {
frame.setMaximum(false);
} catch (PropertyVetoException e) {
}
}
}
}
}
代码示例来源:origin: realXuJiang/bigtable-sql
private void afterAdd(JInternalFrame child)
{
if (!GUIUtils.isToolWindow(child))
{
_internalFramePositioner.positionInternalFrame(child);
}
// JInternalFrame[] frames = GUIUtils.getOpenNonToolWindows(getDesktopPane().getAllFrames());
// _app.getActionCollection().internalFrameOpenedOrClosed(frames.length);
// Size non-tool child window.
if (!GUIUtils.isToolWindow(child))
{
if (child.isMaximizable() && _app.getSquirrelPreferences().getMaximizeSessionSheetOnOpen())
{
try
{
child.setMaximum(true);
}
catch (PropertyVetoException ex)
{
s_log.error("Unable to maximize window", ex);
}
}
}
}
代码示例来源:origin: com.jtattoo/JTattoo
x += btnWidth + spacing;
if (frame.isMaximizable() && !isPalette) {
maxButton.setBounds(x, y, btnWidth, btnHeight);
x += btnWidth + spacing;
代码示例来源:origin: khuxtable/seaglass
if (frame.isMaximizable()) {
x = center(maxButton, insets, x, true);
if (frame.isMaximizable()) {
x = center(maxButton, insets, x, false);
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
private void afterAdd(JInternalFrame child)
{
if (!GUIUtils.isToolWindow(child))
{
_internalFramePositioner.positionInternalFrame(child);
}
// JInternalFrame[] frames = GUIUtils.getOpenNonToolWindows(getDesktopPane().getAllFrames());
// _app.getActionCollection().internalFrameOpenedOrClosed(frames.length);
// Size non-tool child window.
if (!GUIUtils.isToolWindow(child))
{
if (child.isMaximizable() && _app.getSquirrelPreferences().getMaximizeSessionSheetOnOpen())
{
try
{
child.setMaximum(true);
}
catch (PropertyVetoException ex)
{
s_log.error("Unable to maximize window", ex);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!