Added possible crypt password, create repository user implementation, etc...
This commit is contained in:
@@ -19,18 +19,25 @@ public class MyFrame extends JFrame {
|
||||
|
||||
JPanel startPanel = new JPanel();
|
||||
JButton loginButton = new JButton("Login");
|
||||
JButton registryButton = new JButton("Registry");
|
||||
|
||||
startPanel.add(loginButton);
|
||||
startPanel.add(registryButton);
|
||||
mainPanel.add(startPanel, "start");
|
||||
mainPanel.add(LoginPanel.getLoginPanel(), "login");
|
||||
mainPanel.add(RegistryPanel.getRegistryPanel(), "registry");
|
||||
|
||||
loginButton.addActionListener(e -> {
|
||||
CardLayout cl = (CardLayout)mainPanel.getLayout();
|
||||
cl.show(mainPanel, "login");
|
||||
});
|
||||
|
||||
add(mainPanel);
|
||||
registryButton.addActionListener(e -> {
|
||||
CardLayout cl = (CardLayout)mainPanel.getLayout();
|
||||
cl.show(mainPanel, "registry");
|
||||
});
|
||||
|
||||
add(mainPanel);
|
||||
setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user