Заготовка для первого задания ЛР4
This commit is contained in:
parent
f5b6521b0b
commit
0f4f7ab1af
38
src/tse/LR_4.java
Normal file
38
src/tse/LR_4.java
Normal file
@ -0,0 +1,38 @@
|
||||
package tse;
|
||||
|
||||
import tse.lr4.LoginWindow;
|
||||
|
||||
|
||||
/**
|
||||
* @author aNNiMON
|
||||
*/
|
||||
public class LR_4 implements ILabRab {
|
||||
|
||||
private static final String[] TITLES = {
|
||||
"Окно входа в систему",
|
||||
"Ежедневник"
|
||||
};
|
||||
|
||||
@Override
|
||||
public void execute(int index) {
|
||||
switch(index) {
|
||||
case 0:
|
||||
new LoginWindow().setVisible(true);
|
||||
break;
|
||||
case 1:
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getTitles() {
|
||||
return TITLES;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription(int index) {
|
||||
return Util.readDescription(4, index);
|
||||
}
|
||||
|
||||
}
|
@ -44,7 +44,8 @@ public class Main extends JFrame {
|
||||
}
|
||||
|
||||
private final ILabRab[] labs = new ILabRab[] {
|
||||
new LR_1(), new LR_2(), new LR_3()
|
||||
new LR_1(), new LR_2(), new LR_3(),
|
||||
new LR_4()
|
||||
};
|
||||
|
||||
private JButton executeButton;
|
||||
|
15
src/tse/lr4/LoginWindow.java
Normal file
15
src/tse/lr4/LoginWindow.java
Normal file
@ -0,0 +1,15 @@
|
||||
package tse.lr4;
|
||||
|
||||
import java.awt.HeadlessException;
|
||||
import javax.swing.JFrame;
|
||||
|
||||
/**
|
||||
* Окно входа в систему.
|
||||
* @author aNNiMON
|
||||
*/
|
||||
public class LoginWindow extends JFrame {
|
||||
|
||||
public LoginWindow() throws HeadlessException {
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user