Added Class Tab.
This commit is contained in:
parent
a7e40705cb
commit
50f6ae3407
@ -1,6 +1,6 @@
|
||||
package siba.cli;
|
||||
|
||||
public class Sibacli
|
||||
public class SibaCLI
|
||||
{
|
||||
|
||||
}
|
61
src/siba/gui/AboutDialog.java
Normal file
61
src/siba/gui/AboutDialog.java
Normal file
@ -0,0 +1,61 @@
|
||||
package siba.gui;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.FlowLayout;
|
||||
|
||||
import javax.swing.JButton;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.border.EmptyBorder;
|
||||
|
||||
public class AboutDialog extends JDialog
|
||||
{
|
||||
|
||||
private final JPanel contentPanel = new JPanel();
|
||||
|
||||
/**
|
||||
* Launch the application.
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
AboutDialog dialog = new AboutDialog();
|
||||
dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
|
||||
dialog.setVisible(true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the dialog.
|
||||
*/
|
||||
public AboutDialog()
|
||||
{
|
||||
setBounds(100, 100, 450, 300);
|
||||
getContentPane().setLayout(new BorderLayout());
|
||||
contentPanel.setLayout(new FlowLayout());
|
||||
contentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));
|
||||
getContentPane().add(contentPanel, BorderLayout.CENTER);
|
||||
{
|
||||
JPanel buttonPane = new JPanel();
|
||||
buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
|
||||
getContentPane().add(buttonPane, BorderLayout.SOUTH);
|
||||
{
|
||||
JButton okButton = new JButton("OK");
|
||||
okButton.setActionCommand("OK");
|
||||
buttonPane.add(okButton);
|
||||
getRootPane().setDefaultButton(okButton);
|
||||
}
|
||||
{
|
||||
JButton cancelButton = new JButton("Cancel");
|
||||
cancelButton.setActionCommand("Cancel");
|
||||
buttonPane.add(cancelButton);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
16
src/siba/gui/BackupPanel.java
Normal file
16
src/siba/gui/BackupPanel.java
Normal file
@ -0,0 +1,16 @@
|
||||
package siba.gui;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class BackupPanel extends JPanel
|
||||
{
|
||||
|
||||
/**
|
||||
* Create the panel.
|
||||
*/
|
||||
public BackupPanel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
16
src/siba/gui/CheckPanel.java
Normal file
16
src/siba/gui/CheckPanel.java
Normal file
@ -0,0 +1,16 @@
|
||||
package siba.gui;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class CheckPanel extends JPanel
|
||||
{
|
||||
|
||||
/**
|
||||
* Create the panel.
|
||||
*/
|
||||
public CheckPanel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
73
src/siba/gui/SibaGUI.java
Normal file
73
src/siba/gui/SibaGUI.java
Normal file
@ -0,0 +1,73 @@
|
||||
package siba.gui;
|
||||
|
||||
import java.awt.EventQueue;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
import java.awt.Color;
|
||||
import java.awt.Font;
|
||||
import javax.swing.JTabbedPane;
|
||||
import java.awt.BorderLayout;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
|
||||
public class SibaGUI
|
||||
{
|
||||
|
||||
private JFrame frmSimpleBackup;
|
||||
|
||||
/**
|
||||
* Launch the application.
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
EventQueue.invokeLater(new Runnable()
|
||||
{
|
||||
public void run()
|
||||
{
|
||||
try
|
||||
{
|
||||
SibaGUI window = new SibaGUI();
|
||||
window.frmSimpleBackup.setVisible(true);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create the application.
|
||||
*/
|
||||
public SibaGUI()
|
||||
{
|
||||
initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize the contents of the frame.
|
||||
*/
|
||||
private void initialize()
|
||||
{
|
||||
frmSimpleBackup = new JFrame();
|
||||
frmSimpleBackup.getContentPane().setBackground(new Color(173, 255, 47));
|
||||
|
||||
JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);
|
||||
frmSimpleBackup.getContentPane().add(tabbedPane, BorderLayout.CENTER);
|
||||
|
||||
JPanel panel = new JPanel();
|
||||
panel.setBackground(new Color(152, 251, 152));
|
||||
tabbedPane.addTab("BackUp", null, panel, null);
|
||||
|
||||
JPanel panel_1 = new JPanel();
|
||||
panel_1.setBackground(new Color(144, 238, 144));
|
||||
tabbedPane.addTab("Check", null, panel_1, null);
|
||||
frmSimpleBackup.setFont(new Font("DejaVu Sans", Font.BOLD, 12));
|
||||
frmSimpleBackup.setForeground(new Color(0, 100, 0));
|
||||
frmSimpleBackup.setBackground(new Color(102, 205, 170));
|
||||
frmSimpleBackup.setTitle("Simple Backup");
|
||||
frmSimpleBackup.setBounds(100, 100, 450, 300);
|
||||
frmSimpleBackup.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
}
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
package siba.gui;
|
||||
|
||||
public class SibaGui
|
||||
{
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user