Yair Altman, author of the extremely popular UndocumentedMatlab.com website, is well respected in the MATLAB community as the de-facto guru on undocumented MATLAB features and the MATLAB-Java interface in particular.
Yair holds a BSc in Physics and an MSc in Computer Science, has over 20 years of programming experience at various levels of responsibility, and currently consults for several software development projects.
For a variety of reasons, the MATLAB®-Java interface was never fully documented. This is really quite unfortunate: Java is one of the most widely used programming languages, having many times the number of programmers and programming resources as MATLAB. Also unfortunate is the popular claim that while MATLAB is a fine programming platform for prototyping, it is not suitable for real-world, modern-looking applications. Undocumented Secrets of MATLAB®-Java Programming aims to correct this misconception.
This book shows how using Java can significantly improve MATLAB program appearance and functionality, and that this can be done easily and even without any prior Java knowledge.
Readers are led step-by-step from simple to complex customizations. Code snippets, screenshots, and numerous online references are provided to enable the utilization of this book as both a sequential tutorial and as a random-access reference suited for immediate use. Java-savvy readers will find it easy to tailor code samples for their particular needs; for Java newcomers, an introduction to Java and numerous online references are provided.
This book demonstrates how
- The MATLAB programming environment relies on Java for numerous tasks, including networking, data-processing algorithms and graphical user-interface (GUI)
- We can use MATLAB for easy access to external Java functionality, either third-party or user-created
- Using Java, we can extensively customize the MATLAB environment and application GUI, enabling the creation of visually appealing and usable applications
Introduction to Java in MATLAB®. Using Non-GUI Java Libraries in MATLAB®. Rich GUI Using Java Swing. Uitools. Built-in MATLAB® Widgets and Java Classes. Customizing MATLAB ® Controls. The Java Frame. The MATLAB® Desktop. Using MATLAB® from within Java. Putting it All Together. Appendix A: What is Java? Appendix B: UDD. Appendix C: Open Questions. Index.
Many people know that a major part of the functionality of the MATLAB® software package is based on Java. But fewer people know how to manipulate Java to achieve improved appearance and functionality and thus heighten MATLAB software´s applicability to real world, modern situations. Organized by related functionality/usage and ordered from facile to complex, this book presents examples, instruction, and code snippets in stand-alone, self-contained chapters. Requiring no prior Java knowledge, this book provides numerous online references and resources to show readers how to use and discover new components and functionalities using nothing but MATLAB itself as the discovery tool.
For a variety of reasons, the MATLAB®-Java interface was never fully documented. This is really quite unfortunate: Java is one of the most widely used programming languages, having many times the number of programmers and programming resources as MATLAB. Also unfortunate is the popular claim that while MATLAB is a fine programming platform for prototyping, it is not suitable for real-world, modern-looking applications. Undocumented Secrets of MATLAB®-Java Programming aims to correct this misconception. This book shows how using Java can significantly improve MATLAB program appearance and functionality, and that this can be done easily and even without any prior Java knowledge. Readers are led step-by-step from simple to complex customizations. Code snippets, screenshots, and numerous online references are provided to enable the utilization of this book as both a sequential tutorial and as a random-access reference suited for immediate use. Java-savvy readers will find it easy to tailor code samples for their particular needs; for Java newcomers, an introduction to Java and numerous online references are provided. This book demonstrates how The MATLAB programming environment relies on Java for numerous tasks, including networking, data-processing algorithms and graphical user-interface (GUI) We can use MATLAB for easy access to external Java functionality, either third-party or user-created Using Java, we can extensively customize the MATLAB environment and application GUI, enabling the creation of visually appealing and usable applications
Introduction to Java in MATLAB®Creating Java ObjectsJava Object PropertiesJava Object Methods and ActionsJava Events and MATLAB CallbacksSafe Java Programming in MATLAB - A How-To GuideCompiling and Debugging User-Created Java Classes in MATLABCompatibility IssuesJava Versions in MATLABJava.optsReferences Using Non-GUI Java Libraries in MATLAB®Complex Data StructuresDatabase ConnectivityMiscellaneous Other UsesA Short Pause for ReflectionReferencesRich GUI Using Java SwingAdding Java Swing Components to MATLAB FiguresMATLAB's Main Thread and the Event Dispatch Thread (EDT)Customizing Java ComponentsComponent CallbacksUsing Third-Party Libraries in MATLABSystem-Tray IconsDrag-and-Drop Adding MATLAB Components to Java Swing ContainersAlternatives to SwingReferencesUitoolsUitableUitreeUitabUiundoToolbarsMenusStatus BarReferencesBuilt-in MATLAB ® Widgets and Java ClassesInternal MATLAB Java PackagesMWSwing PackageMWT PackageMLWidgets Package Widgets PackageMLServices PackageJIDEMiscellaneous Other Internal ClassesReferencesCustomizing MATLAB® ControlsPushButtonToggleButtonRadioButtonCheckboxEditboxListboxPopup Menu (aka Drop-Down, Combo-Box)SliderText LabelFrameUipanelTooltipsReferences The Java FrameJava Frame Properties and MethodsFindJObj and the Java Frame Components Hierarchy Important Java Frame ContainersBeanAdaptersReferences The MATLAB® DesktopDesktop Functionality and LayoutSystem PreferencesCommand WindowEditorKeyboard BindingsWorkspaceOther Desktop ToolsReferencesUsing MATLAB® from within JavaApproaches for Java Control of MATLABJMI - Java-to- MATLAB InterfaceJMI Wrapper - Local MatlabControlJMI Wrapper - Remote MatlabControlUsing JNI to Connect Java and MATLABReferencesPutting it All TogetherUISplitPaneIntegration Debriefing SystemConcluding Exercise: UIMultiListboxReferencesAppendix A: What is Java?Appendix B: UDDAppendix C: Open QuestionsIndex
Yair Altman, author of the extremely popular UndocumentedMatlab.com website, is well respected in the MATLAB community as the de-facto guru on undocumented MATLAB features and the MATLAB-Java interface in particular. nYair holds a BSc in Physics and an MSc in Computer Science, has over 20 years of programming experience at various levels of responsibility, and currently consults for several software development projects.
Über den Autor
Yair Altman, author of the extremely popular UndocumentedMatlab.com website, is well respected in the MATLAB community as the de-facto guru on undocumented MATLAB features and the MATLAB-Java interface in particular.
Yair holds a BSc in Physics and an MSc in Computer Science, has over 20 years of programming experience at various levels of responsibility, and currently consults for several software development projects.
Inhaltsverzeichnis
Introduction to Java in MATLAB®. Using Non-GUI Java Libraries in MATLAB®. Rich GUI Using Java Swing. Uitools. Built-in MATLAB® Widgets and Java Classes. Customizing MATLAB ® Controls. The Java Frame. The MATLAB® Desktop. Using MATLAB® from within Java. Putting it All Together. Appendix A: What is Java? Appendix B: UDD. Appendix C: Open Questions. Index.
Klappentext
Many people know that Java forms the background and functionality of the MatLab software package, but fewer people know how to manipulate Java to achieve improved appearance and performance and thus heighten MatLab software 's applicability to real world, modern situations. Organized by related functionality/usage and ordered from facile to complex, this book presents examples, instruction, and code snippets in stand-alone, self-contained chapters. Requiring no prior Java knowledge, this book provides numerous online references and resources to show readers how to use and discover new components and applications using nothing but MatLab as the discovery tool.