diff options
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java b/src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java index 5b62ed1..f598c9c 100644 --- a/src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java +++ b/src/net/java/sip/communicator/impl/gui/utils/InviteDialog.java @@ -87,7 +87,7 @@ public class InviteDialog * * @param title the title to show on the top of this dialog */ - public InviteDialog (String title) + public InviteDialog (String title, boolean enableReason) { this.setModal(false); @@ -104,10 +104,6 @@ public class InviteDialog mainPanel.setBorder( BorderFactory.createEmptyBorder(15, 15, 15, 15)); - this.reasonArea.setBorder(BorderFactory.createTitledBorder( - GuiActivator.getResources() - .getI18NString("service.gui.INVITE_REASON"))); - JTextArea infoTextArea = new JTextArea(); infoTextArea.setText(GuiActivator.getResources() @@ -212,10 +208,19 @@ public class InviteDialog centerPanel.add(listPanel, BorderLayout.CENTER); centerPanel.add(addRemoveButtonsPanel, BorderLayout.SOUTH); - TransparentPanel southPanel = new TransparentPanel(new BorderLayout()); - southPanel.add(reasonArea, BorderLayout.CENTER); + TransparentPanel southPanel + = new TransparentPanel(new BorderLayout()); southPanel.add(buttonsPanel, BorderLayout.SOUTH); + if (enableReason) + { + this.reasonArea.setBorder(BorderFactory.createTitledBorder( + GuiActivator.getResources() + .getI18NString("service.gui.INVITE_REASON"))); + + southPanel.add(reasonArea, BorderLayout.CENTER); + } + mainPanel.add(northPanel, BorderLayout.NORTH); mainPanel.add(centerPanel, BorderLayout.CENTER); mainPanel.add(southPanel, BorderLayout.SOUTH); |