+ _photoDetailsPanel.add(_photoThumbnail);
+ // Rotate buttons
+ JButton rotLeft = makeRotateButton(IconManager.ROTATE_LEFT, FunctionLibrary.FUNCTION_ROTATE_PHOTO_LEFT);
+ JButton rotRight = makeRotateButton(IconManager.ROTATE_RIGHT, FunctionLibrary.FUNCTION_ROTATE_PHOTO_RIGHT);
+ JButton popup = makeRotateButton(IconManager.SHOW_DETAILS, FunctionLibrary.FUNCTION_PHOTO_POPUP);
+ _rotationButtons = new JPanel();
+ _rotationButtons.add(rotLeft);
+ _rotationButtons.add(rotRight);
+ _rotationButtons.add(Box.createHorizontalStrut(10));
+ _rotationButtons.add(popup);
+ _rotationButtons.setAlignmentX(Component.LEFT_ALIGNMENT);
+ _rotationButtons.setVisible(false);
+ _photoDetailsPanel.add(_rotationButtons);
+ _photoDetailsPanel.setVisible(false);
+
+ // audio details panel
+ _audioDetailsPanel = makeDetailsPanel("details.audiodetails", biggerFont);
+ _audioLabel = new JLabel(I18nManager.getText("details.noaudio"));
+ _audioDetailsPanel.add(_audioLabel);
+ _audioTimestampLabel = new JLabel("");
+ _audioTimestampLabel.setMinimumSize(new Dimension(120, 10));
+ _audioDetailsPanel.add(_audioTimestampLabel);
+ _audioLengthLabel = new JLabel("");
+ _audioDetailsPanel.add(_audioLengthLabel);
+ _audioConnectedLabel = new JLabel("");
+ _audioDetailsPanel.add(_audioConnectedLabel);
+ _audioProgress = new JProgressBar(0, 100);
+ _audioProgress.setString(I18nManager.getText("details.audio.playing"));
+ _audioProgress.setStringPainted(true);
+ _audioProgress.setVisible(false);
+ _audioDetailsPanel.add(_audioProgress);
+ _playAudioPanel = new JPanel();
+ _playAudioPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));
+ JButton playAudio = makeRotateButton(IconManager.PLAY_AUDIO, FunctionLibrary.FUNCTION_PLAY_AUDIO);
+ playAudio.addActionListener(new AudioListener(_audioProgress));
+ _playAudioPanel.add(playAudio);
+ JButton stopAudio = makeRotateButton(IconManager.STOP_AUDIO, FunctionLibrary.FUNCTION_STOP_AUDIO);
+ _playAudioPanel.add(stopAudio);
+ _playAudioPanel.setAlignmentX(Component.LEFT_ALIGNMENT);
+ _playAudioPanel.setVisible(false);
+ _audioDetailsPanel.add(_playAudioPanel);
+ _audioDetailsPanel.setVisible(false);