Undocumented Secrets of MatLab-Java Programming

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Author(s): Yair Altman
Publisher: CRC
Year: 2012

Language: English
Pages: 672
Tags: Java, MatLab

Brief Contents......Page 3
Contents......Page 4
Preface......Page 11
Intro to Java in MatLab......Page 16
1.1 Creating Java Objects......Page 18
1.2 Java Object Properties......Page 27
1.3 Java Object Methods and Actions......Page 29
1.4 Java Events and MATlAB Callbacks31......Page 34
1.5 Safe Java Programming in MATlAB — A How-to Guide......Page 39
1.6 Compiling and Debugging User-Created Java Classes in MATlAB......Page 42
1.7 Compatibility Issues......Page 50
1.8 Java Versions in MATlAB......Page 52
1.9 Java.opts......Page 57
Non-GUI Java Libraries in MatLab......Page 69
2.1 Complex Data Structures......Page 70
2.2 Database Connectivity......Page 75
2.3 Miscellaneous Other Uses......Page 85
2.4 A Short Pause for Refection......Page 86
Rich GUI using Java Swing......Page 92
3.1 Adding Java Swing Components to MATlAB Figures......Page 93
3.2 MATlAB’s Main Thread and the Event Dispatch Thread (EDT)......Page 104
3.3 Customizing Java Components......Page 109
3.4 Component Callbacks......Page 124
3.5 Using Third-Party libraries in MATlAB......Page 132
3.6 System-Tray Icons......Page 144
3.7 Drag-and-Drop......Page 147
3.8 Adding MATlAB Components to Java Swing Containers......Page 156
3.9 Alternatives to Swing......Page 158
Uitools......Page 166
4.1 Uitable......Page 168
4.2 Uitree......Page 189
4.3 Uitab......Page 203
4.4 Uiundo......Page 210
4.5 Toolbars......Page 215
4.6 Menus......Page 235
4.7 Status Bar......Page 244
Built-in MatLab Widgets & Java Classes......Page 253
5.1 Internal MATlAB Java Packages......Page 254
5.2 MWSwing Package......Page 262
5.3 MWT Package......Page 278
5.4 MlWidgets Package......Page 280
5.5 Widgets Package......Page 299
5.6 MlServices Package......Page 322
5.7 JIDE......Page 330
5.8 Miscellaneous Other Internal Classes......Page 351
Customizing MatLab......Page 364
6.1 PushButton......Page 368
6.3 RadioButton......Page 376
6.4 Checkbox......Page 378
6.5 Editbox......Page 381
6.6 listbox......Page 401
6.7 Popup Menu (a.k.a. Drop-Down, Combo-Box)......Page 418
6.8 Slider......Page 427
6.9 Text label......Page 430
6.10 Frame......Page 433
6.11 Uipanel......Page 434
6.12 Tooltips†......Page 435
Java Frame......Page 446
7.1 Java Frame Properties and Methods......Page 448
7.2 FindJObj and the Java Frame Components Hierarchy......Page 454
7.3 Important Java Frame Containers......Page 461
7.4 BeanAdapters......Page 472
MatLab Desktop......Page 474
8.1 Desktop Functionality and layout......Page 475
8.2 System Preferences23......Page 493
8.3 Command Window......Page 495
8.4 Editor......Page 517
8.5 Keyboard Bindings......Page 526
8.6 Workspace......Page 536
8.7 Other Desktop Tools......Page 539
MatLab from within Java......Page 554
9.1 Approaches for Java Control of MATlAB......Page 555
9.2 JMI — Java-to-MATlAB Interface62......Page 559
9.3 JMI Wrapper — local MatlabControl......Page 565
9.4 JMI Wrapper — Remote MatlabControl......Page 571
9.5 Using JNI to Connect Java and MATlAB......Page 575
Putting it all together......Page 588
10.1 UISplitPane......Page 589
10.2 Integration Debriefng System......Page 620
10.3 Concluding Exercise: UIMultilistbox......Page 629
What is Java?......Page 631
UDD......Page 637
Open Questions......Page 648
Index......Page 650