Less is more

This commit is contained in:
tonikelope 2016-09-29 19:06:12 +02:00
parent 2964ebb8e5
commit 13883f9423
5 changed files with 11 additions and 12 deletions

View File

@ -125,8 +125,8 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
this.max_downloads_spinner.setModel(new SpinnerNumberModel(max_dl, 1, Download.MAX_SIM_TRANSFERENCES, 1)); max_downloads_spinner.setModel(new SpinnerNumberModel(max_dl, 1, Download.MAX_SIM_TRANSFERENCES, 1));
((JSpinner.DefaultEditor)this.max_downloads_spinner.getEditor()).getTextField().setEditable(false); ((JSpinner.DefaultEditor)max_downloads_spinner.getEditor()).getTextField().setEditable(false);
String max_up = DBTools.selectSettingValueFromDB("max_uploads"); String max_up = DBTools.selectSettingValueFromDB("max_uploads");
@ -138,8 +138,8 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
this.max_uploads_spinner.setModel(new SpinnerNumberModel(max_ul, 1, Upload.MAX_SIM_TRANSFERENCES, 1)); max_uploads_spinner.setModel(new SpinnerNumberModel(max_ul, 1, Upload.MAX_SIM_TRANSFERENCES, 1));
((JSpinner.DefaultEditor)this.max_uploads_spinner.getEditor()).getTextField().setEditable(false); ((JSpinner.DefaultEditor)max_uploads_spinner.getEditor()).getTextField().setEditable(false);

View File

@ -19,7 +19,7 @@ public final class SpeedMeter implements Runnable, SecureNotifiable
SpeedMeter(Transference transference, GlobalSpeedMeter gspeed) SpeedMeter(Transference transference, GlobalSpeedMeter gspeed)
{ {
this._notified = false; _notified = false;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();
_transference = transference; _transference = transference;
_progress = transference.getProgress(); _progress = transference.getProgress();

View File

@ -42,16 +42,16 @@ public final class StreamThrottlerSupervisor implements Runnable, SecureNotifiab
return _maxBytesPerSecInput; return _maxBytesPerSecInput;
} }
public void setMaxBytesPerSecInput(int _maxBytesPerSecInput) { public void setMaxBytesPerSecInput(int maxBytesPerSecInput) {
this._maxBytesPerSecInput = _maxBytesPerSecInput; _maxBytesPerSecInput = maxBytesPerSecInput;
} }
public int getMaxBytesPerSecOutput() { public int getMaxBytesPerSecOutput() {
return _maxBytesPerSecOutput; return _maxBytesPerSecOutput;
} }
public void setMaxBytesPerSecOutput(int _maxBytesPerSecOutput) { public void setMaxBytesPerSecOutput(int maxBytesPerSecOutput) {
this._maxBytesPerSecOutput = _maxBytesPerSecOutput; _maxBytesPerSecOutput = maxBytesPerSecOutput;
} }
public ConcurrentLinkedQueue<Integer> getInput_slice_queue() { public ConcurrentLinkedQueue<Integer> getInput_slice_queue() {

View File

@ -25,8 +25,7 @@ abstract public class TransferenceManager implements Runnable, SecureNotifiable
private boolean _notified; private boolean _notified;
public TransferenceManager(MainPanel main_panel, javax.swing.JPanel scroll_panel) { public TransferenceManager(MainPanel main_panel, javax.swing.JPanel scroll_panel) {
this._notified = false; _notified = false;
_main_panel = main_panel; _main_panel = main_panel;
_scroll_panel = scroll_panel; _scroll_panel = scroll_panel;
_secure_notify_lock = new Object(); _secure_notify_lock = new Object();

View File

@ -500,7 +500,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
@Override @Override
public void updateProgressBar(long progress, double bar_rate) { public void updateProgressBar(long progress, double bar_rate) {
swingReflectionInvoke("setValue", this.progress_pbar, (int)Math.ceil(bar_rate*progress)); swingReflectionInvoke("setValue", progress_pbar, (int)Math.ceil(bar_rate*progress));
} }
@Override @Override