diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-12-04 21:10:07 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2008-12-04 21:10:07 +0000 |
commit | d2f28137d645b042a95455d71a7d4b8daee80742 (patch) | |
tree | b3ed57f0f632997dd6069013e1564e1866728c7b /src/net/java/sip/communicator/plugin/whiteboard | |
parent | 332089235bc7a78e24f172fdb0987ccf5b207ea8 (diff) | |
download | jitsi-d2f28137d645b042a95455d71a7d4b8daee80742.zip jitsi-d2f28137d645b042a95455d71a7d4b8daee80742.tar.gz jitsi-d2f28137d645b042a95455d71a7d4b8daee80742.tar.bz2 |
Moves SIPCommDialog into public visibility out of its defining bundle so that it can be used not only in the main UI but also in the plugins. Also tries to use it for all JDialogs created by the application.
Diffstat (limited to 'src/net/java/sip/communicator/plugin/whiteboard')
-rw-r--r-- | src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java | 19 | ||||
-rw-r--r-- | src/net/java/sip/communicator/plugin/whiteboard/whiteboard.manifest.mf | 1 |
2 files changed, 12 insertions, 8 deletions
diff --git a/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java b/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java index a706d9b..b38758a 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java +++ b/src/net/java/sip/communicator/plugin/whiteboard/gui/InvitationReceivedDialog.java @@ -13,6 +13,7 @@ import javax.swing.*; import net.java.sip.communicator.plugin.whiteboard.*; import net.java.sip.communicator.service.protocol.*; +import net.java.sip.communicator.swing.*; /** * The dialog that pops up when a chat room invitation is received. @@ -20,23 +21,23 @@ import net.java.sip.communicator.service.protocol.*; * @author Yana Stamcheva */ public class InvitationReceivedDialog - extends JDialog + extends SIPCommDialog implements ActionListener { private JTextArea infoTextArea = new JTextArea(); private JTextArea invitationReasonTextArea = new JTextArea(); - private JPanel reasonPanel = new JPanel(new BorderLayout()); + private JPanel reasonPanel = new TransparentPanel(new BorderLayout()); private JLabel reasonLabel = new JLabel( Resources.getString("reason") + ": "); private JTextField reasonField = new JTextField(); - private JPanel dataPanel = new JPanel(new BorderLayout(10, 10)); + private JPanel dataPanel = new TransparentPanel(new BorderLayout(10, 10)); - private JPanel buttonsPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT)); + private JPanel buttonsPanel = new TransparentPanel(new FlowLayout(FlowLayout.RIGHT)); private JButton acceptButton = new JButton(Resources.getString("accept")); @@ -44,9 +45,9 @@ public class InvitationReceivedDialog private JButton ignoreButton = new JButton(Resources.getString("ignore")); - private JPanel mainPanel = new JPanel(new BorderLayout(10, 10)); + private JPanel mainPanel = new TransparentPanel(new BorderLayout(10, 10)); - private JPanel northPanel = new JPanel(new BorderLayout(10, 10)); + private JPanel northPanel = new TransparentPanel(new BorderLayout(10, 10)); private JLabel iconLabel = new JLabel(Resources.getImage("inviteIcon")); @@ -171,5 +172,7 @@ public class InvitationReceivedDialog } protected void close(boolean isEscaped) - {} -}
\ No newline at end of file + { + rejectButton.doClick(); + } +} diff --git a/src/net/java/sip/communicator/plugin/whiteboard/whiteboard.manifest.mf b/src/net/java/sip/communicator/plugin/whiteboard/whiteboard.manifest.mf index 1688917..9827a73 100644 --- a/src/net/java/sip/communicator/plugin/whiteboard/whiteboard.manifest.mf +++ b/src/net/java/sip/communicator/plugin/whiteboard/whiteboard.manifest.mf @@ -5,6 +5,7 @@ Bundle-Vendor: sip-communicator.org Bundle-Version: 0.0.1 Import-Package: org.osgi.framework, net.java.sip.communicator.util, + net.java.sip.communicator.swing, net.java.sip.communicator.service.resources, net.java.sip.communicator.service.contactlist, net.java.sip.communicator.service.contactlist.event, |