GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Wednesday, December 22, 2010

Invoking Java From Matlab

You can build a Java application using Matlab:

>> java
>> f = javax.swing.JFrame('A Java Application');
>> f.setSize(400,300);
>> f.setLocation(200, 100);
>> f.setVisible(true);

Then you can add some attribute
>> layout = java.awt.FlowLayout();
>> f.getContentPane().setLayout(layout);

>> bExit = javax.swing.JButton("Exit");
>> f.getContentPane().add(bExit);

          
Share/Bookmark

No comments:

Post a Comment