Urldecode
Dialog font
Race condition (lazy init)
This commit is contained in:
tonikelope 2017-11-29 18:03:42 +01:00
parent 36fdba6383
commit b088897b0a
27 changed files with 469 additions and 496 deletions

View File

@ -92,7 +92,7 @@
<Component class="javax.swing.JLabel" name="title_label"> <Component class="javax.swing.JLabel" name="title_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="48" style="1"/> <Font name="Dialog" size="48" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="MegaBasterd X.X"/> <Property name="text" type="java.lang.String" value="MegaBasterd X.X"/>
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor"> <Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
@ -121,7 +121,7 @@
<Component class="javax.swing.JLabel" name="subtitle_label"> <Component class="javax.swing.JLabel" name="subtitle_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="66" type="rgb"/> <Color blue="66" green="66" red="66" type="rgb"/>
@ -147,7 +147,7 @@
<Component class="javax.swing.JButton" name="mcdown_url_button"> <Component class="javax.swing.JButton" name="mcdown_url_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Copy MegaBasterd download URL"/> <Property name="text" type="java.lang.String" value="Copy MegaBasterd download URL"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -159,7 +159,7 @@
<Component class="javax.swing.JLabel" name="author_webpage_label"> <Component class="javax.swing.JLabel" name="author_webpage_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="66" green="66" red="66" type="rgb"/> <Color blue="66" green="66" red="66" type="rgb"/>
@ -191,7 +191,7 @@
<Component class="javax.swing.JButton" name="check_version_button"> <Component class="javax.swing.JButton" name="check_version_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="1"/> <Font name="Dialog" size="14" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Check version"/> <Property name="text" type="java.lang.String" value="Check version"/>
</Properties> </Properties>

View File

@ -50,7 +50,7 @@ public final class AboutDialog extends javax.swing.JDialog {
setIconImage(null); setIconImage(null);
setResizable(false); setResizable(false);
title_label.setFont(new java.awt.Font("Ubuntu", 1, 48)); // NOI18N title_label.setFont(new java.awt.Font("Dialog", 1, 48)); // NOI18N
title_label.setText("MegaBasterd X.X"); title_label.setText("MegaBasterd X.X");
title_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); title_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
title_label.setDoubleBuffered(true); title_label.setDoubleBuffered(true);
@ -69,7 +69,7 @@ public final class AboutDialog extends javax.swing.JDialog {
} }
}); });
subtitle_label.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N subtitle_label.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
subtitle_label.setForeground(new java.awt.Color(102, 102, 102)); subtitle_label.setForeground(new java.awt.Color(102, 102, 102));
subtitle_label.setText("(Made with love by tonikelope)"); subtitle_label.setText("(Made with love by tonikelope)");
subtitle_label.setDoubleBuffered(true); subtitle_label.setDoubleBuffered(true);
@ -83,7 +83,7 @@ public final class AboutDialog extends javax.swing.JDialog {
} }
}); });
mcdown_url_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N mcdown_url_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
mcdown_url_button.setText("Copy MegaBasterd download URL"); mcdown_url_button.setText("Copy MegaBasterd download URL");
mcdown_url_button.setDoubleBuffered(true); mcdown_url_button.setDoubleBuffered(true);
mcdown_url_button.addActionListener(new java.awt.event.ActionListener() { mcdown_url_button.addActionListener(new java.awt.event.ActionListener() {
@ -92,7 +92,7 @@ public final class AboutDialog extends javax.swing.JDialog {
} }
}); });
author_webpage_label.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N author_webpage_label.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
author_webpage_label.setForeground(new java.awt.Color(102, 102, 102)); author_webpage_label.setForeground(new java.awt.Color(102, 102, 102));
author_webpage_label.setText("http://toni.world"); author_webpage_label.setText("http://toni.world");
author_webpage_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); author_webpage_label.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
@ -112,7 +112,7 @@ public final class AboutDialog extends javax.swing.JDialog {
} }
}); });
check_version_button.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N check_version_button.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
check_version_button.setText("Check version"); check_version_button.setText("Check version");
check_version_button.addActionListener(new java.awt.event.ActionListener() { check_version_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {

View File

@ -1,5 +1,6 @@
package megabasterd; package megabasterd;
import java.awt.Color;
import java.io.BufferedOutputStream; import java.io.BufferedOutputStream;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
@ -51,8 +52,8 @@ public final class Download implements Transference, Runnable, SecureSingleThrea
public static final int WATCHDOG_SMART_PROXY_TIMEOUT = 3600; public static final int WATCHDOG_SMART_PROXY_TIMEOUT = 3600;
private final MainPanel _main_panel; private final MainPanel _main_panel;
private volatile DownloadView _view = null; //lazy init private volatile DownloadView _view;
private volatile ProgressMeter _progress_meter = null; //lazy init; private volatile ProgressMeter _progress_meter;
private final Object _secure_notify_lock; private final Object _secure_notify_lock;
private final Object _workers_lock; private final Object _workers_lock;
private final Object _chunkid_lock; private final Object _chunkid_lock;
@ -133,6 +134,8 @@ public final class Download implements Transference, Runnable, SecureSingleThrea
_partialProgressQueue = new ConcurrentLinkedQueue<>(); _partialProgressQueue = new ConcurrentLinkedQueue<>();
_rejectedChunkIds = new ConcurrentLinkedQueue<>(); _rejectedChunkIds = new ConcurrentLinkedQueue<>();
_thread_pool = newCachedThreadPool(); _thread_pool = newCachedThreadPool();
_view = new DownloadView(this);
_progress_meter = new ProgressMeter(this);
} }
public boolean isUse_smart_proxy() { public boolean isUse_smart_proxy() {
@ -140,6 +143,13 @@ public final class Download implements Transference, Runnable, SecureSingleThrea
} }
public void setUse_smart_proxy(boolean _use_smart_proxy) { public void setUse_smart_proxy(boolean _use_smart_proxy) {
if (_use_smart_proxy) {
swingReflectionInvoke("setForeground", this.getView().getSpeed_label(), Color.ORANGE);
} else {
swingReflectionInvoke("setForeground", this.getView().getSpeed_label(), new Color(0, 128, 255));
}
this._use_smart_proxy = _use_smart_proxy; this._use_smart_proxy = _use_smart_proxy;
} }
@ -251,45 +261,13 @@ public final class Download implements Transference, Runnable, SecureSingleThrea
@Override @Override
public ProgressMeter getProgress_meter() { public ProgressMeter getProgress_meter() {
ProgressMeter result = _progress_meter; return this._progress_meter;
if (result == null) {
synchronized (this) {
result = _progress_meter;
if (result == null) {
_progress_meter = result = new ProgressMeter(this);
}
}
}
return result;
} }
@Override @Override
public DownloadView getView() { public DownloadView getView() {
DownloadView result = _view; return this._view;
if (result == null) {
synchronized (this) {
result = _view;
if (result == null) {
_view = result = new DownloadView(this);
}
}
}
return result;
} }
@Override @Override

View File

@ -118,7 +118,7 @@
<Component class="javax.swing.JLabel" name="status_label"> <Component class="javax.swing.JLabel" name="status_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="status"/> <Property name="text" type="java.lang.String" value="status"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -127,7 +127,7 @@
<Component class="javax.swing.JLabel" name="slots_label"> <Component class="javax.swing.JLabel" name="slots_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Slots"/> <Property name="text" type="java.lang.String" value="Slots"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -136,7 +136,7 @@
<Component class="javax.swing.JSpinner" name="slots_spinner"> <Component class="javax.swing.JSpinner" name="slots_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="toolTipText" type="java.lang.String" value="Slots"/> <Property name="toolTipText" type="java.lang.String" value="Slots"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -148,7 +148,7 @@
<Component class="javax.swing.JLabel" name="speed_label"> <Component class="javax.swing.JLabel" name="speed_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="26" style="3"/> <Font name="Dialog" size="26" style="3"/>
</Property> </Property>
<Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalAlignment" type="int" value="2"/>
<Property name="text" type="java.lang.String" value="speed"/> <Property name="text" type="java.lang.String" value="speed"/>
@ -158,7 +158,7 @@
<Component class="javax.swing.JProgressBar" name="progress_pbar"> <Component class="javax.swing.JProgressBar" name="progress_pbar">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -169,7 +169,7 @@
<Color blue="0" green="99" red="ff" type="rgb"/> <Color blue="0" green="99" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/>
@ -187,7 +187,7 @@
<Color blue="0" green="0" red="ff" type="rgb"/> <Color blue="0" green="0" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/>
@ -202,7 +202,7 @@
<Component class="javax.swing.JCheckBox" name="keep_temp_checkbox"> <Component class="javax.swing.JCheckBox" name="keep_temp_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="selected" type="boolean" value="true"/> <Property name="selected" type="boolean" value="true"/>
<Property name="text" type="java.lang.String" value="Keep temp file"/> <Property name="text" type="java.lang.String" value="Keep temp file"/>
@ -212,7 +212,7 @@
<Component class="javax.swing.JLabel" name="file_name_label"> <Component class="javax.swing.JLabel" name="file_name_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
@ -224,7 +224,7 @@
<Component class="javax.swing.JButton" name="close_button"> <Component class="javax.swing.JButton" name="close_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Close"/> <Property name="text" type="java.lang.String" value="Close"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -236,7 +236,7 @@
<Component class="javax.swing.JButton" name="copy_link_button"> <Component class="javax.swing.JButton" name="copy_link_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Copy link"/> <Property name="text" type="java.lang.String" value="Copy link"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -251,7 +251,7 @@
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -266,7 +266,7 @@
<Component class="javax.swing.JLabel" name="file_size_label"> <Component class="javax.swing.JLabel" name="file_size_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
@ -286,7 +286,7 @@
<Component class="javax.swing.JButton" name="open_folder_button"> <Component class="javax.swing.JButton" name="open_folder_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Open folder"/> <Property name="text" type="java.lang.String" value="Open folder"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>

View File

@ -125,15 +125,15 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 204, 255), 4, true)); setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 204, 255), 4, true));
status_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N status_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
status_label.setText("status"); status_label.setText("status");
status_label.setDoubleBuffered(true); status_label.setDoubleBuffered(true);
slots_label.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N slots_label.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
slots_label.setText("Slots"); slots_label.setText("Slots");
slots_label.setDoubleBuffered(true); slots_label.setDoubleBuffered(true);
slots_spinner.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N slots_spinner.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
slots_spinner.setToolTipText("Slots"); slots_spinner.setToolTipText("Slots");
slots_spinner.setDoubleBuffered(true); slots_spinner.setDoubleBuffered(true);
slots_spinner.addChangeListener(new javax.swing.event.ChangeListener() { slots_spinner.addChangeListener(new javax.swing.event.ChangeListener() {
@ -142,16 +142,16 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
} }
}); });
speed_label.setFont(new java.awt.Font("Ubuntu", 3, 26)); // NOI18N speed_label.setFont(new java.awt.Font("Dialog", 3, 26)); // NOI18N
speed_label.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); speed_label.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
speed_label.setText("speed"); speed_label.setText("speed");
speed_label.setDoubleBuffered(true); speed_label.setDoubleBuffered(true);
progress_pbar.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N progress_pbar.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
progress_pbar.setDoubleBuffered(true); progress_pbar.setDoubleBuffered(true);
pause_button.setBackground(new java.awt.Color(255, 153, 0)); pause_button.setBackground(new java.awt.Color(255, 153, 0));
pause_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N pause_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
pause_button.setForeground(java.awt.Color.white); pause_button.setForeground(java.awt.Color.white);
pause_button.setText("PAUSE DOWNLOAD"); pause_button.setText("PAUSE DOWNLOAD");
pause_button.setDoubleBuffered(true); pause_button.setDoubleBuffered(true);
@ -162,7 +162,7 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
}); });
stop_button.setBackground(new java.awt.Color(255, 0, 0)); stop_button.setBackground(new java.awt.Color(255, 0, 0));
stop_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N stop_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
stop_button.setForeground(java.awt.Color.white); stop_button.setForeground(java.awt.Color.white);
stop_button.setText("CANCEL DOWNLOAD"); stop_button.setText("CANCEL DOWNLOAD");
stop_button.setDoubleBuffered(true); stop_button.setDoubleBuffered(true);
@ -172,17 +172,17 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
} }
}); });
keep_temp_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N keep_temp_checkbox.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
keep_temp_checkbox.setSelected(true); keep_temp_checkbox.setSelected(true);
keep_temp_checkbox.setText("Keep temp file"); keep_temp_checkbox.setText("Keep temp file");
keep_temp_checkbox.setDoubleBuffered(true); keep_temp_checkbox.setDoubleBuffered(true);
file_name_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N file_name_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
file_name_label.setForeground(new java.awt.Color(51, 51, 255)); file_name_label.setForeground(new java.awt.Color(51, 51, 255));
file_name_label.setText("file_name"); file_name_label.setText("file_name");
file_name_label.setDoubleBuffered(true); file_name_label.setDoubleBuffered(true);
close_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N close_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
close_button.setText("Close"); close_button.setText("Close");
close_button.setDoubleBuffered(true); close_button.setDoubleBuffered(true);
close_button.addActionListener(new java.awt.event.ActionListener() { close_button.addActionListener(new java.awt.event.ActionListener() {
@ -191,7 +191,7 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
} }
}); });
copy_link_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N copy_link_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
copy_link_button.setText("Copy link"); copy_link_button.setText("Copy link");
copy_link_button.setDoubleBuffered(true); copy_link_button.setDoubleBuffered(true);
copy_link_button.addActionListener(new java.awt.event.ActionListener() { copy_link_button.addActionListener(new java.awt.event.ActionListener() {
@ -201,7 +201,7 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
}); });
restart_button.setBackground(new java.awt.Color(51, 51, 255)); restart_button.setBackground(new java.awt.Color(51, 51, 255));
restart_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N restart_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
restart_button.setForeground(new java.awt.Color(255, 255, 255)); restart_button.setForeground(new java.awt.Color(255, 255, 255));
restart_button.setText("Restart"); restart_button.setText("Restart");
restart_button.setDoubleBuffered(true); restart_button.setDoubleBuffered(true);
@ -211,7 +211,7 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
} }
}); });
file_size_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N file_size_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
file_size_label.setForeground(new java.awt.Color(51, 51, 255)); file_size_label.setForeground(new java.awt.Color(51, 51, 255));
file_size_label.setText("file_size"); file_size_label.setText("file_size");
file_size_label.setDoubleBuffered(true); file_size_label.setDoubleBuffered(true);
@ -219,7 +219,7 @@ public final class DownloadView extends javax.swing.JPanel implements Transferen
slot_status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N slot_status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
slot_status_label.setDoubleBuffered(true); slot_status_label.setDoubleBuffered(true);
open_folder_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N open_folder_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
open_folder_button.setText("Open folder"); open_folder_button.setText("Open folder");
open_folder_button.setDoubleBuffered(true); open_folder_button.setDoubleBuffered(true);
open_folder_button.addActionListener(new java.awt.event.ActionListener() { open_folder_button.addActionListener(new java.awt.event.ActionListener() {

View File

@ -106,7 +106,7 @@
<Component class="javax.swing.JTree" name="file_tree"> <Component class="javax.swing.JTree" name="file_tree">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.tree.TreeModel" editor="org.netbeans.modules.form.editors2.TreeModelEditor"> <Property name="model" type="javax.swing.tree.TreeModel" editor="org.netbeans.modules.form.editors2.TreeModelEditor">
<TreeModel code=""/> <TreeModel code=""/>
@ -175,7 +175,7 @@
<Component class="javax.swing.JLabel" name="dir_name_label"> <Component class="javax.swing.JLabel" name="dir_name_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Upload name:"/> <Property name="text" type="java.lang.String" value="Upload name:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -185,7 +185,7 @@
<Component class="javax.swing.JTextField" name="dir_name_textfield"> <Component class="javax.swing.JTextField" name="dir_name_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -194,7 +194,7 @@
<Component class="javax.swing.JLabel" name="account_label"> <Component class="javax.swing.JLabel" name="account_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Account:"/> <Property name="text" type="java.lang.String" value="Account:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -204,7 +204,7 @@
<Component class="javax.swing.JComboBox" name="account_combobox"> <Component class="javax.swing.JComboBox" name="account_combobox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="0"/> <StringArray count="0"/>
@ -222,7 +222,7 @@
<Component class="javax.swing.JLabel" name="used_space_label"> <Component class="javax.swing.JLabel" name="used_space_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Used space: 0.00GB"/> <Property name="text" type="java.lang.String" value="Used space: 0.00GB"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -231,7 +231,7 @@
<Component class="javax.swing.JButton" name="add_folder_button"> <Component class="javax.swing.JButton" name="add_folder_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Add folder"/> <Property name="text" type="java.lang.String" value="Add folder"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -244,7 +244,7 @@
<Component class="javax.swing.JButton" name="add_files_button"> <Component class="javax.swing.JButton" name="add_files_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Add files"/> <Property name="text" type="java.lang.String" value="Add files"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -262,7 +262,7 @@
<Color blue="ff" green="cc" red="66" type="rgb"/> <Color blue="ff" green="cc" red="66" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="24" style="1"/> <Font name="Dialog" size="24" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -278,7 +278,7 @@
<Component class="javax.swing.JLabel" name="total_file_size_label"> <Component class="javax.swing.JLabel" name="total_file_size_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="28" style="1"/> <Font name="Dialog" size="28" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="[0 B]"/> <Property name="text" type="java.lang.String" value="[0 B]"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -288,7 +288,7 @@
<Component class="javax.swing.JLabel" name="warning_label"> <Component class="javax.swing.JLabel" name="warning_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="If you DO NOT want to upload some folder or file you can REMOVE it."/> <Property name="text" type="java.lang.String" value="If you DO NOT want to upload some folder or file you can REMOVE it."/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -298,7 +298,7 @@
<Component class="javax.swing.JButton" name="skip_rest_button"> <Component class="javax.swing.JButton" name="skip_rest_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="REMOVE ALL EXCEPT THIS"/> <Property name="text" type="java.lang.String" value="REMOVE ALL EXCEPT THIS"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -311,7 +311,7 @@
<Component class="javax.swing.JButton" name="skip_button"> <Component class="javax.swing.JButton" name="skip_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="REMOVE THIS"/> <Property name="text" type="java.lang.String" value="REMOVE THIS"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>

View File

@ -120,7 +120,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Files")); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Files"));
file_tree.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N file_tree.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root"); javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
file_tree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1)); file_tree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
file_tree.setDoubleBuffered(true); file_tree.setDoubleBuffered(true);
@ -139,21 +139,21 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
.addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE) .addComponent(file_tree_scrollpane, javax.swing.GroupLayout.DEFAULT_SIZE, 216, Short.MAX_VALUE)
); );
dir_name_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N dir_name_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
dir_name_label.setText("Upload name:"); dir_name_label.setText("Upload name:");
dir_name_label.setDoubleBuffered(true); dir_name_label.setDoubleBuffered(true);
dir_name_label.setEnabled(false); dir_name_label.setEnabled(false);
dir_name_textfield.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N dir_name_textfield.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
dir_name_textfield.setDoubleBuffered(true); dir_name_textfield.setDoubleBuffered(true);
dir_name_textfield.setEnabled(false); dir_name_textfield.setEnabled(false);
account_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N account_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
account_label.setText("Account:"); account_label.setText("Account:");
account_label.setDoubleBuffered(true); account_label.setDoubleBuffered(true);
account_label.setEnabled(false); account_label.setEnabled(false);
account_combobox.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N account_combobox.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
account_combobox.setDoubleBuffered(true); account_combobox.setDoubleBuffered(true);
account_combobox.setEnabled(false); account_combobox.setEnabled(false);
account_combobox.addItemListener(new java.awt.event.ItemListener() { account_combobox.addItemListener(new java.awt.event.ItemListener() {
@ -162,11 +162,11 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
} }
}); });
used_space_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N used_space_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
used_space_label.setText("Used space: 0.00GB"); used_space_label.setText("Used space: 0.00GB");
used_space_label.setDoubleBuffered(true); used_space_label.setDoubleBuffered(true);
add_folder_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N add_folder_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
add_folder_button.setText("Add folder"); add_folder_button.setText("Add folder");
add_folder_button.setDoubleBuffered(true); add_folder_button.setDoubleBuffered(true);
add_folder_button.setEnabled(false); add_folder_button.setEnabled(false);
@ -176,7 +176,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
} }
}); });
add_files_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N add_files_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
add_files_button.setText("Add files"); add_files_button.setText("Add files");
add_files_button.setDoubleBuffered(true); add_files_button.setDoubleBuffered(true);
add_files_button.setEnabled(false); add_files_button.setEnabled(false);
@ -227,7 +227,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
); );
dance_button.setBackground(new java.awt.Color(102, 204, 255)); dance_button.setBackground(new java.awt.Color(102, 204, 255));
dance_button.setFont(new java.awt.Font("Ubuntu", 1, 24)); // NOI18N dance_button.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
dance_button.setForeground(new java.awt.Color(255, 255, 255)); dance_button.setForeground(new java.awt.Color(255, 255, 255));
dance_button.setText("Let's dance, baby"); dance_button.setText("Let's dance, baby");
dance_button.setDoubleBuffered(true); dance_button.setDoubleBuffered(true);
@ -238,17 +238,17 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
} }
}); });
total_file_size_label.setFont(new java.awt.Font("Ubuntu", 1, 28)); // NOI18N total_file_size_label.setFont(new java.awt.Font("Dialog", 1, 28)); // NOI18N
total_file_size_label.setText("[0 B]"); total_file_size_label.setText("[0 B]");
total_file_size_label.setDoubleBuffered(true); total_file_size_label.setDoubleBuffered(true);
total_file_size_label.setEnabled(false); total_file_size_label.setEnabled(false);
warning_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N warning_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
warning_label.setText("If you DO NOT want to upload some folder or file you can REMOVE it."); warning_label.setText("If you DO NOT want to upload some folder or file you can REMOVE it.");
warning_label.setDoubleBuffered(true); warning_label.setDoubleBuffered(true);
warning_label.setEnabled(false); warning_label.setEnabled(false);
skip_rest_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N skip_rest_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
skip_rest_button.setText("REMOVE ALL EXCEPT THIS"); skip_rest_button.setText("REMOVE ALL EXCEPT THIS");
skip_rest_button.setDoubleBuffered(true); skip_rest_button.setDoubleBuffered(true);
skip_rest_button.setEnabled(false); skip_rest_button.setEnabled(false);
@ -258,7 +258,7 @@ public final class FileGrabberDialog extends javax.swing.JDialog {
} }
}); });
skip_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N skip_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
skip_button.setText("REMOVE THIS"); skip_button.setText("REMOVE THIS");
skip_button.setDoubleBuffered(true); skip_button.setDoubleBuffered(true);
skip_button.setEnabled(false); skip_button.setEnabled(false);

View File

@ -100,7 +100,7 @@
<Component class="javax.swing.JTree" name="file_tree"> <Component class="javax.swing.JTree" name="file_tree">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.tree.TreeModel" editor="org.netbeans.modules.form.editors2.TreeModelEditor"> <Property name="model" type="javax.swing.tree.TreeModel" editor="org.netbeans.modules.form.editors2.TreeModelEditor">
<TreeModel code=""/> <TreeModel code=""/>
@ -114,7 +114,7 @@
<Component class="javax.swing.JButton" name="skip_button"> <Component class="javax.swing.JButton" name="skip_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="REMOVE THIS"/> <Property name="text" type="java.lang.String" value="REMOVE THIS"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -127,7 +127,7 @@
<Component class="javax.swing.JLabel" name="link_detected_label"> <Component class="javax.swing.JLabel" name="link_detected_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="30" style="1"/> <Font name="Dialog" size="30" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Folder link detected!"/> <Property name="text" type="java.lang.String" value="Folder link detected!"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -139,7 +139,7 @@
<Color blue="ff" green="cc" red="66" type="rgb"/> <Color blue="ff" green="cc" red="66" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="24" style="1"/> <Font name="Dialog" size="24" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -155,7 +155,7 @@
<Component class="javax.swing.JLabel" name="folder_link_label"> <Component class="javax.swing.JLabel" name="folder_link_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="jLabel2"/> <Property name="text" type="java.lang.String" value="jLabel2"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -164,7 +164,7 @@
<Component class="javax.swing.JLabel" name="warning_label"> <Component class="javax.swing.JLabel" name="warning_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="If you DO NOT want to download some folder or file you can REMOVE it."/> <Property name="text" type="java.lang.String" value="If you DO NOT want to download some folder or file you can REMOVE it."/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -174,7 +174,7 @@
<Component class="javax.swing.JButton" name="skip_rest_button"> <Component class="javax.swing.JButton" name="skip_rest_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="REMOVE ALL EXCEPT THIS"/> <Property name="text" type="java.lang.String" value="REMOVE ALL EXCEPT THIS"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -187,7 +187,7 @@
<Component class="javax.swing.JButton" name="restore_button"> <Component class="javax.swing.JButton" name="restore_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="1"/> <Font name="Dialog" size="14" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Restore folder data"/> <Property name="text" type="java.lang.String" value="Restore folder data"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -199,7 +199,7 @@
<Component class="javax.swing.JLabel" name="total_space_label"> <Component class="javax.swing.JLabel" name="total_space_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="28" style="1"/> <Font name="Dialog" size="28" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="[0 B]"/> <Property name="text" type="java.lang.String" value="[0 B]"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>

View File

@ -95,14 +95,14 @@ public final class FolderLinkDialog extends javax.swing.JDialog {
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("FolderLink"); setTitle("FolderLink");
file_tree.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N file_tree.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root"); javax.swing.tree.DefaultMutableTreeNode treeNode1 = new javax.swing.tree.DefaultMutableTreeNode("root");
file_tree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1)); file_tree.setModel(new javax.swing.tree.DefaultTreeModel(treeNode1));
file_tree.setDoubleBuffered(true); file_tree.setDoubleBuffered(true);
file_tree.setEnabled(false); file_tree.setEnabled(false);
file_tree_scrollpane.setViewportView(file_tree); file_tree_scrollpane.setViewportView(file_tree);
skip_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N skip_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
skip_button.setText("REMOVE THIS"); skip_button.setText("REMOVE THIS");
skip_button.setDoubleBuffered(true); skip_button.setDoubleBuffered(true);
skip_button.setEnabled(false); skip_button.setEnabled(false);
@ -112,12 +112,12 @@ public final class FolderLinkDialog extends javax.swing.JDialog {
} }
}); });
link_detected_label.setFont(new java.awt.Font("Ubuntu", 1, 30)); // NOI18N link_detected_label.setFont(new java.awt.Font("Dialog", 1, 30)); // NOI18N
link_detected_label.setText("Folder link detected!"); link_detected_label.setText("Folder link detected!");
link_detected_label.setDoubleBuffered(true); link_detected_label.setDoubleBuffered(true);
dance_button.setBackground(new java.awt.Color(102, 204, 255)); dance_button.setBackground(new java.awt.Color(102, 204, 255));
dance_button.setFont(new java.awt.Font("Ubuntu", 1, 24)); // NOI18N dance_button.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
dance_button.setForeground(new java.awt.Color(255, 255, 255)); dance_button.setForeground(new java.awt.Color(255, 255, 255));
dance_button.setText("Let's dance, baby"); dance_button.setText("Let's dance, baby");
dance_button.setDoubleBuffered(true); dance_button.setDoubleBuffered(true);
@ -128,16 +128,16 @@ public final class FolderLinkDialog extends javax.swing.JDialog {
} }
}); });
folder_link_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N folder_link_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
folder_link_label.setText("jLabel2"); folder_link_label.setText("jLabel2");
folder_link_label.setDoubleBuffered(true); folder_link_label.setDoubleBuffered(true);
warning_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N warning_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
warning_label.setText("If you DO NOT want to download some folder or file you can REMOVE it."); warning_label.setText("If you DO NOT want to download some folder or file you can REMOVE it.");
warning_label.setDoubleBuffered(true); warning_label.setDoubleBuffered(true);
warning_label.setEnabled(false); warning_label.setEnabled(false);
skip_rest_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N skip_rest_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
skip_rest_button.setText("REMOVE ALL EXCEPT THIS"); skip_rest_button.setText("REMOVE ALL EXCEPT THIS");
skip_rest_button.setDoubleBuffered(true); skip_rest_button.setDoubleBuffered(true);
skip_rest_button.setEnabled(false); skip_rest_button.setEnabled(false);
@ -147,7 +147,7 @@ public final class FolderLinkDialog extends javax.swing.JDialog {
} }
}); });
restore_button.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N restore_button.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
restore_button.setText("Restore folder data"); restore_button.setText("Restore folder data");
restore_button.setDoubleBuffered(true); restore_button.setDoubleBuffered(true);
restore_button.addActionListener(new java.awt.event.ActionListener() { restore_button.addActionListener(new java.awt.event.ActionListener() {
@ -156,7 +156,7 @@ public final class FolderLinkDialog extends javax.swing.JDialog {
} }
}); });
total_space_label.setFont(new java.awt.Font("Ubuntu", 1, 28)); // NOI18N total_space_label.setFont(new java.awt.Font("Dialog", 1, 28)); // NOI18N
total_space_label.setText("[0 B]"); total_space_label.setText("[0 B]");
total_space_label.setDoubleBuffered(true); total_space_label.setDoubleBuffered(true);
total_space_label.setEnabled(false); total_space_label.setEnabled(false);

View File

@ -83,7 +83,7 @@
<Component class="javax.swing.JPasswordField" name="current_pass_textfield"> <Component class="javax.swing.JPasswordField" name="current_pass_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -94,7 +94,7 @@
<Component class="javax.swing.JButton" name="cancel_button"> <Component class="javax.swing.JButton" name="cancel_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="CANCEL"/> <Property name="text" type="java.lang.String" value="CANCEL"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -106,7 +106,7 @@
<Component class="javax.swing.JButton" name="ok_button"> <Component class="javax.swing.JButton" name="ok_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="OK"/> <Property name="text" type="java.lang.String" value="OK"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -126,7 +126,7 @@
<Component class="javax.swing.JLabel" name="please_label"> <Component class="javax.swing.JLabel" name="please_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="26" style="1"/> <Font name="Dialog" size="26" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Please, enter your master password"/> <Property name="text" type="java.lang.String" value="Please, enter your master password"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -135,7 +135,7 @@
<Component class="javax.swing.JLabel" name="status_label"> <Component class="javax.swing.JLabel" name="status_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="1"/> <Font name="Dialog" size="14" style="1"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -143,7 +143,7 @@
<Component class="javax.swing.JCheckBox" name="remember_checkbox"> <Component class="javax.swing.JCheckBox" name="remember_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="selected" type="boolean" value="true"/> <Property name="selected" type="boolean" value="true"/>
<Property name="text" type="java.lang.String" value="Remember for this session"/> <Property name="text" type="java.lang.String" value="Remember for this session"/>

View File

@ -89,7 +89,7 @@ public class GetMasterPasswordDialog extends javax.swing.JDialog {
setTitle("MasterPassword"); setTitle("MasterPassword");
setResizable(false); setResizable(false);
current_pass_textfield.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N current_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
current_pass_textfield.setDoubleBuffered(true); current_pass_textfield.setDoubleBuffered(true);
current_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() { current_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) { public void keyPressed(java.awt.event.KeyEvent evt) {
@ -97,7 +97,7 @@ public class GetMasterPasswordDialog extends javax.swing.JDialog {
} }
}); });
cancel_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N cancel_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
cancel_button.setText("CANCEL"); cancel_button.setText("CANCEL");
cancel_button.setDoubleBuffered(true); cancel_button.setDoubleBuffered(true);
cancel_button.addActionListener(new java.awt.event.ActionListener() { cancel_button.addActionListener(new java.awt.event.ActionListener() {
@ -106,7 +106,7 @@ public class GetMasterPasswordDialog extends javax.swing.JDialog {
} }
}); });
ok_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N ok_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
ok_button.setText("OK"); ok_button.setText("OK");
ok_button.setDoubleBuffered(true); ok_button.setDoubleBuffered(true);
ok_button.addActionListener(new java.awt.event.ActionListener() { ok_button.addActionListener(new java.awt.event.ActionListener() {
@ -118,14 +118,14 @@ public class GetMasterPasswordDialog extends javax.swing.JDialog {
lock_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/lock_medium.png"))); // NOI18N lock_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/lock_medium.png"))); // NOI18N
lock_label.setDoubleBuffered(true); lock_label.setDoubleBuffered(true);
please_label.setFont(new java.awt.Font("Ubuntu", 1, 26)); // NOI18N please_label.setFont(new java.awt.Font("Dialog", 1, 26)); // NOI18N
please_label.setText("Please, enter your master password"); please_label.setText("Please, enter your master password");
please_label.setDoubleBuffered(true); please_label.setDoubleBuffered(true);
status_label.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
status_label.setDoubleBuffered(true); status_label.setDoubleBuffered(true);
remember_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N remember_checkbox.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
remember_checkbox.setSelected(true); remember_checkbox.setSelected(true);
remember_checkbox.setText("Remember for this session"); remember_checkbox.setText("Remember for this session");
remember_checkbox.setDoubleBuffered(true); remember_checkbox.setDoubleBuffered(true);

View File

@ -92,7 +92,7 @@
<Properties> <Properties>
<Property name="columns" type="int" value="20"/> <Property name="columns" type="int" value="20"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="rows" type="int" value="5"/> <Property name="rows" type="int" value="5"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -109,7 +109,7 @@
<Color blue="ff" green="cc" red="66" type="rgb"/> <Color blue="ff" green="cc" red="66" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="24" style="1"/> <Font name="Dialog" size="24" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -124,7 +124,7 @@
<Component class="javax.swing.JLabel" name="links_label"> <Component class="javax.swing.JLabel" name="links_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Put your MEGA/MegaCrypter/ELC link/s here (one per line):"/> <Property name="text" type="java.lang.String" value="Put your MEGA/MegaCrypter/ELC link/s here (one per line):"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -133,7 +133,7 @@
<Component class="javax.swing.JButton" name="change_dir_button"> <Component class="javax.swing.JButton" name="change_dir_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Change it"/> <Property name="text" type="java.lang.String" value="Change it"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -145,7 +145,7 @@
<Component class="javax.swing.JLabel" name="down_dir_to_label"> <Component class="javax.swing.JLabel" name="down_dir_to_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Download to: "/> <Property name="text" type="java.lang.String" value="Download to: "/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -154,14 +154,14 @@
<Component class="javax.swing.JLabel" name="download_dir_label"> <Component class="javax.swing.JLabel" name="download_dir_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JButton" name="dlc_button"> <Component class="javax.swing.JButton" name="dlc_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Load DLC container"/> <Property name="text" type="java.lang.String" value="Load DLC container"/>
</Properties> </Properties>
@ -172,7 +172,7 @@
<Component class="javax.swing.JLabel" name="use_mega_account_down_label"> <Component class="javax.swing.JLabel" name="use_mega_account_down_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use this account for download:"/> <Property name="text" type="java.lang.String" value="Use this account for download:"/>
</Properties> </Properties>
@ -180,7 +180,7 @@
<Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox"> <Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="0"/> <StringArray count="0"/>

View File

@ -112,14 +112,14 @@ public final class LinkGrabberDialog extends javax.swing.JDialog implements Clip
setModal(true); setModal(true);
links_textarea.setColumns(20); links_textarea.setColumns(20);
links_textarea.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N links_textarea.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
links_textarea.setRows(5); links_textarea.setRows(5);
links_textarea.setDoubleBuffered(true); links_textarea.setDoubleBuffered(true);
links_scrollpane.setViewportView(links_textarea); links_scrollpane.setViewportView(links_textarea);
links_textarea.addMouseListener(new ContextMenuMouseListener()); links_textarea.addMouseListener(new ContextMenuMouseListener());
dance_button.setBackground(new java.awt.Color(102, 204, 255)); dance_button.setBackground(new java.awt.Color(102, 204, 255));
dance_button.setFont(new java.awt.Font("Ubuntu", 1, 24)); // NOI18N dance_button.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
dance_button.setForeground(new java.awt.Color(255, 255, 255)); dance_button.setForeground(new java.awt.Color(255, 255, 255));
dance_button.setText("Let's dance, baby"); dance_button.setText("Let's dance, baby");
dance_button.setDoubleBuffered(true); dance_button.setDoubleBuffered(true);
@ -129,11 +129,11 @@ public final class LinkGrabberDialog extends javax.swing.JDialog implements Clip
} }
}); });
links_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N links_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
links_label.setText("Put your MEGA/MegaCrypter/ELC link/s here (one per line):"); links_label.setText("Put your MEGA/MegaCrypter/ELC link/s here (one per line):");
links_label.setDoubleBuffered(true); links_label.setDoubleBuffered(true);
change_dir_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N change_dir_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
change_dir_button.setText("Change it"); change_dir_button.setText("Change it");
change_dir_button.setDoubleBuffered(true); change_dir_button.setDoubleBuffered(true);
change_dir_button.addActionListener(new java.awt.event.ActionListener() { change_dir_button.addActionListener(new java.awt.event.ActionListener() {
@ -142,13 +142,13 @@ public final class LinkGrabberDialog extends javax.swing.JDialog implements Clip
} }
}); });
down_dir_to_label.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N down_dir_to_label.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
down_dir_to_label.setText("Download to: "); down_dir_to_label.setText("Download to: ");
down_dir_to_label.setDoubleBuffered(true); down_dir_to_label.setDoubleBuffered(true);
download_dir_label.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N download_dir_label.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
dlc_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N dlc_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
dlc_button.setText("Load DLC container"); dlc_button.setText("Load DLC container");
dlc_button.addActionListener(new java.awt.event.ActionListener() { dlc_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -156,10 +156,10 @@ public final class LinkGrabberDialog extends javax.swing.JDialog implements Clip
} }
}); });
use_mega_account_down_label.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N use_mega_account_down_label.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
use_mega_account_down_label.setText("Use this account for download:"); use_mega_account_down_label.setText("Use this account for download:");
use_mega_account_down_combobox.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N use_mega_account_down_combobox.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
use_mega_account_down_combobox.addItemListener(new java.awt.event.ItemListener() { use_mega_account_down_combobox.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) { public void itemStateChanged(java.awt.event.ItemEvent evt) {
use_mega_account_down_comboboxItemStateChanged(evt); use_mega_account_down_comboboxItemStateChanged(evt);

View File

@ -45,7 +45,7 @@ import org.apache.http.auth.UsernamePasswordCredentials;
*/ */
public final class MainPanel { public final class MainPanel {
public static final String VERSION = "2.34"; public static final String VERSION = "2.35";
public static final int THROTTLE_SLICE_SIZE = 16 * 1024; public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024; public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
public static final int STREAMER_PORT = 1337; public static final int STREAMER_PORT = 1337;

View File

@ -9,14 +9,14 @@
<Property name="text" type="java.lang.String" value="File"/> <Property name="text" type="java.lang.String" value="File"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
</Properties> </Properties>
<SubComponents> <SubComponents>
<MenuItem class="javax.swing.JMenuItem" name="new_download_menu"> <MenuItem class="javax.swing.JMenuItem" name="new_download_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="New download"/> <Property name="text" type="java.lang.String" value="New download"/>
</Properties> </Properties>
@ -27,7 +27,7 @@
<MenuItem class="javax.swing.JMenuItem" name="new_upload_menu"> <MenuItem class="javax.swing.JMenuItem" name="new_upload_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="New upload"/> <Property name="text" type="java.lang.String" value="New upload"/>
</Properties> </Properties>
@ -38,7 +38,7 @@
<MenuItem class="javax.swing.JMenuItem" name="new_stream_menu"> <MenuItem class="javax.swing.JMenuItem" name="new_stream_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="New stream"/> <Property name="text" type="java.lang.String" value="New stream"/>
</Properties> </Properties>
@ -51,7 +51,7 @@
<MenuItem class="javax.swing.JMenuItem" name="clean_all_down_menu"> <MenuItem class="javax.swing.JMenuItem" name="clean_all_down_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Remove all pre/pro/wait downloads"/> <Property name="text" type="java.lang.String" value="Remove all pre/pro/wait downloads"/>
</Properties> </Properties>
@ -62,7 +62,7 @@
<MenuItem class="javax.swing.JMenuItem" name="clean_all_up_menu"> <MenuItem class="javax.swing.JMenuItem" name="clean_all_up_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Remove all pre/pro/wait uploads"/> <Property name="text" type="java.lang.String" value="Remove all pre/pro/wait uploads"/>
</Properties> </Properties>
@ -75,7 +75,7 @@
<MenuItem class="javax.swing.JMenuItem" name="hide_tray_menu"> <MenuItem class="javax.swing.JMenuItem" name="hide_tray_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Hide to tray"/> <Property name="text" type="java.lang.String" value="Hide to tray"/>
</Properties> </Properties>
@ -86,7 +86,7 @@
<MenuItem class="javax.swing.JMenuItem" name="exit_menu"> <MenuItem class="javax.swing.JMenuItem" name="exit_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="EXIT"/> <Property name="text" type="java.lang.String" value="EXIT"/>
</Properties> </Properties>
@ -101,14 +101,14 @@
<Property name="text" type="java.lang.String" value="Edit"/> <Property name="text" type="java.lang.String" value="Edit"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
</Properties> </Properties>
<SubComponents> <SubComponents>
<MenuItem class="javax.swing.JMenuItem" name="settings_menu"> <MenuItem class="javax.swing.JMenuItem" name="settings_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Settings"/> <Property name="text" type="java.lang.String" value="Settings"/>
</Properties> </Properties>
@ -123,14 +123,14 @@
<Property name="text" type="java.lang.String" value="Help"/> <Property name="text" type="java.lang.String" value="Help"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
</Properties> </Properties>
<SubComponents> <SubComponents>
<MenuItem class="javax.swing.JMenuItem" name="about_menu"> <MenuItem class="javax.swing.JMenuItem" name="about_menu">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="About"/> <Property name="text" type="java.lang.String" value="About"/>
</Properties> </Properties>
@ -184,7 +184,7 @@
<Group type="103" groupAlignment="0" attributes="0"> <Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0"> <Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Component id="jTabbedPane1" max="32767" attributes="0"/> <Component id="jTabbedPane1" pref="482" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/> <EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="1" attributes="0"> <Group type="103" groupAlignment="1" attributes="0">
<Component id="logo_label" min="-2" max="-2" attributes="0"/> <Component id="logo_label" min="-2" max="-2" attributes="0"/>
@ -207,7 +207,7 @@
<Component class="javax.swing.JLabel" name="kiss_server_status"> <Component class="javax.swing.JLabel" name="kiss_server_status">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="2"/> <Font name="Dialog" size="14" style="2"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -216,7 +216,7 @@
<Properties> <Properties>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="22" style="1"/> <Font name="Dialog" size="22" style="1"/>
</Property> </Property>
</Properties> </Properties>
@ -258,7 +258,7 @@
<Component id="status_down_label" max="32767" attributes="0"/> <Component id="status_down_label" max="32767" attributes="0"/>
</Group> </Group>
<EmptySpace min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="jScrollPane_down" pref="318" max="32767" attributes="0"/> <Component id="jScrollPane_down" pref="316" max="32767" attributes="0"/>
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/> <EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
<Component id="down_remtime_label" min="-2" max="-2" attributes="0"/> <Component id="down_remtime_label" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/>
@ -274,7 +274,7 @@
<Component class="javax.swing.JLabel" name="global_speed_down_label"> <Component class="javax.swing.JLabel" name="global_speed_down_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="54" style="1"/> <Font name="Dialog" size="54" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Speed"/> <Property name="text" type="java.lang.String" value="Speed"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -283,7 +283,7 @@
<Component class="javax.swing.JLabel" name="status_down_label"> <Component class="javax.swing.JLabel" name="status_down_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="2"/> <Font name="Dialog" size="16" style="2"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -294,7 +294,7 @@
<Color blue="33" green="99" red="0" type="rgb"/> <Color blue="33" green="99" red="0" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -324,7 +324,7 @@
<Color blue="0" green="99" red="ff" type="rgb"/> <Color blue="0" green="99" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -339,7 +339,7 @@
<Component class="javax.swing.JLabel" name="down_remtime_label"> <Component class="javax.swing.JLabel" name="down_remtime_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
@ -381,7 +381,7 @@
<Component id="status_up_label" alignment="0" max="32767" attributes="0"/> <Component id="status_up_label" alignment="0" max="32767" attributes="0"/>
</Group> </Group>
<EmptySpace min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/>
<Component id="jScrollPane_up" pref="318" max="32767" attributes="0"/> <Component id="jScrollPane_up" pref="316" max="32767" attributes="0"/>
<EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/> <EmptySpace type="unrelated" min="-2" max="-2" attributes="0"/>
<Component id="up_remtime_label" min="-2" max="-2" attributes="0"/> <Component id="up_remtime_label" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" max="-2" attributes="0"/> <EmptySpace min="-2" max="-2" attributes="0"/>
@ -397,7 +397,7 @@
<Component class="javax.swing.JLabel" name="global_speed_up_label"> <Component class="javax.swing.JLabel" name="global_speed_up_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="54" style="1"/> <Font name="Dialog" size="54" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Speed"/> <Property name="text" type="java.lang.String" value="Speed"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -406,7 +406,7 @@
<Component class="javax.swing.JLabel" name="status_up_label"> <Component class="javax.swing.JLabel" name="status_up_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="2"/> <Font name="Dialog" size="16" style="2"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
@ -416,7 +416,7 @@
<Color blue="33" green="99" red="0" type="rgb"/> <Color blue="33" green="99" red="0" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -446,7 +446,7 @@
<Color blue="0" green="99" red="ff" type="rgb"/> <Color blue="0" green="99" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -461,7 +461,7 @@
<Component class="javax.swing.JLabel" name="up_remtime_label"> <Component class="javax.swing.JLabel" name="up_remtime_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>

View File

@ -5,6 +5,8 @@ import java.awt.event.WindowEvent;
import static java.awt.event.WindowEvent.WINDOW_CLOSING; import static java.awt.event.WindowEvent.WINDOW_CLOSING;
import java.io.File; import java.io.File;
import java.io.IOException; import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.sql.SQLException; import java.sql.SQLException;
import java.util.HashMap; import java.util.HashMap;
import java.util.HashSet; import java.util.HashSet;
@ -182,21 +184,21 @@ public final class MainPanelView extends javax.swing.JFrame {
logo_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/mbasterd_logo_nuevo.png"))); // NOI18N logo_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/mbasterd_logo_nuevo.png"))); // NOI18N
logo_label.setDoubleBuffered(true); logo_label.setDoubleBuffered(true);
kiss_server_status.setFont(new java.awt.Font("Ubuntu", 2, 14)); // NOI18N kiss_server_status.setFont(new java.awt.Font("Dialog", 2, 14)); // NOI18N
kiss_server_status.setDoubleBuffered(true); kiss_server_status.setDoubleBuffered(true);
jTabbedPane1.setDoubleBuffered(true); jTabbedPane1.setDoubleBuffered(true);
jTabbedPane1.setFont(new java.awt.Font("Ubuntu", 1, 22)); // NOI18N jTabbedPane1.setFont(new java.awt.Font("Dialog", 1, 22)); // NOI18N
global_speed_down_label.setFont(new java.awt.Font("Ubuntu", 1, 54)); // NOI18N global_speed_down_label.setFont(new java.awt.Font("Dialog", 1, 54)); // NOI18N
global_speed_down_label.setText("Speed"); global_speed_down_label.setText("Speed");
global_speed_down_label.setDoubleBuffered(true); global_speed_down_label.setDoubleBuffered(true);
status_down_label.setFont(new java.awt.Font("Ubuntu", 2, 16)); // NOI18N status_down_label.setFont(new java.awt.Font("Dialog", 2, 16)); // NOI18N
status_down_label.setDoubleBuffered(true); status_down_label.setDoubleBuffered(true);
close_all_finished_down_button.setBackground(new java.awt.Color(0, 153, 51)); close_all_finished_down_button.setBackground(new java.awt.Color(0, 153, 51));
close_all_finished_down_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N close_all_finished_down_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
close_all_finished_down_button.setForeground(new java.awt.Color(255, 255, 255)); close_all_finished_down_button.setForeground(new java.awt.Color(255, 255, 255));
close_all_finished_down_button.setText("Close all OK finished"); close_all_finished_down_button.setText("Close all OK finished");
close_all_finished_down_button.setDoubleBuffered(true); close_all_finished_down_button.setDoubleBuffered(true);
@ -210,7 +212,7 @@ public final class MainPanelView extends javax.swing.JFrame {
jScrollPane_down.setViewportView(jPanel_scroll_down); jScrollPane_down.setViewportView(jPanel_scroll_down);
pause_all_down_button.setBackground(new java.awt.Color(255, 153, 0)); pause_all_down_button.setBackground(new java.awt.Color(255, 153, 0));
pause_all_down_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N pause_all_down_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
pause_all_down_button.setForeground(new java.awt.Color(255, 255, 255)); pause_all_down_button.setForeground(new java.awt.Color(255, 255, 255));
pause_all_down_button.setText("PAUSE ALL"); pause_all_down_button.setText("PAUSE ALL");
pause_all_down_button.setDoubleBuffered(true); pause_all_down_button.setDoubleBuffered(true);
@ -220,7 +222,7 @@ public final class MainPanelView extends javax.swing.JFrame {
} }
}); });
down_remtime_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N down_remtime_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
javax.swing.GroupLayout downloads_panelLayout = new javax.swing.GroupLayout(downloads_panel); javax.swing.GroupLayout downloads_panelLayout = new javax.swing.GroupLayout(downloads_panel);
downloads_panel.setLayout(downloads_panelLayout); downloads_panel.setLayout(downloads_panelLayout);
@ -246,7 +248,7 @@ public final class MainPanelView extends javax.swing.JFrame {
.addComponent(close_all_finished_down_button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(close_all_finished_down_button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(status_down_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(status_down_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane_down, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE) .addComponent(jScrollPane_down, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(down_remtime_label) .addComponent(down_remtime_label)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
@ -257,14 +259,14 @@ public final class MainPanelView extends javax.swing.JFrame {
jTabbedPane1.addTab("Downloads", downloads_panel); jTabbedPane1.addTab("Downloads", downloads_panel);
global_speed_up_label.setFont(new java.awt.Font("Ubuntu", 1, 54)); // NOI18N global_speed_up_label.setFont(new java.awt.Font("Dialog", 1, 54)); // NOI18N
global_speed_up_label.setText("Speed"); global_speed_up_label.setText("Speed");
global_speed_up_label.setDoubleBuffered(true); global_speed_up_label.setDoubleBuffered(true);
status_up_label.setFont(new java.awt.Font("Ubuntu", 2, 16)); // NOI18N status_up_label.setFont(new java.awt.Font("Dialog", 2, 16)); // NOI18N
close_all_finished_up_button.setBackground(new java.awt.Color(0, 153, 51)); close_all_finished_up_button.setBackground(new java.awt.Color(0, 153, 51));
close_all_finished_up_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N close_all_finished_up_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
close_all_finished_up_button.setForeground(new java.awt.Color(255, 255, 255)); close_all_finished_up_button.setForeground(new java.awt.Color(255, 255, 255));
close_all_finished_up_button.setText("Close all OK finished"); close_all_finished_up_button.setText("Close all OK finished");
close_all_finished_up_button.setDoubleBuffered(true); close_all_finished_up_button.setDoubleBuffered(true);
@ -278,7 +280,7 @@ public final class MainPanelView extends javax.swing.JFrame {
jScrollPane_up.setViewportView(jPanel_scroll_up); jScrollPane_up.setViewportView(jPanel_scroll_up);
pause_all_up_button.setBackground(new java.awt.Color(255, 153, 0)); pause_all_up_button.setBackground(new java.awt.Color(255, 153, 0));
pause_all_up_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N pause_all_up_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
pause_all_up_button.setForeground(new java.awt.Color(255, 255, 255)); pause_all_up_button.setForeground(new java.awt.Color(255, 255, 255));
pause_all_up_button.setText("PAUSE ALL"); pause_all_up_button.setText("PAUSE ALL");
pause_all_up_button.setDoubleBuffered(true); pause_all_up_button.setDoubleBuffered(true);
@ -288,7 +290,7 @@ public final class MainPanelView extends javax.swing.JFrame {
} }
}); });
up_remtime_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N up_remtime_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
javax.swing.GroupLayout uploads_panelLayout = new javax.swing.GroupLayout(uploads_panel); javax.swing.GroupLayout uploads_panelLayout = new javax.swing.GroupLayout(uploads_panel);
uploads_panel.setLayout(uploads_panelLayout); uploads_panel.setLayout(uploads_panelLayout);
@ -314,7 +316,7 @@ public final class MainPanelView extends javax.swing.JFrame {
.addComponent(close_all_finished_up_button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(close_all_finished_up_button, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(status_up_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(status_up_label, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane_up, javax.swing.GroupLayout.DEFAULT_SIZE, 318, Short.MAX_VALUE) .addComponent(jScrollPane_up, javax.swing.GroupLayout.DEFAULT_SIZE, 316, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(up_remtime_label) .addComponent(up_remtime_label)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
@ -327,9 +329,9 @@ public final class MainPanelView extends javax.swing.JFrame {
file_menu.setText("File"); file_menu.setText("File");
file_menu.setDoubleBuffered(true); file_menu.setDoubleBuffered(true);
file_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N file_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
new_download_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N new_download_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
new_download_menu.setText("New download"); new_download_menu.setText("New download");
new_download_menu.addActionListener(new java.awt.event.ActionListener() { new_download_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -338,7 +340,7 @@ public final class MainPanelView extends javax.swing.JFrame {
}); });
file_menu.add(new_download_menu); file_menu.add(new_download_menu);
new_upload_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N new_upload_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
new_upload_menu.setText("New upload"); new_upload_menu.setText("New upload");
new_upload_menu.addActionListener(new java.awt.event.ActionListener() { new_upload_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -347,7 +349,7 @@ public final class MainPanelView extends javax.swing.JFrame {
}); });
file_menu.add(new_upload_menu); file_menu.add(new_upload_menu);
new_stream_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N new_stream_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
new_stream_menu.setText("New stream"); new_stream_menu.setText("New stream");
new_stream_menu.addActionListener(new java.awt.event.ActionListener() { new_stream_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -357,7 +359,7 @@ public final class MainPanelView extends javax.swing.JFrame {
file_menu.add(new_stream_menu); file_menu.add(new_stream_menu);
file_menu.add(jSeparator4); file_menu.add(jSeparator4);
clean_all_down_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N clean_all_down_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
clean_all_down_menu.setText("Remove all pre/pro/wait downloads"); clean_all_down_menu.setText("Remove all pre/pro/wait downloads");
clean_all_down_menu.addActionListener(new java.awt.event.ActionListener() { clean_all_down_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -366,7 +368,7 @@ public final class MainPanelView extends javax.swing.JFrame {
}); });
file_menu.add(clean_all_down_menu); file_menu.add(clean_all_down_menu);
clean_all_up_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N clean_all_up_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
clean_all_up_menu.setText("Remove all pre/pro/wait uploads"); clean_all_up_menu.setText("Remove all pre/pro/wait uploads");
clean_all_up_menu.addActionListener(new java.awt.event.ActionListener() { clean_all_up_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -376,7 +378,7 @@ public final class MainPanelView extends javax.swing.JFrame {
file_menu.add(clean_all_up_menu); file_menu.add(clean_all_up_menu);
file_menu.add(jSeparator2); file_menu.add(jSeparator2);
hide_tray_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N hide_tray_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
hide_tray_menu.setText("Hide to tray"); hide_tray_menu.setText("Hide to tray");
hide_tray_menu.addActionListener(new java.awt.event.ActionListener() { hide_tray_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -385,7 +387,7 @@ public final class MainPanelView extends javax.swing.JFrame {
}); });
file_menu.add(hide_tray_menu); file_menu.add(hide_tray_menu);
exit_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N exit_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
exit_menu.setText("EXIT"); exit_menu.setText("EXIT");
exit_menu.addActionListener(new java.awt.event.ActionListener() { exit_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -398,9 +400,9 @@ public final class MainPanelView extends javax.swing.JFrame {
edit_menu.setText("Edit"); edit_menu.setText("Edit");
edit_menu.setDoubleBuffered(true); edit_menu.setDoubleBuffered(true);
edit_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N edit_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
settings_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N settings_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
settings_menu.setText("Settings"); settings_menu.setText("Settings");
settings_menu.addActionListener(new java.awt.event.ActionListener() { settings_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -413,9 +415,9 @@ public final class MainPanelView extends javax.swing.JFrame {
help_menu.setText("Help"); help_menu.setText("Help");
help_menu.setDoubleBuffered(true); help_menu.setDoubleBuffered(true);
help_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N help_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
about_menu.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N about_menu.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
about_menu.setText("About"); about_menu.setText("About");
about_menu.addActionListener(new java.awt.event.ActionListener() { about_menu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -446,7 +448,7 @@ public final class MainPanelView extends javax.swing.JFrame {
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup() .addGroup(layout.createSequentialGroup()
.addContainerGap() .addContainerGap()
.addComponent(jTabbedPane1) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 482, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(logo_label) .addComponent(logo_label)
@ -552,49 +554,53 @@ public final class MainPanelView extends javax.swing.JFrame {
for (String url : urls) { for (String url : urls) {
if (getMain_panel().getDownload_manager().getPre_count() > 0) { if (getMain_panel().getDownload_manager().getPre_count() > 0) {
url = url.replaceAll("^mega://", "https://mega.nz"); try {
url = URLDecoder.decode(url.replaceAll("^mega://", "https://mega.nz"), "UTF-8").trim();
Download download; Download download;
if (findFirstRegex("#F!", url, 0) != null) { if (findFirstRegex("#F!", url, 0) != null) {
FolderLinkDialog fdialog = new FolderLinkDialog(_main_panel.getView(), true, url); FolderLinkDialog fdialog = new FolderLinkDialog(_main_panel.getView(), true, url);
if (!fdialog.isMega_error()) { if (!fdialog.isMega_error()) {
swingReflectionInvokeAndWait("setLocationRelativeTo", fdialog, _main_panel.getView()); swingReflectionInvokeAndWait("setLocationRelativeTo", fdialog, _main_panel.getView());
swingReflectionInvokeAndWait("setVisible", fdialog, true); swingReflectionInvokeAndWait("setVisible", fdialog, true);
if (fdialog.isDownload()) { if (fdialog.isDownload()) {
List<HashMap> folder_links = fdialog.getDownload_links(); List<HashMap> folder_links = fdialog.getDownload_links();
fdialog.dispose(); fdialog.dispose();
for (HashMap folder_link : folder_links) { for (HashMap folder_link : folder_links) {
download = new Download(getMain_panel(), ma, (String) folder_link.get("url"), dl_path, (String) folder_link.get("filename"), (String) folder_link.get("filekey"), (long) folder_link.get("filesize"), null, null, getMain_panel().isUse_slots_down(), getMain_panel().getDefault_slots_down(), true); download = new Download(getMain_panel(), ma, (String) folder_link.get("url"), dl_path, (String) folder_link.get("filename"), (String) folder_link.get("filekey"), (long) folder_link.get("filesize"), null, null, getMain_panel().isUse_slots_down(), getMain_panel().getDefault_slots_down(), true);
getMain_panel().getDownload_manager().getTransference_provision_queue().add(download); getMain_panel().getDownload_manager().getTransference_provision_queue().add(download);
}
} }
} }
fdialog.dispose();
} else {
download = new Download(getMain_panel(), ma, url, dl_path, null, null, null, null, null, getMain_panel().isUse_slots_down(), getMain_panel().getDefault_slots_down(), false);
getMain_panel().getDownload_manager().getTransference_provision_queue().add(download);
} }
fdialog.dispose(); getMain_panel().getDownload_manager().addPre_count(-1);
} else { getMain_panel().getDownload_manager().secureNotify();
} catch (UnsupportedEncodingException ex) {
download = new Download(getMain_panel(), ma, url, dl_path, null, null, null, null, null, getMain_panel().isUse_slots_down(), getMain_panel().getDefault_slots_down(), false); Logger.getLogger(MainPanelView.class.getName()).log(Level.SEVERE, null, ex);
getMain_panel().getDownload_manager().getTransference_provision_queue().add(download);
} }
getMain_panel().getDownload_manager().addPre_count(-1);
getMain_panel().getDownload_manager().secureNotify();
} }
} }
} }

View File

@ -96,7 +96,7 @@
<Component class="javax.swing.JPasswordField" name="confirm_pass_textfield"> <Component class="javax.swing.JPasswordField" name="confirm_pass_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -107,7 +107,7 @@
<Component class="javax.swing.JLabel" name="confirm_pass_label"> <Component class="javax.swing.JLabel" name="confirm_pass_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Confirm new:"/> <Property name="text" type="java.lang.String" value="Confirm new:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -116,7 +116,7 @@
<Component class="javax.swing.JButton" name="cancel_button"> <Component class="javax.swing.JButton" name="cancel_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="CANCEL"/> <Property name="text" type="java.lang.String" value="CANCEL"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -128,7 +128,7 @@
<Component class="javax.swing.JButton" name="ok_button"> <Component class="javax.swing.JButton" name="ok_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="OK"/> <Property name="text" type="java.lang.String" value="OK"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -148,7 +148,7 @@
<Component class="javax.swing.JLabel" name="warning_label"> <Component class="javax.swing.JLabel" name="warning_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="1"/> <Font name="Dialog" size="14" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="WARNING: if you forget this password, you will have to insert all your accounts again."/> <Property name="text" type="java.lang.String" value="WARNING: if you forget this password, you will have to insert all your accounts again."/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -157,7 +157,7 @@
<Component class="javax.swing.JLabel" name="new_pass_label"> <Component class="javax.swing.JLabel" name="new_pass_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="New pass:"/> <Property name="text" type="java.lang.String" value="New pass:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -166,7 +166,7 @@
<Component class="javax.swing.JPasswordField" name="new_pass_textfield"> <Component class="javax.swing.JPasswordField" name="new_pass_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -174,7 +174,7 @@
<Component class="javax.swing.JLabel" name="status_label"> <Component class="javax.swing.JLabel" name="status_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="1"/> <Font name="Dialog" size="14" style="1"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>

View File

@ -84,7 +84,7 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
setTitle("MasterPassword"); setTitle("MasterPassword");
setResizable(false); setResizable(false);
confirm_pass_textfield.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N confirm_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
confirm_pass_textfield.setDoubleBuffered(true); confirm_pass_textfield.setDoubleBuffered(true);
confirm_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() { confirm_pass_textfield.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) { public void keyPressed(java.awt.event.KeyEvent evt) {
@ -92,11 +92,11 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
} }
}); });
confirm_pass_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N confirm_pass_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
confirm_pass_label.setText("Confirm new:"); confirm_pass_label.setText("Confirm new:");
confirm_pass_label.setDoubleBuffered(true); confirm_pass_label.setDoubleBuffered(true);
cancel_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N cancel_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
cancel_button.setText("CANCEL"); cancel_button.setText("CANCEL");
cancel_button.setDoubleBuffered(true); cancel_button.setDoubleBuffered(true);
cancel_button.addActionListener(new java.awt.event.ActionListener() { cancel_button.addActionListener(new java.awt.event.ActionListener() {
@ -105,7 +105,7 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
} }
}); });
ok_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N ok_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
ok_button.setText("OK"); ok_button.setText("OK");
ok_button.setDoubleBuffered(true); ok_button.setDoubleBuffered(true);
ok_button.addActionListener(new java.awt.event.ActionListener() { ok_button.addActionListener(new java.awt.event.ActionListener() {
@ -117,18 +117,18 @@ public class SetMasterPasswordDialog extends javax.swing.JDialog {
lock_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/lock_medium.png"))); // NOI18N lock_label.setIcon(new javax.swing.ImageIcon(getClass().getResource("/megabasterd/lock_medium.png"))); // NOI18N
lock_label.setDoubleBuffered(true); lock_label.setDoubleBuffered(true);
warning_label.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N warning_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
warning_label.setText("WARNING: if you forget this password, you will have to insert all your accounts again."); warning_label.setText("WARNING: if you forget this password, you will have to insert all your accounts again.");
warning_label.setDoubleBuffered(true); warning_label.setDoubleBuffered(true);
new_pass_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N new_pass_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
new_pass_label.setText("New pass:"); new_pass_label.setText("New pass:");
new_pass_label.setDoubleBuffered(true); new_pass_label.setDoubleBuffered(true);
new_pass_textfield.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N new_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
new_pass_textfield.setDoubleBuffered(true); new_pass_textfield.setDoubleBuffered(true);
status_label.setFont(new java.awt.Font("Ubuntu", 1, 14)); // NOI18N status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
status_label.setDoubleBuffered(true); status_label.setDoubleBuffered(true);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());

View File

@ -60,7 +60,7 @@
<Component class="javax.swing.JButton" name="ok_button"> <Component class="javax.swing.JButton" name="ok_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="22" style="1"/> <Font name="Dialog" size="22" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="OK"/> <Property name="text" type="java.lang.String" value="OK"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -72,7 +72,7 @@
<Component class="javax.swing.JButton" name="cancel_button"> <Component class="javax.swing.JButton" name="cancel_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="22" style="1"/> <Font name="Dialog" size="22" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="CANCEL"/> <Property name="text" type="java.lang.String" value="CANCEL"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -85,7 +85,7 @@
<Properties> <Properties>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="22" style="1"/> <Font name="Dialog" size="22" style="1"/>
</Property> </Property>
</Properties> </Properties>
@ -293,7 +293,7 @@
<Component class="javax.swing.JLabel" name="megacrypter_reverse_warning_label"> <Component class="javax.swing.JLabel" name="megacrypter_reverse_warning_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="2"/> <Font name="Dialog" size="14" style="2"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: you MUST &quot;OPEN&quot; this port in your router/firewall."/> <Property name="text" type="java.lang.String" value="Note: you MUST &quot;OPEN&quot; this port in your router/firewall."/>
</Properties> </Properties>
@ -301,7 +301,7 @@
<Component class="javax.swing.JLabel" name="rec_download_slots_label"> <Component class="javax.swing.JLabel" name="rec_download_slots_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="2"/> <Font name="Dialog" size="14" style="2"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: it is recommended not to enable MULTI SLOT (unless you want to download +5GB file without PRO account, in which case you will MUST USE multi slot). "/> <Property name="text" type="java.lang.String" value="Note: it is recommended not to enable MULTI SLOT (unless you want to download +5GB file without PRO account, in which case you will MUST USE multi slot). "/>
</Properties> </Properties>
@ -311,7 +311,7 @@
<Component class="javax.swing.JCheckBox" name="megacrypter_reverse_checkbox"> <Component class="javax.swing.JCheckBox" name="megacrypter_reverse_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use Megacrypter reverse mode"/> <Property name="text" type="java.lang.String" value="Use Megacrypter reverse mode"/>
</Properties> </Properties>
@ -322,7 +322,7 @@
<Component class="javax.swing.JCheckBox" name="limit_download_speed_checkbox"> <Component class="javax.swing.JCheckBox" name="limit_download_speed_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Limit download speed"/> <Property name="text" type="java.lang.String" value="Limit download speed"/>
</Properties> </Properties>
@ -335,7 +335,7 @@
<Component class="javax.swing.JLabel" name="max_downloads_label"> <Component class="javax.swing.JLabel" name="max_downloads_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Max parallel downloads:"/> <Property name="text" type="java.lang.String" value="Max parallel downloads:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -344,7 +344,7 @@
<Component class="javax.swing.JCheckBox" name="smart_proxy_checkbox"> <Component class="javax.swing.JCheckBox" name="smart_proxy_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use SmartProxy (experimental)"/> <Property name="text" type="java.lang.String" value="Use SmartProxy (experimental)"/>
</Properties> </Properties>
@ -355,14 +355,14 @@
<Component class="javax.swing.JSpinner" name="max_down_speed_spinner"> <Component class="javax.swing.JSpinner" name="max_down_speed_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JCheckBox" name="verify_file_down_checkbox"> <Component class="javax.swing.JCheckBox" name="verify_file_down_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Verify file integrity (when download is finished)"/> <Property name="text" type="java.lang.String" value="Verify file integrity (when download is finished)"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -371,7 +371,7 @@
<Component class="javax.swing.JCheckBox" name="use_mega_account_down_checkbox"> <Component class="javax.swing.JCheckBox" name="use_mega_account_down_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use MEGA account for download/stream"/> <Property name="text" type="java.lang.String" value="Use MEGA account for download/stream"/>
</Properties> </Properties>
@ -382,7 +382,7 @@
<Component class="javax.swing.JLabel" name="smart_proxy_url_label"> <Component class="javax.swing.JLabel" name="smart_proxy_url_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="URL:"/> <Property name="text" type="java.lang.String" value="URL:"/>
</Properties> </Properties>
@ -390,7 +390,7 @@
<Component class="javax.swing.JSpinner" name="max_downloads_spinner"> <Component class="javax.swing.JSpinner" name="max_downloads_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -404,7 +404,7 @@
<Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox"> <Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="0"/> <StringArray count="0"/>
@ -419,7 +419,7 @@
<Component class="javax.swing.JButton" name="change_download_dir_button"> <Component class="javax.swing.JButton" name="change_download_dir_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Change it"/> <Property name="text" type="java.lang.String" value="Change it"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -431,7 +431,7 @@
<Component class="javax.swing.JLabel" name="max_down_speed_label"> <Component class="javax.swing.JLabel" name="max_down_speed_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Max speed (KB/s):"/> <Property name="text" type="java.lang.String" value="Max speed (KB/s):"/>
</Properties> </Properties>
@ -439,7 +439,7 @@
<Component class="javax.swing.JLabel" name="megacrypter_reverse_port_label"> <Component class="javax.swing.JLabel" name="megacrypter_reverse_port_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="TCP Port:"/> <Property name="text" type="java.lang.String" value="TCP Port:"/>
</Properties> </Properties>
@ -447,21 +447,21 @@
<Component class="javax.swing.JLabel" name="default_dir_label"> <Component class="javax.swing.JLabel" name="default_dir_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JTextField" name="smart_proxy_url_text"> <Component class="javax.swing.JTextField" name="smart_proxy_url_text">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JLabel" name="default_slots_down_label"> <Component class="javax.swing.JLabel" name="default_slots_down_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Default slots per file:"/> <Property name="text" type="java.lang.String" value="Default slots per file:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -470,7 +470,7 @@
<Component class="javax.swing.JLabel" name="use_mega_label"> <Component class="javax.swing.JLabel" name="use_mega_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Mega account:"/> <Property name="text" type="java.lang.String" value="Mega account:"/>
</Properties> </Properties>
@ -478,7 +478,7 @@
<Component class="javax.swing.JCheckBox" name="multi_slot_down_checkbox"> <Component class="javax.swing.JCheckBox" name="multi_slot_down_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use multi slot download mode (download restart needed)"/> <Property name="text" type="java.lang.String" value="Use multi slot download mode (download restart needed)"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -490,7 +490,7 @@
<Component class="javax.swing.JSpinner" name="default_slots_down_spinner"> <Component class="javax.swing.JSpinner" name="default_slots_down_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="value" type="java.lang.Object" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> <Property name="value" type="java.lang.Object" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
@ -501,14 +501,14 @@
<Component class="javax.swing.JSpinner" name="megacrypter_reverse_port_spinner"> <Component class="javax.swing.JSpinner" name="megacrypter_reverse_port_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JLabel" name="down_dir_label"> <Component class="javax.swing.JLabel" name="down_dir_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Default downloads directory:"/> <Property name="text" type="java.lang.String" value="Default downloads directory:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -517,7 +517,7 @@
<Component class="javax.swing.JLabel" name="jLabel2"> <Component class="javax.swing.JLabel" name="jLabel2">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="14" style="2"/> <Font name="Dialog" size="14" style="2"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: it is recomended to enable MULTI SLOT and be patient while MegaBasterd filters down proxies. MegaBasterd will try first to download chunk without proxy. (Use CTRL+V in order to paste URL)"/> <Property name="text" type="java.lang.String" value="Note: it is recomended to enable MULTI SLOT and be patient while MegaBasterd filters down proxies. MegaBasterd will try first to download chunk without proxy. (Use CTRL+V in order to paste URL)"/>
</Properties> </Properties>
@ -614,7 +614,7 @@
<Component class="javax.swing.JLabel" name="default_slots_up_label"> <Component class="javax.swing.JLabel" name="default_slots_up_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Default slots per file:"/> <Property name="text" type="java.lang.String" value="Default slots per file:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -623,7 +623,7 @@
<Component class="javax.swing.JLabel" name="max_uploads_label"> <Component class="javax.swing.JLabel" name="max_uploads_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Max parallel uploads:"/> <Property name="text" type="java.lang.String" value="Max parallel uploads:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -632,7 +632,7 @@
<Component class="javax.swing.JSpinner" name="default_slots_up_spinner"> <Component class="javax.swing.JSpinner" name="default_slots_up_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="value" type="java.lang.Object" editor="org.netbeans.modules.form.RADConnectionPropertyEditor"> <Property name="value" type="java.lang.Object" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
@ -643,7 +643,7 @@
<Component class="javax.swing.JSpinner" name="max_uploads_spinner"> <Component class="javax.swing.JSpinner" name="max_uploads_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -651,7 +651,7 @@
<Component class="javax.swing.JCheckBox" name="multi_slot_up_checkbox"> <Component class="javax.swing.JCheckBox" name="multi_slot_up_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use multi slot upload mode (upload restart needed)"/> <Property name="text" type="java.lang.String" value="Use multi slot upload mode (upload restart needed)"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -663,7 +663,7 @@
<Component class="javax.swing.JLabel" name="max_up_speed_label"> <Component class="javax.swing.JLabel" name="max_up_speed_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Max speed (KB/s):"/> <Property name="text" type="java.lang.String" value="Max speed (KB/s):"/>
</Properties> </Properties>
@ -671,14 +671,14 @@
<Component class="javax.swing.JSpinner" name="max_up_speed_spinner"> <Component class="javax.swing.JSpinner" name="max_up_speed_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
</Properties> </Properties>
</Component> </Component>
<Component class="javax.swing.JCheckBox" name="limit_upload_speed_checkbox"> <Component class="javax.swing.JCheckBox" name="limit_upload_speed_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Limit upload speed"/> <Property name="text" type="java.lang.String" value="Limit upload speed"/>
</Properties> </Properties>
@ -693,7 +693,7 @@
<Component class="javax.swing.JLabel" name="rec_upload_slots_label"> <Component class="javax.swing.JLabel" name="rec_upload_slots_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="2"/> <Font name="Dialog" size="16" style="2"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: MULTI-SLOT it&apos;s more robust against upload errors but it might be slower."/> <Property name="text" type="java.lang.String" value="Note: MULTI-SLOT it&apos;s more robust against upload errors but it might be slower."/>
</Properties> </Properties>
@ -792,7 +792,7 @@
<Component class="javax.swing.JTable" name="mega_accounts_table"> <Component class="javax.swing.JTable" name="mega_accounts_table">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="2" rowCount="0"> <Table columnCount="2" rowCount="0">
@ -812,7 +812,7 @@
<Component class="javax.swing.JLabel" name="mega_accounts_label"> <Component class="javax.swing.JLabel" name="mega_accounts_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Your MEGA accounts:"/> <Property name="text" type="java.lang.String" value="Your MEGA accounts:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -821,7 +821,7 @@
<Component class="javax.swing.JButton" name="remove_mega_account_button"> <Component class="javax.swing.JButton" name="remove_mega_account_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Remove selected"/> <Property name="text" type="java.lang.String" value="Remove selected"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -834,7 +834,7 @@
<Component class="javax.swing.JButton" name="add_mega_account_button"> <Component class="javax.swing.JButton" name="add_mega_account_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Add account"/> <Property name="text" type="java.lang.String" value="Add account"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -846,7 +846,7 @@
<Component class="javax.swing.JCheckBox" name="encrypt_pass_checkbox"> <Component class="javax.swing.JCheckBox" name="encrypt_pass_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Encrypt on disk sensitive information"/> <Property name="text" type="java.lang.String" value="Encrypt on disk sensitive information"/>
</Properties> </Properties>
@ -860,7 +860,7 @@
<Color blue="0" green="33" red="ff" type="rgb"/> <Color blue="0" green="33" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -877,7 +877,7 @@
<Color blue="33" green="99" red="0" type="rgb"/> <Color blue="33" green="99" red="0" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -892,7 +892,7 @@
<Properties> <Properties>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="12" style="0"/> <Font name="Dialog" size="12" style="0"/>
</Property> </Property>
</Properties> </Properties>
@ -901,7 +901,7 @@
<Component class="javax.swing.JTable" name="elc_accounts_table"> <Component class="javax.swing.JTable" name="elc_accounts_table">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor"> <Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="3" rowCount="0"> <Table columnCount="3" rowCount="0">
@ -918,7 +918,7 @@
<Component class="javax.swing.JLabel" name="elc_accounts_label"> <Component class="javax.swing.JLabel" name="elc_accounts_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Your ELC accounts:"/> <Property name="text" type="java.lang.String" value="Your ELC accounts:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -927,7 +927,7 @@
<Component class="javax.swing.JButton" name="remove_elc_account_button"> <Component class="javax.swing.JButton" name="remove_elc_account_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Remove selected"/> <Property name="text" type="java.lang.String" value="Remove selected"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -940,7 +940,7 @@
<Component class="javax.swing.JButton" name="add_elc_account_button"> <Component class="javax.swing.JButton" name="add_elc_account_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Add account"/> <Property name="text" type="java.lang.String" value="Add account"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -952,7 +952,7 @@
<Component class="javax.swing.JLabel" name="jLabel1"> <Component class="javax.swing.JLabel" name="jLabel1">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="2"/> <Font name="Dialog" size="16" style="2"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Note: you can use a (optional) alias for your email addresses -&gt; bob@supermail.com#bob_mail"/> <Property name="text" type="java.lang.String" value="Note: you can use a (optional) alias for your email addresses -&gt; bob@supermail.com#bob_mail"/>
</Properties> </Properties>
@ -1056,7 +1056,7 @@
<Component class="javax.swing.JLabel" name="proxy_host_label"> <Component class="javax.swing.JLabel" name="proxy_host_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Host:"/> <Property name="text" type="java.lang.String" value="Host:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -1066,7 +1066,7 @@
<Component class="javax.swing.JTextField" name="proxy_host_textfield"> <Component class="javax.swing.JTextField" name="proxy_host_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -1078,7 +1078,7 @@
<Component class="javax.swing.JLabel" name="proxy_port_label"> <Component class="javax.swing.JLabel" name="proxy_port_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Port:"/> <Property name="text" type="java.lang.String" value="Port:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -1088,7 +1088,7 @@
<Component class="javax.swing.JTextField" name="proxy_port_textfield"> <Component class="javax.swing.JTextField" name="proxy_port_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -1100,7 +1100,7 @@
<Component class="javax.swing.JCheckBox" name="use_proxy_checkbox"> <Component class="javax.swing.JCheckBox" name="use_proxy_checkbox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use HTTP(S) PROXY (app restart required)"/> <Property name="text" type="java.lang.String" value="Use HTTP(S) PROXY (app restart required)"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -1112,7 +1112,7 @@
<Component class="javax.swing.JLabel" name="proxy_warning_label"> <Component class="javax.swing.JLabel" name="proxy_warning_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="0"/> <Font name="Dialog" size="16" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Warning: Megabasterd will use this proxy for ALL connections."/> <Property name="text" type="java.lang.String" value="Warning: Megabasterd will use this proxy for ALL connections."/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -1161,7 +1161,7 @@
<Component class="javax.swing.JLabel" name="proxy_user_label"> <Component class="javax.swing.JLabel" name="proxy_user_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Username:"/> <Property name="text" type="java.lang.String" value="Username:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -1171,7 +1171,7 @@
<Component class="javax.swing.JTextField" name="proxy_user_textfield"> <Component class="javax.swing.JTextField" name="proxy_user_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -1183,7 +1183,7 @@
<Component class="javax.swing.JLabel" name="proxy_pass_label"> <Component class="javax.swing.JLabel" name="proxy_pass_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Password:"/> <Property name="text" type="java.lang.String" value="Password:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -1193,7 +1193,7 @@
<Component class="javax.swing.JPasswordField" name="proxy_pass_textfield"> <Component class="javax.swing.JPasswordField" name="proxy_pass_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="0"/> <Font name="Dialog" size="20" style="0"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="jPasswordField1"/> <Property name="text" type="java.lang.String" value="jPasswordField1"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>
@ -1210,7 +1210,7 @@
<Component class="javax.swing.JLabel" name="status"> <Component class="javax.swing.JLabel" name="status">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="3"/> <Font name="Dialog" size="18" style="3"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="99" red="33" type="rgb"/> <Color blue="ff" green="99" red="33" type="rgb"/>

View File

@ -566,7 +566,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Settings"); setTitle("Settings");
ok_button.setFont(new java.awt.Font("Ubuntu", 1, 22)); // NOI18N ok_button.setFont(new java.awt.Font("Dialog", 1, 22)); // NOI18N
ok_button.setText("OK"); ok_button.setText("OK");
ok_button.setDoubleBuffered(true); ok_button.setDoubleBuffered(true);
ok_button.addActionListener(new java.awt.event.ActionListener() { ok_button.addActionListener(new java.awt.event.ActionListener() {
@ -575,7 +575,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
cancel_button.setFont(new java.awt.Font("Ubuntu", 1, 22)); // NOI18N cancel_button.setFont(new java.awt.Font("Dialog", 1, 22)); // NOI18N
cancel_button.setText("CANCEL"); cancel_button.setText("CANCEL");
cancel_button.setDoubleBuffered(true); cancel_button.setDoubleBuffered(true);
cancel_button.addActionListener(new java.awt.event.ActionListener() { cancel_button.addActionListener(new java.awt.event.ActionListener() {
@ -585,17 +585,17 @@ public final class SettingsDialog extends javax.swing.JDialog {
}); });
jTabbedPane1.setDoubleBuffered(true); jTabbedPane1.setDoubleBuffered(true);
jTabbedPane1.setFont(new java.awt.Font("Ubuntu", 1, 22)); // NOI18N jTabbedPane1.setFont(new java.awt.Font("Dialog", 1, 22)); // NOI18N
jScrollPane2.setBorder(null); jScrollPane2.setBorder(null);
megacrypter_reverse_warning_label.setFont(new java.awt.Font("Ubuntu", 2, 14)); // NOI18N megacrypter_reverse_warning_label.setFont(new java.awt.Font("Dialog", 2, 14)); // NOI18N
megacrypter_reverse_warning_label.setText("Note: you MUST \"OPEN\" this port in your router/firewall."); megacrypter_reverse_warning_label.setText("Note: you MUST \"OPEN\" this port in your router/firewall.");
rec_download_slots_label.setFont(new java.awt.Font("Ubuntu", 2, 14)); // NOI18N rec_download_slots_label.setFont(new java.awt.Font("Dialog", 2, 14)); // NOI18N
rec_download_slots_label.setText("Note: it is recommended not to enable MULTI SLOT (unless you want to download +5GB file without PRO account, in which case you will MUST USE multi slot). "); rec_download_slots_label.setText("Note: it is recommended not to enable MULTI SLOT (unless you want to download +5GB file without PRO account, in which case you will MUST USE multi slot). ");
megacrypter_reverse_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N megacrypter_reverse_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
megacrypter_reverse_checkbox.setText("Use Megacrypter reverse mode"); megacrypter_reverse_checkbox.setText("Use Megacrypter reverse mode");
megacrypter_reverse_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { megacrypter_reverse_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) { public void stateChanged(javax.swing.event.ChangeEvent evt) {
@ -603,7 +603,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
limit_download_speed_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N limit_download_speed_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
limit_download_speed_checkbox.setText("Limit download speed"); limit_download_speed_checkbox.setText("Limit download speed");
limit_download_speed_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { limit_download_speed_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) { public void stateChanged(javax.swing.event.ChangeEvent evt) {
@ -611,11 +611,11 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
max_downloads_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N max_downloads_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
max_downloads_label.setText("Max parallel downloads:"); max_downloads_label.setText("Max parallel downloads:");
max_downloads_label.setDoubleBuffered(true); max_downloads_label.setDoubleBuffered(true);
smart_proxy_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N smart_proxy_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
smart_proxy_checkbox.setText("Use SmartProxy (experimental)"); smart_proxy_checkbox.setText("Use SmartProxy (experimental)");
smart_proxy_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { smart_proxy_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) { public void stateChanged(javax.swing.event.ChangeEvent evt) {
@ -623,13 +623,13 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
max_down_speed_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_down_speed_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
verify_file_down_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N verify_file_down_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
verify_file_down_checkbox.setText("Verify file integrity (when download is finished)"); verify_file_down_checkbox.setText("Verify file integrity (when download is finished)");
verify_file_down_checkbox.setDoubleBuffered(true); verify_file_down_checkbox.setDoubleBuffered(true);
use_mega_account_down_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N use_mega_account_down_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
use_mega_account_down_checkbox.setText("Use MEGA account for download/stream"); use_mega_account_down_checkbox.setText("Use MEGA account for download/stream");
use_mega_account_down_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { use_mega_account_down_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) { public void stateChanged(javax.swing.event.ChangeEvent evt) {
@ -637,15 +637,15 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
smart_proxy_url_label.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N smart_proxy_url_label.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
smart_proxy_url_label.setText("URL:"); smart_proxy_url_label.setText("URL:");
max_downloads_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_downloads_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
max_downloads_spinner.setDoubleBuffered(true); max_downloads_spinner.setDoubleBuffered(true);
use_mega_account_down_combobox.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N use_mega_account_down_combobox.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
change_download_dir_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N change_download_dir_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
change_download_dir_button.setText("Change it"); change_download_dir_button.setText("Change it");
change_download_dir_button.setDoubleBuffered(true); change_download_dir_button.setDoubleBuffered(true);
change_download_dir_button.addActionListener(new java.awt.event.ActionListener() { change_download_dir_button.addActionListener(new java.awt.event.ActionListener() {
@ -654,24 +654,24 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
max_down_speed_label.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_down_speed_label.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
max_down_speed_label.setText("Max speed (KB/s):"); max_down_speed_label.setText("Max speed (KB/s):");
megacrypter_reverse_port_label.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N megacrypter_reverse_port_label.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
megacrypter_reverse_port_label.setText("TCP Port:"); megacrypter_reverse_port_label.setText("TCP Port:");
default_dir_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N default_dir_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
smart_proxy_url_text.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N smart_proxy_url_text.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
default_slots_down_label.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N default_slots_down_label.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
default_slots_down_label.setText("Default slots per file:"); default_slots_down_label.setText("Default slots per file:");
default_slots_down_label.setDoubleBuffered(true); default_slots_down_label.setDoubleBuffered(true);
use_mega_label.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N use_mega_label.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
use_mega_label.setText("Mega account:"); use_mega_label.setText("Mega account:");
multi_slot_down_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N multi_slot_down_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
multi_slot_down_checkbox.setText("Use multi slot download mode (download restart needed)"); multi_slot_down_checkbox.setText("Use multi slot download mode (download restart needed)");
multi_slot_down_checkbox.setDoubleBuffered(true); multi_slot_down_checkbox.setDoubleBuffered(true);
multi_slot_down_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { multi_slot_down_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
@ -680,17 +680,17 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
default_slots_down_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N default_slots_down_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
default_slots_down_spinner.setDoubleBuffered(true); default_slots_down_spinner.setDoubleBuffered(true);
default_slots_down_spinner.setValue(2); default_slots_down_spinner.setValue(2);
megacrypter_reverse_port_spinner.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N megacrypter_reverse_port_spinner.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
down_dir_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N down_dir_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
down_dir_label.setText("Default downloads directory:"); down_dir_label.setText("Default downloads directory:");
down_dir_label.setDoubleBuffered(true); down_dir_label.setDoubleBuffered(true);
jLabel2.setFont(new java.awt.Font("Ubuntu", 2, 14)); // NOI18N jLabel2.setFont(new java.awt.Font("Dialog", 2, 14)); // NOI18N
jLabel2.setText("Note: it is recomended to enable MULTI SLOT and be patient while MegaBasterd filters down proxies. MegaBasterd will try first to download chunk without proxy. (Use CTRL+V in order to paste URL)"); jLabel2.setText("Note: it is recomended to enable MULTI SLOT and be patient while MegaBasterd filters down proxies. MegaBasterd will try first to download chunk without proxy. (Use CTRL+V in order to paste URL)");
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
@ -845,22 +845,22 @@ public final class SettingsDialog extends javax.swing.JDialog {
jTabbedPane1.addTab("Downloads", downloads_panel); jTabbedPane1.addTab("Downloads", downloads_panel);
default_slots_up_label.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N default_slots_up_label.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
default_slots_up_label.setText("Default slots per file:"); default_slots_up_label.setText("Default slots per file:");
default_slots_up_label.setDoubleBuffered(true); default_slots_up_label.setDoubleBuffered(true);
max_uploads_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N max_uploads_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
max_uploads_label.setText("Max parallel uploads:"); max_uploads_label.setText("Max parallel uploads:");
max_uploads_label.setDoubleBuffered(true); max_uploads_label.setDoubleBuffered(true);
default_slots_up_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N default_slots_up_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
default_slots_up_spinner.setDoubleBuffered(true); default_slots_up_spinner.setDoubleBuffered(true);
default_slots_up_spinner.setValue(2); default_slots_up_spinner.setValue(2);
max_uploads_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_uploads_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
max_uploads_spinner.setDoubleBuffered(true); max_uploads_spinner.setDoubleBuffered(true);
multi_slot_up_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N multi_slot_up_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
multi_slot_up_checkbox.setText("Use multi slot upload mode (upload restart needed)"); multi_slot_up_checkbox.setText("Use multi slot upload mode (upload restart needed)");
multi_slot_up_checkbox.setDoubleBuffered(true); multi_slot_up_checkbox.setDoubleBuffered(true);
multi_slot_up_checkbox.addActionListener(new java.awt.event.ActionListener() { multi_slot_up_checkbox.addActionListener(new java.awt.event.ActionListener() {
@ -869,12 +869,12 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
max_up_speed_label.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_up_speed_label.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
max_up_speed_label.setText("Max speed (KB/s):"); max_up_speed_label.setText("Max speed (KB/s):");
max_up_speed_spinner.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N max_up_speed_spinner.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
limit_upload_speed_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N limit_upload_speed_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
limit_upload_speed_checkbox.setText("Limit upload speed"); limit_upload_speed_checkbox.setText("Limit upload speed");
limit_upload_speed_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { limit_upload_speed_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) { public void stateChanged(javax.swing.event.ChangeEvent evt) {
@ -882,7 +882,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
rec_upload_slots_label.setFont(new java.awt.Font("Ubuntu", 2, 16)); // NOI18N rec_upload_slots_label.setFont(new java.awt.Font("Dialog", 2, 16)); // NOI18N
rec_upload_slots_label.setText("Note: MULTI-SLOT it's more robust against upload errors but it might be slower."); rec_upload_slots_label.setText("Note: MULTI-SLOT it's more robust against upload errors but it might be slower.");
javax.swing.GroupLayout uploads_panelLayout = new javax.swing.GroupLayout(uploads_panel); javax.swing.GroupLayout uploads_panelLayout = new javax.swing.GroupLayout(uploads_panel);
@ -947,7 +947,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
jTabbedPane1.addTab("Uploads", uploads_panel); jTabbedPane1.addTab("Uploads", uploads_panel);
mega_accounts_table.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N mega_accounts_table.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
mega_accounts_table.setModel(new javax.swing.table.DefaultTableModel( mega_accounts_table.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] { new Object [][] {
@ -969,11 +969,11 @@ public final class SettingsDialog extends javax.swing.JDialog {
mega_accounts_table.setRowHeight(24); mega_accounts_table.setRowHeight(24);
mega_accounts_scrollpane.setViewportView(mega_accounts_table); mega_accounts_scrollpane.setViewportView(mega_accounts_table);
mega_accounts_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N mega_accounts_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
mega_accounts_label.setText("Your MEGA accounts:"); mega_accounts_label.setText("Your MEGA accounts:");
mega_accounts_label.setDoubleBuffered(true); mega_accounts_label.setDoubleBuffered(true);
remove_mega_account_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N remove_mega_account_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
remove_mega_account_button.setText("Remove selected"); remove_mega_account_button.setText("Remove selected");
remove_mega_account_button.setDoubleBuffered(true); remove_mega_account_button.setDoubleBuffered(true);
remove_mega_account_button.setEnabled(false); remove_mega_account_button.setEnabled(false);
@ -983,7 +983,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
add_mega_account_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N add_mega_account_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
add_mega_account_button.setText("Add account"); add_mega_account_button.setText("Add account");
add_mega_account_button.setDoubleBuffered(true); add_mega_account_button.setDoubleBuffered(true);
add_mega_account_button.addActionListener(new java.awt.event.ActionListener() { add_mega_account_button.addActionListener(new java.awt.event.ActionListener() {
@ -992,7 +992,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
encrypt_pass_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N encrypt_pass_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
encrypt_pass_checkbox.setText("Encrypt on disk sensitive information"); encrypt_pass_checkbox.setText("Encrypt on disk sensitive information");
encrypt_pass_checkbox.addActionListener(new java.awt.event.ActionListener() { encrypt_pass_checkbox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -1001,7 +1001,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
}); });
delete_all_accounts_button.setBackground(new java.awt.Color(255, 51, 0)); delete_all_accounts_button.setBackground(new java.awt.Color(255, 51, 0));
delete_all_accounts_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N delete_all_accounts_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
delete_all_accounts_button.setForeground(new java.awt.Color(255, 255, 255)); delete_all_accounts_button.setForeground(new java.awt.Color(255, 255, 255));
delete_all_accounts_button.setText("RESET ACCOUNTS"); delete_all_accounts_button.setText("RESET ACCOUNTS");
delete_all_accounts_button.addActionListener(new java.awt.event.ActionListener() { delete_all_accounts_button.addActionListener(new java.awt.event.ActionListener() {
@ -1011,7 +1011,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
}); });
unlock_accounts_button.setBackground(new java.awt.Color(0, 153, 51)); unlock_accounts_button.setBackground(new java.awt.Color(0, 153, 51));
unlock_accounts_button.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N unlock_accounts_button.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
unlock_accounts_button.setForeground(new java.awt.Color(255, 255, 255)); unlock_accounts_button.setForeground(new java.awt.Color(255, 255, 255));
unlock_accounts_button.setText("Unlock accounts"); unlock_accounts_button.setText("Unlock accounts");
unlock_accounts_button.addActionListener(new java.awt.event.ActionListener() { unlock_accounts_button.addActionListener(new java.awt.event.ActionListener() {
@ -1021,9 +1021,9 @@ public final class SettingsDialog extends javax.swing.JDialog {
}); });
elc_accounts_scrollpane.setDoubleBuffered(true); elc_accounts_scrollpane.setDoubleBuffered(true);
elc_accounts_scrollpane.setFont(new java.awt.Font("Ubuntu", 0, 12)); // NOI18N elc_accounts_scrollpane.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
elc_accounts_table.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N elc_accounts_table.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
elc_accounts_table.setModel(new javax.swing.table.DefaultTableModel( elc_accounts_table.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] { new Object [][] {
@ -1043,11 +1043,11 @@ public final class SettingsDialog extends javax.swing.JDialog {
elc_accounts_table.setRowHeight(24); elc_accounts_table.setRowHeight(24);
elc_accounts_scrollpane.setViewportView(elc_accounts_table); elc_accounts_scrollpane.setViewportView(elc_accounts_table);
elc_accounts_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N elc_accounts_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
elc_accounts_label.setText("Your ELC accounts:"); elc_accounts_label.setText("Your ELC accounts:");
elc_accounts_label.setDoubleBuffered(true); elc_accounts_label.setDoubleBuffered(true);
remove_elc_account_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N remove_elc_account_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
remove_elc_account_button.setText("Remove selected"); remove_elc_account_button.setText("Remove selected");
remove_elc_account_button.setDoubleBuffered(true); remove_elc_account_button.setDoubleBuffered(true);
remove_elc_account_button.setEnabled(false); remove_elc_account_button.setEnabled(false);
@ -1057,7 +1057,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
add_elc_account_button.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N add_elc_account_button.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
add_elc_account_button.setText("Add account"); add_elc_account_button.setText("Add account");
add_elc_account_button.setDoubleBuffered(true); add_elc_account_button.setDoubleBuffered(true);
add_elc_account_button.addActionListener(new java.awt.event.ActionListener() { add_elc_account_button.addActionListener(new java.awt.event.ActionListener() {
@ -1066,7 +1066,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
jLabel1.setFont(new java.awt.Font("Ubuntu", 2, 16)); // NOI18N jLabel1.setFont(new java.awt.Font("Dialog", 2, 16)); // NOI18N
jLabel1.setText("Note: you can use a (optional) alias for your email addresses -> bob@supermail.com#bob_mail"); jLabel1.setText("Note: you can use a (optional) alias for your email addresses -> bob@supermail.com#bob_mail");
javax.swing.GroupLayout accounts_panelLayout = new javax.swing.GroupLayout(accounts_panel); javax.swing.GroupLayout accounts_panelLayout = new javax.swing.GroupLayout(accounts_panel);
@ -1133,27 +1133,27 @@ public final class SettingsDialog extends javax.swing.JDialog {
proxy_panel.setBorder(javax.swing.BorderFactory.createTitledBorder("Proxy settings")); proxy_panel.setBorder(javax.swing.BorderFactory.createTitledBorder("Proxy settings"));
proxy_host_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N proxy_host_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
proxy_host_label.setText("Host:"); proxy_host_label.setText("Host:");
proxy_host_label.setDoubleBuffered(true); proxy_host_label.setDoubleBuffered(true);
proxy_host_label.setEnabled(false); proxy_host_label.setEnabled(false);
proxy_host_textfield.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N proxy_host_textfield.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
proxy_host_textfield.setDoubleBuffered(true); proxy_host_textfield.setDoubleBuffered(true);
proxy_host_textfield.setEnabled(false); proxy_host_textfield.setEnabled(false);
proxy_host_textfield.addMouseListener(new ContextMenuMouseListener()); proxy_host_textfield.addMouseListener(new ContextMenuMouseListener());
proxy_port_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N proxy_port_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
proxy_port_label.setText("Port:"); proxy_port_label.setText("Port:");
proxy_port_label.setDoubleBuffered(true); proxy_port_label.setDoubleBuffered(true);
proxy_port_label.setEnabled(false); proxy_port_label.setEnabled(false);
proxy_port_textfield.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N proxy_port_textfield.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
proxy_port_textfield.setDoubleBuffered(true); proxy_port_textfield.setDoubleBuffered(true);
proxy_port_textfield.setEnabled(false); proxy_port_textfield.setEnabled(false);
proxy_port_textfield.addMouseListener(new ContextMenuMouseListener()); proxy_port_textfield.addMouseListener(new ContextMenuMouseListener());
use_proxy_checkbox.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N use_proxy_checkbox.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
use_proxy_checkbox.setText("Use HTTP(S) PROXY (app restart required)"); use_proxy_checkbox.setText("Use HTTP(S) PROXY (app restart required)");
use_proxy_checkbox.setDoubleBuffered(true); use_proxy_checkbox.setDoubleBuffered(true);
use_proxy_checkbox.addChangeListener(new javax.swing.event.ChangeListener() { use_proxy_checkbox.addChangeListener(new javax.swing.event.ChangeListener() {
@ -1162,28 +1162,28 @@ public final class SettingsDialog extends javax.swing.JDialog {
} }
}); });
proxy_warning_label.setFont(new java.awt.Font("Ubuntu", 0, 16)); // NOI18N proxy_warning_label.setFont(new java.awt.Font("Dialog", 0, 16)); // NOI18N
proxy_warning_label.setText("Warning: Megabasterd will use this proxy for ALL connections."); proxy_warning_label.setText("Warning: Megabasterd will use this proxy for ALL connections.");
proxy_warning_label.setEnabled(false); proxy_warning_label.setEnabled(false);
proxy_auth_panel.setBorder(javax.swing.BorderFactory.createTitledBorder("Authentication")); proxy_auth_panel.setBorder(javax.swing.BorderFactory.createTitledBorder("Authentication"));
proxy_user_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N proxy_user_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
proxy_user_label.setText("Username:"); proxy_user_label.setText("Username:");
proxy_user_label.setDoubleBuffered(true); proxy_user_label.setDoubleBuffered(true);
proxy_user_label.setEnabled(false); proxy_user_label.setEnabled(false);
proxy_user_textfield.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N proxy_user_textfield.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
proxy_user_textfield.setDoubleBuffered(true); proxy_user_textfield.setDoubleBuffered(true);
proxy_user_textfield.setEnabled(false); proxy_user_textfield.setEnabled(false);
proxy_user_textfield.addMouseListener(new ContextMenuMouseListener()); proxy_user_textfield.addMouseListener(new ContextMenuMouseListener());
proxy_pass_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N proxy_pass_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
proxy_pass_label.setText("Password:"); proxy_pass_label.setText("Password:");
proxy_pass_label.setDoubleBuffered(true); proxy_pass_label.setDoubleBuffered(true);
proxy_pass_label.setEnabled(false); proxy_pass_label.setEnabled(false);
proxy_pass_textfield.setFont(new java.awt.Font("Ubuntu", 0, 20)); // NOI18N proxy_pass_textfield.setFont(new java.awt.Font("Dialog", 0, 20)); // NOI18N
proxy_pass_textfield.setText("jPasswordField1"); proxy_pass_textfield.setText("jPasswordField1");
proxy_pass_textfield.setEnabled(false); proxy_pass_textfield.setEnabled(false);
@ -1276,7 +1276,7 @@ public final class SettingsDialog extends javax.swing.JDialog {
jTabbedPane1.addTab("Advanced", jPanel1); jTabbedPane1.addTab("Advanced", jPanel1);
status.setFont(new java.awt.Font("Ubuntu", 3, 18)); // NOI18N status.setFont(new java.awt.Font("Dialog", 3, 18)); // NOI18N
status.setForeground(new java.awt.Color(51, 153, 255)); status.setForeground(new java.awt.Color(51, 153, 255));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());

View File

@ -63,7 +63,7 @@
<Component class="javax.swing.JLabel" name="put_label"> <Component class="javax.swing.JLabel" name="put_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Put your MEGA/MegaCrypter/ELC link here in order to get a streaming link:"/> <Property name="text" type="java.lang.String" value="Put your MEGA/MegaCrypter/ELC link here in order to get a streaming link:"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -75,7 +75,7 @@
<Color blue="ff" green="cc" red="66" type="rgb"/> <Color blue="ff" green="cc" red="66" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="24" style="1"/> <Font name="Dialog" size="24" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -90,7 +90,7 @@
<Component class="javax.swing.JTextField" name="original_link_textfield"> <Component class="javax.swing.JTextField" name="original_link_textfield">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -101,7 +101,7 @@
<Component class="javax.swing.JLabel" name="use_mega_account_down_label"> <Component class="javax.swing.JLabel" name="use_mega_account_down_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Use this account for streaming:"/> <Property name="text" type="java.lang.String" value="Use this account for streaming:"/>
</Properties> </Properties>
@ -109,7 +109,7 @@
<Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox"> <Component class="javax.swing.JComboBox" name="use_mega_account_down_combobox">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="0"/> <StringArray count="0"/>

View File

@ -3,6 +3,8 @@ package megabasterd;
import java.awt.Dialog; import java.awt.Dialog;
import java.awt.event.WindowEvent; import java.awt.event.WindowEvent;
import static java.awt.event.WindowEvent.WINDOW_CLOSING; import static java.awt.event.WindowEvent.WINDOW_CLOSING;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashSet; import java.util.HashSet;
import java.util.logging.Level; import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
@ -91,12 +93,12 @@ public final class StreamerDialog extends javax.swing.JDialog implements Clipboa
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("Streamer"); setTitle("Streamer");
put_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N put_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
put_label.setText("Put your MEGA/MegaCrypter/ELC link here in order to get a streaming link:"); put_label.setText("Put your MEGA/MegaCrypter/ELC link here in order to get a streaming link:");
put_label.setDoubleBuffered(true); put_label.setDoubleBuffered(true);
dance_button.setBackground(new java.awt.Color(102, 204, 255)); dance_button.setBackground(new java.awt.Color(102, 204, 255));
dance_button.setFont(new java.awt.Font("Ubuntu", 1, 24)); // NOI18N dance_button.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N
dance_button.setForeground(new java.awt.Color(255, 255, 255)); dance_button.setForeground(new java.awt.Color(255, 255, 255));
dance_button.setText("Let's dance, baby"); dance_button.setText("Let's dance, baby");
dance_button.setDoubleBuffered(true); dance_button.setDoubleBuffered(true);
@ -106,13 +108,13 @@ public final class StreamerDialog extends javax.swing.JDialog implements Clipboa
} }
}); });
original_link_textfield.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N original_link_textfield.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
original_link_textfield.setDoubleBuffered(true); original_link_textfield.setDoubleBuffered(true);
use_mega_account_down_label.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N use_mega_account_down_label.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
use_mega_account_down_label.setText("Use this account for streaming:"); use_mega_account_down_label.setText("Use this account for streaming:");
use_mega_account_down_combobox.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N use_mega_account_down_combobox.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
use_mega_account_down_combobox.addItemListener(new java.awt.event.ItemListener() { use_mega_account_down_combobox.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) { public void itemStateChanged(java.awt.event.ItemEvent evt) {
use_mega_account_down_comboboxItemStateChanged(evt); use_mega_account_down_comboboxItemStateChanged(evt);
@ -168,72 +170,76 @@ public final class StreamerDialog extends javax.swing.JDialog implements Clipboa
@Override @Override
public void run() { public void run() {
boolean error = false; try {
boolean error = false;
String stream_link = null; String stream_link = null;
String link = ((String) swingReflectionInvokeAndWaitForReturn("getText", original_link_textfield)).trim(); String link = URLDecoder.decode((String) swingReflectionInvokeAndWaitForReturn("getText", original_link_textfield), "UTF-8").trim();
if (link.length() > 0) { if (link.length() > 0) {
try { try {
if (findFirstRegex("://enc", link, 0) != null) { if (findFirstRegex("://enc", link, 0) != null) {
link = CryptTools.decryptMegaDownloaderLink(link); link = CryptTools.decryptMegaDownloaderLink(link);
} else if (findFirstRegex("://elc", link, 0) != null) { } else if (findFirstRegex("://elc", link, 0) != null) {
HashSet links = CryptTools.decryptELC(link, ((MainPanelView) tthis.getParent()).getMain_panel()); HashSet links = CryptTools.decryptELC(link, ((MainPanelView) tthis.getParent()).getMain_panel());
if (links != null) { if (links != null) {
link = (String) links.iterator().next(); link = (String) links.iterator().next();
}
} }
} catch (Exception ex) {
error = true;
Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex);
} }
} catch (Exception ex) { String data;
error = true; if (findFirstRegex("://mega(\\.co)?\\.nz/#[^fF]", link, 0) != null || findFirstRegex("https?://[^/]+/![^!]+![0-9a-fA-F]+", link, 0) != null) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex); data = Bin2UrlBASE64(((_last_selected_account != null ? _last_selected_account : "") + "|" + link).getBytes());
}
String data; stream_link = "http://localhost:1337/video/" + data;
if (findFirstRegex("://mega(\\.co)?\\.nz/#[^fF]", link, 0) != null || findFirstRegex("https?://[^/]+/![^!]+![0-9a-fA-F]+", link, 0) != null) { } else {
data = Bin2UrlBASE64(((_last_selected_account != null ? _last_selected_account : "") + "|" + link).getBytes()); error = true;
}
stream_link = "http://localhost:1337/video/" + data;
} else { } else {
error = true; error = true;
} }
} else { if (error) {
error = true; JOptionPane.showMessageDialog(tthis, "Please, paste a Mega/MegaCrypter/ELC link!", "Error", JOptionPane.ERROR_MESSAGE);
}
if (error) { swingReflectionInvoke("setText", original_link_textfield, "");
JOptionPane.showMessageDialog(tthis, "Please, paste a Mega/MegaCrypter/ELC link!", "Error", JOptionPane.ERROR_MESSAGE); swingReflectionInvoke("setEnabled", dance_button, true);
swingReflectionInvoke("setText", original_link_textfield, ""); swingReflectionInvoke("setEnabled", original_link_textfield, true);
swingReflectionInvoke("setEnabled", dance_button, true); } else {
swingReflectionInvoke("setEnabled", original_link_textfield, true); _mainPanelView.getMain_panel().getClipboardspy().detachObserver((ClipboardChangeObserver) tthis);
copyTextToClipboard(stream_link);
} else { JOptionPane.showMessageDialog(tthis, "Streaming link was copied to clipboard!\nRemember to keep MegaBasterd running in background while playing content. (I recommend to use MPLAYER)");
dispose();
_mainPanelView.getMain_panel().getClipboardspy().detachObserver((ClipboardChangeObserver) tthis); getParent().dispatchEvent(new WindowEvent(tthis, WINDOW_CLOSING));
copyTextToClipboard(stream_link); }
JOptionPane.showMessageDialog(tthis, "Streaming link was copied to clipboard!\nRemember to keep MegaBasterd running in background while playing content. (I recommend to use MPLAYER)"); } catch (UnsupportedEncodingException ex) {
dispose(); Logger.getLogger(StreamerDialog.class.getName()).log(Level.SEVERE, null, ex);
getParent().dispatchEvent(new WindowEvent(tthis, WINDOW_CLOSING));
} }
} }

View File

@ -27,8 +27,8 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
public static final boolean USE_SLOTS_DEFAULT = false; public static final boolean USE_SLOTS_DEFAULT = false;
public static final int WORKERS_DEFAULT = 6; public static final int WORKERS_DEFAULT = 6;
private final MainPanel _main_panel; private final MainPanel _main_panel;
private volatile UploadView _view = null; //lazy init private volatile UploadView _view;
private volatile ProgressMeter _progress_meter = null; //lazy init private volatile ProgressMeter _progress_meter;
private String _exit_message; private String _exit_message;
private String _dir_name; private String _dir_name;
private volatile boolean _exit; private volatile boolean _exit;
@ -97,7 +97,8 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
_partialProgressQueue = new ConcurrentLinkedQueue<>(); _partialProgressQueue = new ConcurrentLinkedQueue<>();
_rejectedChunkIds = new ConcurrentLinkedQueue<>(); _rejectedChunkIds = new ConcurrentLinkedQueue<>();
_thread_pool = Executors.newCachedThreadPool(); _thread_pool = Executors.newCachedThreadPool();
_view = new UploadView(this);
_progress_meter = new ProgressMeter(this);
} }
public Object getWorkers_lock() { public Object getWorkers_lock() {
@ -270,45 +271,13 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
@Override @Override
public ProgressMeter getProgress_meter() { public ProgressMeter getProgress_meter() {
ProgressMeter result = _progress_meter; return this._progress_meter;
if (result == null) {
synchronized (this) {
result = _progress_meter;
if (result == null) {
_progress_meter = result = new ProgressMeter(this);
}
}
}
return result;
} }
@Override @Override
public UploadView getView() { public UploadView getView() {
UploadView result = _view; return this._view;
if (result == null) {
synchronized (this) {
result = _view;
if (result == null) {
_view = result = new UploadView(this);
}
}
}
return result;
} }
@Override @Override
@ -631,7 +600,7 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
@Override @Override
public void run() { public void run() {
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader hello!", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader hello! {1}", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
swingReflectionInvoke("setVisible", getView().getClose_button(), false); swingReflectionInvoke("setVisible", getView().getClose_button(), false);
@ -640,7 +609,18 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
if (!_exit) { if (!_exit) {
if (_ul_url == null) { if (_ul_url == null) {
_ul_url = _ma.initUploadFile(_file_name); int conta_error = 0;
do {
_ul_url = _ma.initUploadFile(_file_name);
long wait_time = MiscTools.getWaitTimeExpBackOff(++conta_error);
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader {1} Upload URL is null, retrying in {2} secs...", new Object[]{Thread.currentThread().getName(), this.getFile_name(), wait_time});
try {
Thread.sleep(wait_time * 1000);
} catch (InterruptedException ex) {
Logger.getLogger(Upload.class.getName()).log(Level.SEVERE, null, ex);
}
} while (_ul_url == null);
try { try {
@ -690,7 +670,7 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
_chunkworkers.add(c); _chunkworkers.add(c);
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Starting chunkuploader{1} ...", new Object[]{Thread.currentThread().getName(), t}); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Starting chunkuploader {1} ...", new Object[]{Thread.currentThread().getName(), t});
_thread_pool.execute(c); _thread_pool.execute(c);
} }
@ -729,7 +709,7 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
_thread_pool.shutdown(); _thread_pool.shutdown();
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Chunkuploaders finished!", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Chunkuploaders finished! {1}", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
getProgress_meter().setExit(true); getProgress_meter().setExit(true);
@ -737,7 +717,7 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
try { try {
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0}Waiting for all threads to finish...", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0}Waiting for all threads to finish {1}...", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
_thread_pool.awaitTermination(MAX_WAIT_WORKERS_SHUTDOWN, TimeUnit.SECONDS); _thread_pool.awaitTermination(MAX_WAIT_WORKERS_SHUTDOWN, TimeUnit.SECONDS);
@ -747,12 +727,12 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
if (!_thread_pool.isTerminated()) { if (!_thread_pool.isTerminated()) {
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Closing thread pool in ''mecag\u00fcen'' style...", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Closing thread pool in ''mecag\u00fcen'' style {1}...", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
_thread_pool.shutdownNow(); _thread_pool.shutdownNow();
} }
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader thread pool finished!", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader thread pool finished! {1}", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
getMain_panel().getGlobal_up_speed().detachTransference(this); getMain_panel().getGlobal_up_speed().detachTransference(this);
@ -764,6 +744,8 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
if (_completion_handle != null) { if (_completion_handle != null) {
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader creating NEW MEGA NODE {1}...", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
printStatus("Creating new MEGA node ... ***DO NOT EXIT MEGABASTERD NOW***"); printStatus("Creating new MEGA node ... ***DO NOT EXIT MEGABASTERD NOW***");
File f = new File(_file_name); File f = new File(_file_name);
@ -868,7 +850,6 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
} catch (SQLException ex) { } catch (SQLException ex) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex); Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex);
} }
} }
getMain_panel().getUpload_manager().getTransference_running_list().remove(this); getMain_panel().getUpload_manager().getTransference_running_list().remove(this);
@ -888,7 +869,9 @@ public final class Upload implements Transference, Runnable, SecureSingleThreadN
swingReflectionInvoke("setVisible", getView().getRestart_button(), true); swingReflectionInvoke("setVisible", getView().getRestart_button(), true);
} }
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader BYE BYE", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader finished with message -> {1} {2}...", new Object[]{Thread.currentThread().getName(), _exit_message, this.getFile_name()});
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Uploader {1} BYE BYE", new Object[]{Thread.currentThread().getName(), this.getFile_name()});
} }
public void pause_worker() { public void pause_worker() {

View File

@ -115,6 +115,8 @@ public final class UploadMACGenerator implements Runnable, SecureSingleThreadNot
_upload.getView().printStatusNormal("Finishing FILE MAC calculation... ***DO NOT EXIT MEGABASTERD NOW***"); _upload.getView().printStatusNormal("Finishing FILE MAC calculation... ***DO NOT EXIT MEGABASTERD NOW***");
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Macgenerator {1} Finishing FILE MAC calculation...", new Object[]{Thread.currentThread().getName(), this.getUpload().getFile_name()});
swingReflectionInvokeAndWait("setEnabled", _upload.getView().getPause_button(), false); swingReflectionInvokeAndWait("setEnabled", _upload.getView().getPause_button(), false);
upload_workers_finish = true; upload_workers_finish = true;
@ -169,7 +171,7 @@ public final class UploadMACGenerator implements Runnable, SecureSingleThreadNot
temp_file_data = (String.valueOf(_bytes_read) + "|" + Bin2BASE64(i32a2bin(file_mac))); temp_file_data = (String.valueOf(_bytes_read) + "|" + Bin2BASE64(i32a2bin(file_mac)));
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Macgenerator -> {1} {2} {3}", new Object[]{Thread.currentThread().getName(), temp_file_data, _upload.calculateLastUploadedChunk(_bytes_read), _last_chunk_id_read}); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} Macgenerator -> {1} {2} {3} {4}", new Object[]{Thread.currentThread().getName(), temp_file_data, _upload.calculateLastUploadedChunk(_bytes_read), _last_chunk_id_read, this.getUpload().getFile_name()});
temp_file_out = new FileOutputStream(temp_file); temp_file_out = new FileOutputStream(temp_file);
@ -181,7 +183,7 @@ public final class UploadMACGenerator implements Runnable, SecureSingleThreadNot
} }
if (!_exit && (!_upload.isStopped() || !_upload.getChunkworkers().isEmpty()) && (_bytes_read < _upload.getFile_size() || (_upload.getFile_size() == 0 && _last_chunk_id_read < 1))) { if (!_exit && (!_upload.isStopped() || !_upload.getChunkworkers().isEmpty()) && (_bytes_read < _upload.getFile_size() || (_upload.getFile_size() == 0 && _last_chunk_id_read < 1))) {
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} {1}/{2} METAMAC wait...", new Object[]{Thread.currentThread().getName(), _bytes_read, _upload.getFile_size()}); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} {1}/{2} METAMAC wait {3}...", new Object[]{Thread.currentThread().getName(), _bytes_read, _upload.getFile_size(), this.getUpload().getFile_name()});
secureWait(); secureWait();
} }
} }
@ -197,7 +199,7 @@ public final class UploadMACGenerator implements Runnable, SecureSingleThreadNot
_upload.secureNotify(); _upload.secureNotify();
Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} MAC GENERATOR BYE BYE...", Thread.currentThread().getName()); Logger.getLogger(getClass().getName()).log(Level.INFO, "{0} MAC GENERATOR {1} BYE BYE...", new Object[]{Thread.currentThread().getName(), this.getUpload().getFile_name()});
} catch (Exception ex) { } catch (Exception ex) {
Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex); Logger.getLogger(getClass().getName()).log(Level.SEVERE, null, ex);

View File

@ -73,25 +73,23 @@ public final class UploadManager extends TransferenceManager {
getTransference_finished_queue().remove(u); getTransference_finished_queue().remove(u);
if (((Upload) u).isProvision_ok()) { _total_transferences_size -= u.getFile_size();
_total_transferences_size -= u.getFile_size(); delete_up.add(new String[]{u.getFile_name(), ((Upload) u).getMa().getFull_email()});
delete_up.add(new String[]{u.getFile_name(), ((Upload) u).getMa().getFull_email()}); try {
try { File temp_file = new File("." + HashString("SHA-1", u.getFile_name()));
File temp_file = new File("." + HashString("SHA-1", u.getFile_name())); if (temp_file.exists()) {
if (temp_file.exists()) { temp_file.delete();
temp_file.delete();
}
} catch (UnsupportedEncodingException | NoSuchAlgorithmException ex) {
Logger.getLogger(getClass().getName()).log(SEVERE, null, ex);
} }
} catch (UnsupportedEncodingException | NoSuchAlgorithmException ex) {
Logger.getLogger(getClass().getName()).log(SEVERE, null, ex);
} }
} }
try { try {

View File

@ -107,7 +107,7 @@
<Component class="javax.swing.JLabel" name="status_label"> <Component class="javax.swing.JLabel" name="status_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="status"/> <Property name="text" type="java.lang.String" value="status"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -116,7 +116,7 @@
<Component class="javax.swing.JLabel" name="slots_label"> <Component class="javax.swing.JLabel" name="slots_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Slots"/> <Property name="text" type="java.lang.String" value="Slots"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -125,7 +125,7 @@
<Component class="javax.swing.JSpinner" name="slots_spinner"> <Component class="javax.swing.JSpinner" name="slots_spinner">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="0"/> <Font name="Dialog" size="18" style="0"/>
</Property> </Property>
<Property name="toolTipText" type="java.lang.String" value="Slots"/> <Property name="toolTipText" type="java.lang.String" value="Slots"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -137,7 +137,7 @@
<Component class="javax.swing.JLabel" name="speed_label"> <Component class="javax.swing.JLabel" name="speed_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="26" style="3"/> <Font name="Dialog" size="26" style="3"/>
</Property> </Property>
<Property name="horizontalAlignment" type="int" value="2"/> <Property name="horizontalAlignment" type="int" value="2"/>
<Property name="text" type="java.lang.String" value="speed"/> <Property name="text" type="java.lang.String" value="speed"/>
@ -147,7 +147,7 @@
<Component class="javax.swing.JProgressBar" name="progress_pbar"> <Component class="javax.swing.JProgressBar" name="progress_pbar">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="18" style="1"/> <Font name="Dialog" size="18" style="1"/>
</Property> </Property>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
</Properties> </Properties>
@ -158,7 +158,7 @@
<Color blue="0" green="99" red="ff" type="rgb"/> <Color blue="0" green="99" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/>
@ -176,7 +176,7 @@
<Color blue="0" green="0" red="ff" type="rgb"/> <Color blue="0" green="0" red="ff" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/> <Color blue="ff" green="ff" id="white" palette="1" red="ff" type="palette"/>
@ -191,7 +191,7 @@
<Component class="javax.swing.JLabel" name="file_name_label"> <Component class="javax.swing.JLabel" name="file_name_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
@ -203,7 +203,7 @@
<Component class="javax.swing.JButton" name="close_button"> <Component class="javax.swing.JButton" name="close_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Close"/> <Property name="text" type="java.lang.String" value="Close"/>
<Property name="doubleBuffered" type="boolean" value="true"/> <Property name="doubleBuffered" type="boolean" value="true"/>
@ -218,7 +218,7 @@
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
</Property> </Property>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="ff" red="ff" type="rgb"/> <Color blue="ff" green="ff" red="ff" type="rgb"/>
@ -233,7 +233,7 @@
<Component class="javax.swing.JLabel" name="file_size_label"> <Component class="javax.swing.JLabel" name="file_size_label">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="20" style="1"/> <Font name="Dialog" size="20" style="1"/>
</Property> </Property>
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor"> <Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
<Color blue="ff" green="33" red="33" type="rgb"/> <Color blue="ff" green="33" red="33" type="rgb"/>
@ -253,7 +253,7 @@
<Component class="javax.swing.JButton" name="folder_link_button"> <Component class="javax.swing.JButton" name="folder_link_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Copy folder link"/> <Property name="text" type="java.lang.String" value="Copy folder link"/>
</Properties> </Properties>
@ -264,7 +264,7 @@
<Component class="javax.swing.JButton" name="file_link_button"> <Component class="javax.swing.JButton" name="file_link_button">
<Properties> <Properties>
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor"> <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
<Font name="Ubuntu" size="16" style="1"/> <Font name="Dialog" size="16" style="1"/>
</Property> </Property>
<Property name="text" type="java.lang.String" value="Copy file link"/> <Property name="text" type="java.lang.String" value="Copy file link"/>
<Property name="enabled" type="boolean" value="false"/> <Property name="enabled" type="boolean" value="false"/>

View File

@ -113,15 +113,15 @@ public final class UploadView extends javax.swing.JPanel implements Transference
setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 204, 255), 4, true)); setBorder(new javax.swing.border.LineBorder(new java.awt.Color(153, 204, 255), 4, true));
status_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N status_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
status_label.setText("status"); status_label.setText("status");
status_label.setDoubleBuffered(true); status_label.setDoubleBuffered(true);
slots_label.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N slots_label.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
slots_label.setText("Slots"); slots_label.setText("Slots");
slots_label.setDoubleBuffered(true); slots_label.setDoubleBuffered(true);
slots_spinner.setFont(new java.awt.Font("Ubuntu", 0, 18)); // NOI18N slots_spinner.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
slots_spinner.setToolTipText("Slots"); slots_spinner.setToolTipText("Slots");
slots_spinner.setDoubleBuffered(true); slots_spinner.setDoubleBuffered(true);
slots_spinner.addChangeListener(new javax.swing.event.ChangeListener() { slots_spinner.addChangeListener(new javax.swing.event.ChangeListener() {
@ -130,16 +130,16 @@ public final class UploadView extends javax.swing.JPanel implements Transference
} }
}); });
speed_label.setFont(new java.awt.Font("Ubuntu", 3, 26)); // NOI18N speed_label.setFont(new java.awt.Font("Dialog", 3, 26)); // NOI18N
speed_label.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); speed_label.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
speed_label.setText("speed"); speed_label.setText("speed");
speed_label.setDoubleBuffered(true); speed_label.setDoubleBuffered(true);
progress_pbar.setFont(new java.awt.Font("Ubuntu", 1, 18)); // NOI18N progress_pbar.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
progress_pbar.setDoubleBuffered(true); progress_pbar.setDoubleBuffered(true);
pause_button.setBackground(new java.awt.Color(255, 153, 0)); pause_button.setBackground(new java.awt.Color(255, 153, 0));
pause_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N pause_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
pause_button.setForeground(java.awt.Color.white); pause_button.setForeground(java.awt.Color.white);
pause_button.setText("PAUSE UPLOAD"); pause_button.setText("PAUSE UPLOAD");
pause_button.setDoubleBuffered(true); pause_button.setDoubleBuffered(true);
@ -150,7 +150,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
}); });
stop_button.setBackground(new java.awt.Color(255, 0, 0)); stop_button.setBackground(new java.awt.Color(255, 0, 0));
stop_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N stop_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
stop_button.setForeground(java.awt.Color.white); stop_button.setForeground(java.awt.Color.white);
stop_button.setText("CANCEL UPLOAD"); stop_button.setText("CANCEL UPLOAD");
stop_button.setDoubleBuffered(true); stop_button.setDoubleBuffered(true);
@ -160,12 +160,12 @@ public final class UploadView extends javax.swing.JPanel implements Transference
} }
}); });
file_name_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N file_name_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
file_name_label.setForeground(new java.awt.Color(51, 51, 255)); file_name_label.setForeground(new java.awt.Color(51, 51, 255));
file_name_label.setText("file_name"); file_name_label.setText("file_name");
file_name_label.setDoubleBuffered(true); file_name_label.setDoubleBuffered(true);
close_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N close_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
close_button.setText("Close"); close_button.setText("Close");
close_button.setDoubleBuffered(true); close_button.setDoubleBuffered(true);
close_button.addActionListener(new java.awt.event.ActionListener() { close_button.addActionListener(new java.awt.event.ActionListener() {
@ -175,7 +175,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
}); });
restart_button.setBackground(new java.awt.Color(51, 51, 255)); restart_button.setBackground(new java.awt.Color(51, 51, 255));
restart_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N restart_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
restart_button.setForeground(new java.awt.Color(255, 255, 255)); restart_button.setForeground(new java.awt.Color(255, 255, 255));
restart_button.setText("Restart"); restart_button.setText("Restart");
restart_button.setDoubleBuffered(true); restart_button.setDoubleBuffered(true);
@ -185,7 +185,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
} }
}); });
file_size_label.setFont(new java.awt.Font("Ubuntu", 1, 20)); // NOI18N file_size_label.setFont(new java.awt.Font("Dialog", 1, 20)); // NOI18N
file_size_label.setForeground(new java.awt.Color(51, 51, 255)); file_size_label.setForeground(new java.awt.Color(51, 51, 255));
file_size_label.setText("file_size"); file_size_label.setText("file_size");
file_size_label.setDoubleBuffered(true); file_size_label.setDoubleBuffered(true);
@ -193,7 +193,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
slot_status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N slot_status_label.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
slot_status_label.setDoubleBuffered(true); slot_status_label.setDoubleBuffered(true);
folder_link_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N folder_link_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
folder_link_button.setText("Copy folder link"); folder_link_button.setText("Copy folder link");
folder_link_button.addActionListener(new java.awt.event.ActionListener() { folder_link_button.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) { public void actionPerformed(java.awt.event.ActionEvent evt) {
@ -201,7 +201,7 @@ public final class UploadView extends javax.swing.JPanel implements Transference
} }
}); });
file_link_button.setFont(new java.awt.Font("Ubuntu", 1, 16)); // NOI18N file_link_button.setFont(new java.awt.Font("Dialog", 1, 16)); // NOI18N
file_link_button.setText("Copy file link"); file_link_button.setText("Copy file link");
file_link_button.setEnabled(false); file_link_button.setEnabled(false);
file_link_button.addActionListener(new java.awt.event.ActionListener() { file_link_button.addActionListener(new java.awt.event.ActionListener() {
@ -398,7 +398,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", progress_pbar, (int) Math.ceil(bar_rate * progress)); swingReflectionInvokeAndWait("setValue", progress_pbar, (int) Math.ceil(bar_rate * progress));
} }
@Override @Override