Added an about tab, containing a thank you note to relakks&ipredator as well as Jan-Erik Fiske & Peter Sunde.
This commit is contained in:
61
src/net/i2p/itoopie/gui/AboutTab.java
Normal file
61
src/net/i2p/itoopie/gui/AboutTab.java
Normal file
@ -0,0 +1,61 @@
|
||||
package net.i2p.itoopie.gui;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.SwingConstants;
|
||||
import javax.swing.event.ChangeEvent;
|
||||
|
||||
import net.i2p.itoopie.ItoopieVersion;
|
||||
import net.i2p.itoopie.gui.component.MultiLineLabel;
|
||||
import net.i2p.itoopie.gui.component.TabLogoPanel;
|
||||
import net.i2p.itoopie.i18n.Transl;
|
||||
|
||||
public class AboutTab extends TabLogoPanel {
|
||||
|
||||
MultiLineLabel lblThankYou;
|
||||
JLabel lblitoopie;
|
||||
JLabel lblVersion;
|
||||
JLabel lblVersionSpecified;
|
||||
|
||||
public AboutTab(String imageName) {
|
||||
super(imageName);
|
||||
setLayout(null);
|
||||
|
||||
lblThankYou = new MultiLineLabel();
|
||||
add(lblThankYou);
|
||||
lblThankYou.setBounds(10, 30, 250, 250);
|
||||
lblThankYou.setVerticalTextAlignment(JLabel.TOP);
|
||||
lblThankYou.setText(Transl._("itoopie and I2PControl were sponsored by Relakks & Ipredator.\n" +
|
||||
"Development began during the summer of 2011 and the first alpha was launched in Juli.\n\n"+
|
||||
"I'd like to thank Jan-Erik Fiske and Peter Sunde for actively helping privacy and anonymity online.\n" +
|
||||
"// hottuna"));
|
||||
|
||||
lblitoopie = new JLabel();
|
||||
add(lblitoopie);
|
||||
lblitoopie.setBounds(285, 30, 100, 15);
|
||||
lblitoopie.setHorizontalAlignment(SwingConstants.RIGHT);
|
||||
lblitoopie.setText("itoopie");
|
||||
|
||||
lblVersion = new JLabel();
|
||||
add(lblVersion);
|
||||
lblVersion.setBounds(285, 50, 100, 15);
|
||||
lblVersion.setText("Version:");
|
||||
lblVersion.setHorizontalAlignment(SwingConstants.RIGHT);
|
||||
|
||||
|
||||
lblVersionSpecified = new JLabel();
|
||||
add(lblVersionSpecified);
|
||||
lblVersionSpecified.setBounds(395, 50, 100, 15);
|
||||
lblVersionSpecified.setText("v" + ItoopieVersion.VERSION);
|
||||
|
||||
validate();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public void onTabFocus(ChangeEvent e) {
|
||||
// Do nothing :)
|
||||
}
|
||||
|
||||
}
|
@ -25,6 +25,7 @@ import net.i2p.itoopie.gui.component.ParticipatingTunnelsChart;
|
||||
import net.i2p.itoopie.gui.component.RegisteredFrame;
|
||||
import net.i2p.itoopie.gui.component.TabLogoPanel;
|
||||
import net.i2p.itoopie.gui.component.util.TabChangeListener;
|
||||
import net.i2p.itoopie.i18n.Transl;
|
||||
import net.i2p.itoopie.util.IconLoader;
|
||||
import javax.swing.UIManager;
|
||||
import javax.swing.border.Border;
|
||||
@ -77,7 +78,7 @@ public class Main {
|
||||
GUIHelper.setDefaultStyle();
|
||||
|
||||
|
||||
frame = new RegisteredFrame();
|
||||
frame = new RegisteredFrame("itoopie");
|
||||
frame.setBounds(0, 0, FRAME_WIDTH, FRAME_HEIGHT);
|
||||
frame.setResizable(false);
|
||||
WindowHandler.registerMain(frame);
|
||||
@ -85,19 +86,23 @@ public class Main {
|
||||
tabbedPane = new JTabbedPane(JTabbedPane.TOP);
|
||||
frame.getContentPane().add(tabbedPane, BorderLayout.CENTER);
|
||||
|
||||
TabLogoPanel overviewPanel = new OverviewTab("itoopie-opaque12");
|
||||
tabbedPane.addTab("Overview", null, overviewPanel, null);
|
||||
tabbedPane.addChangeListener(new TabChangeListener(overviewPanel));
|
||||
TabLogoPanel overviewTab = new OverviewTab("itoopie-opaque12");
|
||||
tabbedPane.addTab(Transl._("Overview"), null, overviewTab, null);
|
||||
tabbedPane.addChangeListener(new TabChangeListener(overviewTab));
|
||||
|
||||
|
||||
TabLogoPanel configPanel = new ConfigurationTab("itoopie-opaque12");
|
||||
tabbedPane.addTab("Configuration", null, configPanel, null);
|
||||
tabbedPane.addChangeListener(new TabChangeListener(configPanel));
|
||||
TabLogoPanel configTab = new ConfigurationTab("itoopie-opaque12");
|
||||
tabbedPane.addTab(Transl._("Configuration"), null, configTab, null);
|
||||
tabbedPane.addChangeListener(new TabChangeListener(configTab));
|
||||
|
||||
|
||||
JPanel logPanel = new LogoPanel("itoopie-opaque12");
|
||||
tabbedPane.addTab("Logs", null, logPanel, null);
|
||||
logPanel.setLayout(new BorderLayout(0, 0));
|
||||
tabbedPane.addTab(Transl._("Logs"), null, logPanel, null);
|
||||
|
||||
|
||||
TabLogoPanel aboutTab = new AboutTab("itoopie-opaque12");
|
||||
tabbedPane.addTab(Transl._("About"), null, aboutTab, null);
|
||||
|
||||
|
||||
JPanel statusPanel = new JPanel();
|
||||
frame.getContentPane().add(statusPanel, BorderLayout.SOUTH);
|
||||
|
Reference in New Issue
Block a user