mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 14:14:37 +02:00
Less is more
This commit is contained in:
parent
2964ebb8e5
commit
13883f9423
@ -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));
|
||||
((JSpinner.DefaultEditor)this.max_downloads_spinner.getEditor()).getTextField().setEditable(false);
|
||||
max_downloads_spinner.setModel(new SpinnerNumberModel(max_dl, 1, Download.MAX_SIM_TRANSFERENCES, 1));
|
||||
((JSpinner.DefaultEditor)max_downloads_spinner.getEditor()).getTextField().setEditable(false);
|
||||
|
||||
|
||||
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));
|
||||
((JSpinner.DefaultEditor)this.max_uploads_spinner.getEditor()).getTextField().setEditable(false);
|
||||
max_uploads_spinner.setModel(new SpinnerNumberModel(max_ul, 1, Upload.MAX_SIM_TRANSFERENCES, 1));
|
||||
((JSpinner.DefaultEditor)max_uploads_spinner.getEditor()).getTextField().setEditable(false);
|
||||
|
||||
|
||||
|
||||
|
@ -19,7 +19,7 @@ public final class SpeedMeter implements Runnable, SecureNotifiable
|
||||
|
||||
SpeedMeter(Transference transference, GlobalSpeedMeter gspeed)
|
||||
{
|
||||
this._notified = false;
|
||||
_notified = false;
|
||||
_secure_notify_lock = new Object();
|
||||
_transference = transference;
|
||||
_progress = transference.getProgress();
|
||||
|
@ -42,16 +42,16 @@ public final class StreamThrottlerSupervisor implements Runnable, SecureNotifiab
|
||||
return _maxBytesPerSecInput;
|
||||
}
|
||||
|
||||
public void setMaxBytesPerSecInput(int _maxBytesPerSecInput) {
|
||||
this._maxBytesPerSecInput = _maxBytesPerSecInput;
|
||||
public void setMaxBytesPerSecInput(int maxBytesPerSecInput) {
|
||||
_maxBytesPerSecInput = maxBytesPerSecInput;
|
||||
}
|
||||
|
||||
public int getMaxBytesPerSecOutput() {
|
||||
return _maxBytesPerSecOutput;
|
||||
}
|
||||
|
||||
public void setMaxBytesPerSecOutput(int _maxBytesPerSecOutput) {
|
||||
this._maxBytesPerSecOutput = _maxBytesPerSecOutput;
|
||||
public void setMaxBytesPerSecOutput(int maxBytesPerSecOutput) {
|
||||
_maxBytesPerSecOutput = maxBytesPerSecOutput;
|
||||
}
|
||||
|
||||
public ConcurrentLinkedQueue<Integer> getInput_slice_queue() {
|
||||
|
@ -25,8 +25,7 @@ abstract public class TransferenceManager implements Runnable, SecureNotifiable
|
||||
private boolean _notified;
|
||||
|
||||
public TransferenceManager(MainPanel main_panel, javax.swing.JPanel scroll_panel) {
|
||||
this._notified = false;
|
||||
|
||||
_notified = false;
|
||||
_main_panel = main_panel;
|
||||
_scroll_panel = scroll_panel;
|
||||
_secure_notify_lock = new Object();
|
||||
|
@ -500,7 +500,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
|
||||
@Override
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user