mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-05 04:14:19 +00:00
Fixed code style
This commit is contained in:
@@ -72,7 +72,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
private final JButton pauseButton;
|
||||
|
||||
private final JButton loopButton;
|
||||
|
||||
|
||||
private final JToggleButton resampleButton;
|
||||
|
||||
private MediaDisplay display;
|
||||
@@ -94,7 +94,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
private static final Icon loopIcon = View.getIcon("loopon16");
|
||||
|
||||
private static final Icon noLoopIcon = View.getIcon("loopoff16");
|
||||
|
||||
|
||||
private static final Icon resampleIcon = View.getIcon("resample16");
|
||||
|
||||
private final JLabel percentLabel = new JLabel("100%");
|
||||
@@ -120,7 +120,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
private final JToggleButton freezeButton;
|
||||
|
||||
private final JToggleButton muteButton;
|
||||
|
||||
|
||||
private final JTextField statusTextField;
|
||||
|
||||
public static final int ZOOM_DECADE_STEPS = 10;
|
||||
@@ -150,7 +150,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
public PlayerControls(final MainPanel mainPanel, MediaDisplay display, JPanel middleButtonsPanel) {
|
||||
|
||||
setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
|
||||
|
||||
|
||||
statusTextField = new JTextField(50);
|
||||
statusTextField.setEditable(false);
|
||||
statusTextField.setBorder(null);
|
||||
@@ -158,7 +158,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
//statusTextField.setVisible(true);
|
||||
statusTextField.setOpaque(false);
|
||||
add(statusTextField);
|
||||
|
||||
|
||||
graphicControls = new JPanel(new BorderLayout());
|
||||
JPanel graphicButtonsPanel = new JPanel(new FlowLayout());
|
||||
JButton selectColorButton = new JButton(View.getIcon("color16"));
|
||||
@@ -321,13 +321,13 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
loopButton.addActionListener(this::loopButtonActionPerformed);
|
||||
boolean loop = Configuration.loopMedia.get();
|
||||
loopButton.setIcon(loop ? loopIcon : noLoopIcon);
|
||||
|
||||
|
||||
resampleButton = new JToggleButton(resampleIcon);
|
||||
resampleButton.setToolTipText(AppStrings.translate("preview.resample"));
|
||||
resampleButton.setMargin(new Insets(4, 2, 2, 2));
|
||||
resampleButton.addActionListener(this::resampleButtonActionPerformed);
|
||||
resampleButton.setSelected(Configuration.previewResampleSound.get());
|
||||
|
||||
|
||||
buttonsPanel.add(pauseButton);
|
||||
buttonsPanel.add(stopButton);
|
||||
buttonsPanel.add(loopButton);
|
||||
@@ -352,8 +352,8 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
});
|
||||
playbackControls.add(progress);
|
||||
playbackControls.add(controlPanel);
|
||||
|
||||
add(playbackControls);
|
||||
|
||||
add(playbackControls);
|
||||
this.display.addEventListener(this);
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
statusTextField.setText(status);
|
||||
//statusTextField.setVisible(!status.isEmpty());
|
||||
}
|
||||
|
||||
|
||||
private String formatMs(long ms) {
|
||||
long s = ms / 1000;
|
||||
ms %= 1000;
|
||||
@@ -518,7 +518,7 @@ public class PlayerControls extends JPanel implements MediaDisplayListener {
|
||||
loopButton.setIcon(loop ? loopIcon : noLoopIcon);
|
||||
display.setLoop(loop);
|
||||
}
|
||||
|
||||
|
||||
private void resampleButtonActionPerformed(ActionEvent evt) {
|
||||
boolean resample = resampleButton.isSelected();
|
||||
Configuration.previewResampleSound.set(resample);
|
||||
|
||||
Reference in New Issue
Block a user