シンプルな JFrame とその中に JPanel があります。
public class TestPanel extends JFrame {
private JPanel contentPane;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
TestPanel frame = new TestPanel();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the frame.
*/
public TestPanel() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setBounds(100, 100, 450, 300);
contentPane = new JPanel();
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
setContentPane(contentPane);
contentPane.setLayout(new BorderLayout(0, 0));
JPanel panel = new JPanel();
contentPane.add(panel, BorderLayout.CENTER);
}
}
そして、SWT ウィジェット (Nebula Gantt Chart) があります。--> http://hexapixel.com/software/gantwidget
この SWT ウィジェットを JPanel に追加して、実際に埋め込みたいと思います。
それを行うにはどのような方法がありますか?ご協力ありがとう御座います!:-)