work in progress: solving of the bug number 3043572 - Main application changed
[indepmod.git] / IndependentModeler / src / cz / cvut / promod / gui / settings / utils / BasicSettingPage.java
blobfee6e900ab37ac726b8731c6c5e6ed2bb60c218f
1 package cz.cvut.promod.gui.settings.utils;
3 import com.jidesoft.dialog.AbstractDialogPage;
5 import javax.swing.*;
6 import java.awt.*;
8 import cz.cvut.promod.services.ModelerSession;
10 /**
11 * ProMod, master thesis project
12 * User: Petr Zverina, petr.zverina@gmail.com
13 * Date: 16:32:45, 24.1.2010
16 * Basic settings of the host application for the settings dialog.
18 public class BasicSettingPage extends AbstractDialogPage {
20 private static final String SETTINGS_LABEL = ModelerSession.getCommonResourceBundle().getString("modeler.settings");
22 private final JLabel label = ModelerSession.getComponentFactoryService().createLabel("");
25 public BasicSettingPage(final String name) {
26 super(name);
29 public BasicSettingPage(final String name, final Icon icon) {
30 super(name, icon);
33 public void lazyInitialize() {
34 label.setText("[" + getName() + "] " + SETTINGS_LABEL);
36 initLayout();
39 public void initLayout() {
40 setLayout(new BorderLayout());
42 label.setHorizontalAlignment(JLabel.CENTER);
44 add(label, BorderLayout.CENTER);