summaryrefslogtreecommitdiff
path: root/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java
diff options
context:
space:
mode:
authortkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:39:01 +0000
committertkellner <tkellner@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2012-04-02 16:39:01 +0000
commit00170b1b9a6dfa5255a85e8789992f5a499a69d5 (patch)
treea79a338513fd7734b7a5d84f0085573b60fdf5ef /BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java
parente9cfce38bb295d47459c8d976aa9a720719cfb75 (diff)
downloadmocca-00170b1b9a6dfa5255a85e8789992f5a499a69d5.tar.gz
mocca-00170b1b9a6dfa5255a85e8789992f5a499a69d5.tar.bz2
mocca-00170b1b9a6dfa5255a85e8789992f5a499a69d5.zip
@all
- change to equal button names @PersonIdentityLink - scale fonts if frame is resized @HardwareInfoe - insert title label git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@1044 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java')
-rw-r--r--BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java61
1 files changed, 60 insertions, 1 deletions
diff --git a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java
index a17a9a0f..32259746 100644
--- a/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java
+++ b/BKUGuiExt/src/main/java/at/gv/egiz/bku/gui/PersonIdentityLinkGUI.java
@@ -108,7 +108,7 @@ public class PersonIdentityLinkGUI extends CardMgmtGUI implements
activateButton.addActionListener(activateListener);
activateButton.setActionCommand(actionCommand);
- activateButton.setText(getMessage(PersonIdentityLinkGUIFacade.IDENTIFY_BUTTON));
+ activateButton.setText(getMessage(BUTTON_CLOSE));
firstNameLabel_description = new JLabel();
firstNameLabel_description.setText(getMessage(PersonIdentityLinkGUIFacade.FIRSTNAME));
@@ -239,4 +239,63 @@ public class PersonIdentityLinkGUI extends CardMgmtGUI implements
buttonPanelLayout.setVerticalGroup(buttonVertical);
}
+
+ @Override
+ public void resize() {
+
+ log.debug("Resizing Personal IdentityLink Applet ...");
+
+ float factor = getResizeFactor();
+
+
+ if (mgmtLabel != null) {
+ mgmtLabel.setFont(mgmtLabel.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (activateButton != null) {
+ activateButton.setFont(activateButton.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (firstNameLabel_description != null) {
+ firstNameLabel_description.setFont(firstNameLabel_description.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (lastNameLabel_description != null) {
+ lastNameLabel_description.setFont(lastNameLabel_description.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (birthdateLabel_description != null) {
+ birthdateLabel_description.setFont(birthdateLabel_description.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (firstNameLabel != null) {
+ firstNameLabel.setFont(firstNameLabel.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (lastNameLabel != null) {
+ lastNameLabel.setFont(lastNameLabel.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+ if (birthdateLabel != null) {
+ birthdateLabel.setFont(birthdateLabel.getFont().deriveFont(
+ (float) ((baseFontSize)* factor)));
+ }
+
+
+ if (activateButton != null) {
+
+ activateButton.setFont(activateButton.getFont().deriveFont(
+ (float) (baseFontSize * factor)));
+
+ }
+
+ super.resize();
+ }
}