diff --git a/src/net/java/sip/communicator/impl/gui/customcontrols/SIPCommButton.java b/src/net/java/sip/communicator/impl/gui/customcontrols/SIPCommButton.java index 2b8ab513b..9b2578d0d 100755 --- a/src/net/java/sip/communicator/impl/gui/customcontrols/SIPCommButton.java +++ b/src/net/java/sip/communicator/impl/gui/customcontrols/SIPCommButton.java @@ -27,29 +27,30 @@ public class SIPCommButton { private Image bgImage; - private Image pressedImage; + private final Image pressedImage; - private Image iconImage; + private final Image iconImage; /** * Creates a button with custom background image and icon image. * * @param bgImage The background image. + * @param pressedImage * @param iconImage The icon. */ public SIPCommButton( Image bgImage, Image pressedImage, Image iconImage) { - super(); - MouseRolloverHandler mouseHandler = new MouseRolloverHandler(); this.addMouseListener(mouseHandler); this.addMouseMotionListener(mouseHandler); - // Explicitly remove all borders that may be set from the current - // look and feel. + /* + * Explicitly remove all borders that may be set from the current look + * and feel. + */ this.setBorder(null); this.setContentAreaFilled(false); @@ -222,7 +223,7 @@ public void setBackgroundImage(Image bgImage) this.bgImage = bgImage; } - protected class ButtonRepaintCallback implements FadeTrackerCallback + private class ButtonRepaintCallback implements FadeTrackerCallback { public void fadeEnded(FadeKind arg0) { @@ -248,16 +249,16 @@ public void run() public void fadeReversed(FadeKind arg0, boolean arg1, float arg2) { - } } - protected class MouseRolloverHandler + private class MouseRolloverHandler implements MouseListener, MouseMotionListener { public void mouseMoved(MouseEvent e) - {} + { + } public void mouseExited(MouseEvent e) { @@ -275,7 +276,8 @@ public void mouseExited(MouseEvent e) } public void mouseClicked(MouseEvent e) - {} + { + } public void mouseEntered(MouseEvent e) { @@ -293,12 +295,15 @@ public void mouseEntered(MouseEvent e) } public void mousePressed(MouseEvent e) - {} + { + } public void mouseReleased(MouseEvent e) - {} + { + } public void mouseDragged(MouseEvent e) - {} + { + } } } diff --git a/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java b/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java index 70a3b81cb..3bb7c0042 100644 --- a/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java +++ b/src/net/java/sip/communicator/impl/gui/main/call/CallParticipantPanel.java @@ -745,8 +745,10 @@ public void actionPerformed(ActionEvent event) private Component createExitFullScreenButton() { JButton button = - new JButton(new ImageIcon(ImageLoader - .getImage(ImageLoader.EXIT_FULL_SCREEN_BUTTON))); + new SIPCommButton( + ImageLoader.getImage(ImageLoader.CALL_SETTING_BUTTON_BG), + ImageLoader.getImage(ImageLoader.CALL_SETTING_BUTTON_PRESSED_BG), + ImageLoader.getImage(ImageLoader.EXIT_FULL_SCREEN_BUTTON)); button.setToolTipText(GuiActivator.getResources().getI18NString( "service.gui.EXIT_FULL_SCREEN_TOOL_TIP"));