summaryrefslogtreecommitdiff
path: root/BKUCommonGUI/src/main/java/at
diff options
context:
space:
mode:
authorclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-11-10 15:30:16 +0000
committerclemenso <clemenso@8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4>2009-11-10 15:30:16 +0000
commitcaca721368d8c24559b1cd5ea2018884b4874f6b (patch)
treed9e1e07cc52120a39001d03db5813390c1d6264c /BKUCommonGUI/src/main/java/at
parentd05668097eb126b4a8a7a88a17c1a8e6b7778521 (diff)
downloadmocca-caca721368d8c24559b1cd5ea2018884b4874f6b.tar.gz
mocca-caca721368d8c24559b1cd5ea2018884b4874f6b.tar.bz2
mocca-caca721368d8c24559b1cd5ea2018884b4874f6b.zip
Removed switchFocusListener due to problem with viewer/help dialogs on Firefox/Mac
git-svn-id: https://joinup.ec.europa.eu/svn/mocca/trunk@539 8a26b1a7-26f0-462f-b9ef-d0e30c41f5a4
Diffstat (limited to 'BKUCommonGUI/src/main/java/at')
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java18
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SecureViewerDialog.java15
-rw-r--r--BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SwitchFocusListener.java4
3 files changed, 18 insertions, 19 deletions
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
index 8df4bd72..34f278fb 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/BKUGUIImpl.java
@@ -159,7 +159,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
@Override
public void run() {
- log.debug("initializing gui [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] initializing gui");
if (renderIconPanel) {
initIconPanel(background);
@@ -565,7 +565,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
@Override
public void run() {
- log.debug("show card-pin dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show card-pin dialog");
mainPanel.removeAll();
buttonPanel.removeAll();
@@ -758,7 +758,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
@Override
public void run() {
- log.debug("show pinpad signature-pin dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show pinpad signature-pin dialog");
mainPanel.removeAll();
buttonPanel.removeAll();
@@ -927,7 +927,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
@Override
public void run() {
- log.debug("show signature-pin dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show signature-pin dialog");
mainPanel.removeAll();
buttonPanel.removeAll();
@@ -1215,7 +1215,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
@Override
public void run() {
- log.debug("show message dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show message dialog");
mainPanel.removeAll();
buttonPanel.removeAll();
@@ -1385,7 +1385,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
backListener, backCommand);
} else if (dataToBeSigned.size() == 1) {
try {
- log.debug("scheduling secure viewer");
+ log.debug("[" + Thread.currentThread().getName() + "] scheduling secure viewer");
SwingUtilities.invokeLater(new Runnable() {
@@ -1419,7 +1419,7 @@ public class BKUGUIImpl implements BKUGUIFacade {
*/
private void showSecureViewer(HashDataInput dataToBeSigned) throws FontProviderException {
- log.debug("show secure viewer [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show secure viewer");
if (secureViewer == null) {
secureViewer = new SecureViewerDialog(null, messages,
fontProvider, helpMouseListener.getActionListener());
@@ -1439,14 +1439,14 @@ public class BKUGUIImpl implements BKUGUIFacade {
private void showSignedReferencesListDialog(final List<HashDataInput> signedReferences,
final ActionListener backListener, final String backCommand) {
- log.debug("scheduling signed references list dialog");
+ log.debug("[" + Thread.currentThread().getName() + "] scheduling signed references list dialog");
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
- log.debug("show signed references list dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show signed references list dialog");
mainPanel.removeAll();
buttonPanel.removeAll();
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SecureViewerDialog.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SecureViewerDialog.java
index c0b14a85..878a998b 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SecureViewerDialog.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SecureViewerDialog.java
@@ -54,8 +54,6 @@ import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.LayoutStyle;
import javax.swing.SwingUtilities;
-import javax.swing.UIManager;
-import javax.swing.text.DefaultEditorKit;
import javax.swing.text.Document;
import javax.swing.text.EditorKit;
import javax.swing.text.StyledEditorKit;
@@ -73,7 +71,6 @@ public class SecureViewerDialog extends JDialog implements ActionListener {
* BKUApplet includes BKUFonts as runtime dependency only, the jar is copied to the applet dir in BKUOnline with dependency-plugin
* BKUViewer has compile dependency BKUFonts, transitive in BKUOnline and BKULocal
*/
- public static final String PLAINTEXT_FONT_RESOURCE = "DejaVuSansMono.ttf";
public static final Dimension VIEWER_DIMENSION = new Dimension(600, 400);
protected static final Log log = LogFactory.getLog(SecureViewerDialog.class);
// private static SecureViewerDialog dialog;
@@ -227,6 +224,8 @@ public class SecureViewerDialog extends JDialog implements ActionListener {
*/
public void setContent(HashDataInput hashDataInput) { //throws FontProviderException {
+ log.debug("[" + Thread.currentThread().getName() + "] set viewer content");
+
this.content = null;
viewer.setText(null);
@@ -285,6 +284,7 @@ public class SecureViewerDialog extends JDialog implements ActionListener {
viewerLabel.setText("");
}
+ log.debug("VIEWER FONT: " + viewer.getFont());
setVisible(true);
toFront();
}
@@ -320,12 +320,11 @@ public class SecureViewerDialog extends JDialog implements ActionListener {
@Override
public void actionPerformed(ActionEvent e) {
if ("close".equals(e.getActionCommand())) {
-// SecureViewerDialog.dialog.setVisible(false);
- log.trace(Thread.currentThread() + " closing secure viewer");
+ log.trace("[" + Thread.currentThread().getName() + "] closing secure viewer");
setVisible(false);
log.trace("secure viewer closed");
} else if ("save".equals(e.getActionCommand())) {
- log.trace(Thread.currentThread() + " display secure viewer save dialog");
+ log.trace("[" + Thread.currentThread().getName() + "] display secure viewer save dialog");
showSaveDialog(content, null, null);
log.trace("done secure viewer save");
} else {
@@ -336,14 +335,14 @@ public class SecureViewerDialog extends JDialog implements ActionListener {
private void showSaveDialog(final HashDataInput hashDataInput,
final ActionListener okListener, final String okCommand) {
- log.debug("scheduling save dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] scheduling save dialog");
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
- log.debug("show save dialog [" + Thread.currentThread().getName() + "]");
+ log.debug("[" + Thread.currentThread().getName() + "] show save dialog");
String userHome = System.getProperty("user.home");
diff --git a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SwitchFocusListener.java b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SwitchFocusListener.java
index 1e3fabbd..48b641e2 100644
--- a/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SwitchFocusListener.java
+++ b/BKUCommonGUI/src/main/java/at/gv/egiz/bku/gui/SwitchFocusListener.java
@@ -33,8 +33,8 @@ public class SwitchFocusListener implements ActionListener {
ctx.showDocument
(new URL("javascript:" + javascriptFunction));
}
- catch (MalformedURLException me) {
-
+ catch (MalformedURLException me) {
+
log.warn("Unable to call external javascript function.", me);
}