📄 guihelper.java
字号:
/*
* GUIHelper.java
*
* Created on 30 pa焏ziernik 2005, 18:40
*
* To change this template, choose Tools | Options and locate the template under
* the Source Creation and Management node. Right-click the template and choose
* Open. You can then make changes to the template in the Source Editor.
*/
package net.sf.jawp.gui.client;
import java.awt.Component;
import javax.swing.JOptionPane;
/**
*
* @author jarek
*/
public class GUIHelper
{
/** Creates a new instance of GUIHelper */
public GUIHelper()
{
}
public static void showError(final Component parent, final String label, final Throwable details, final String ... params )
{
JOptionPane.showMessageDialog( parent, getErrorMessage(label, params), getErrorTitle( label), JOptionPane.ERROR_MESSAGE);
}
private static String getErrorTitle( final String label)
{
return "error";
}
private static String getErrorMessage( final String label, final String ... params)
{
return label;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -