Last change
on this file since 52 was 52, checked in by ruud, 14 months ago |
Fixed small issues in domaineditor.
|
File size:
958 bytes
|
Line | |
---|
1 | package geniusweb.domaineditor;
|
---|
2 |
|
---|
3 | import java.awt.BorderLayout;
|
---|
4 |
|
---|
5 | import javax.swing.JFrame;
|
---|
6 | import javax.swing.JPanel;
|
---|
7 |
|
---|
8 | import org.junit.Test;
|
---|
9 |
|
---|
10 | import geniusweb.domaineditor.model.DomainModel;
|
---|
11 | import geniusweb.domaineditor.model.profile.LinearAdditiveUtilitySpaceModel;
|
---|
12 | import geniusweb.domaineditor.panels.profile.ProfileEditorPanel;
|
---|
13 | import tudelft.utilities.logging.Reporter;
|
---|
14 | import tudelft.utilities.mvc.panels.PopupReporter;
|
---|
15 |
|
---|
16 | public class ProfileEditorPanelTest {
|
---|
17 | @Test
|
---|
18 | public void test() throws InterruptedException {
|
---|
19 | JFrame frame = new JFrame();
|
---|
20 | JPanel panel = new JPanel(new BorderLayout());
|
---|
21 | Reporter log = new PopupReporter(frame);
|
---|
22 |
|
---|
23 | DomainModel domain = new DomainModel(log);
|
---|
24 | LinearAdditiveUtilitySpaceModel lamodel = new LinearAdditiveUtilitySpaceModel(
|
---|
25 | domain, log);
|
---|
26 |
|
---|
27 | frame.getContentPane().add(new ProfileEditorPanel(lamodel, log));
|
---|
28 | frame.pack();
|
---|
29 | frame.setVisible(true);
|
---|
30 | Thread.sleep(10000);
|
---|
31 | frame.setVisible(false);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.