use of org.compiere.swing.CButton in project lar_361 by comitsrl.
the class PosSubPanel method createButton.
// getButtonAction
/**
* Create Standard Button
* @param text text
* @return button
*/
protected CButton createButton(String text) {
// if (text.indexOf("<html>") == -1)
// text = "<html><h4>" + text + "</h4></html>";
CButton button = new CButton(text);
button.addActionListener(this);
button.setPreferredSize(new Dimension(WIDTH, HEIGHT));
button.setMinimumSize(getPreferredSize());
button.setMaximumSize(getPreferredSize());
button.setFocusable(false);
return button;
}
use of org.compiere.swing.CButton in project adempiere by adempiere.
the class ConfirmPanel method createHelpButton.
// createPrintButton
/************************
* Create Help Button wlth label text
* @param text text
* @return Button
*/
public static final CButton createHelpButton(String text) {
AppsAction aa = new AppsAction(A_HELP, KeyStroke.getKeyStroke(KeyEvent.VK_F1, 0), text);
CButton button = (CButton) aa.getButton();
button.setMargin(s_insets);
return button;
}
use of org.compiere.swing.CButton in project adempiere by adempiere.
the class ConfirmPanel method createPrintButton.
// createProcessButton
/************************
* Create Print Button wlth label text
* @param text text
* @return button
*/
public static final CButton createPrintButton(String text) {
AppsAction aa = new AppsAction(A_PRINT, KeyStroke.getKeyStroke(KeyEvent.VK_F12, 0), text);
CButton button = (CButton) aa.getButton();
button.setMargin(s_insets);
return button;
}
use of org.compiere.swing.CButton in project adempiere by adempiere.
the class ConfirmPanel method createRefreshButton.
// createCancelButton
/************************
* Create Refresh Button wlth label text and F5
* @param text text
* @return button
*/
public static final CButton createRefreshButton(String text) {
AppsAction aa = new AppsAction(A_REFRESH, KeyStroke.getKeyStroke(KeyEvent.VK_F5, 0), text);
CButton button = (CButton) aa.getButton();
button.setMargin(s_insets);
return button;
}
use of org.compiere.swing.CButton in project adempiere by adempiere.
the class ConfirmPanel method createZoomButton.
// createHistoryButton
/************************
* Create Zoom Button wlth label text
* @param text text
* @return button
*/
public static final CButton createZoomButton(String text) {
AppsAction aa = new AppsAction(A_ZOOM, null, text);
CButton button = (CButton) aa.getButton();
button.setMargin(s_insets);
return button;
}
Aggregations