Professional Development

Pro-D
  • Front Page
  • Contact
  • Log in
  • « Conversion of the icon image library to PNG
  • Wrote the basics of a preferences reflection class »

More work on reflection and prefs

Posted by mholmes on 06 Jun 2007 in Activity log

Revisiting my Apparatus app, I hooked it into the preferences object, and tried adding support for JFileChooser. This proved more complicated than I expected, because the JFileChoosers are usually created on the fly, so they're not owned by any other component in the hierarchy; they're just instance variables in the JFrame class. We had to use some reflection code to iterate through all the variables in the class to find any which are JFileChoosers. In order to make this work, they have to be public rather than private, but that's not a big deal.

This entry was posted by Martin and filed under Activity log.

Professional Development

This blog is used to record research and learning we do which is not part of a specific project, such as learning a new programming language in anticipation of using it for future projects, or installing and testing development tools that may be useful.
  • Home
  • Recently
  • Archives
  • Categories
  • Latest comments

Search

Categories

  • All
  • Activity log
  • Announcements
  • Tasks

XML Feeds

  • RSS 2.0: Posts
  • Atom: Posts
What is RSS?

Recent Posts

  • Expenses claim
  • Another hour on QT
  • A little QT learning
  • Repro training
  • POS tagging tool
  • QT: learning about directory views and models
  • QT: Preparing icon collection for use as a resource
  • QT: learning about namespaces, enums, and writing classes
  • QT: Successful portable app with SVG icons
  • QT work

Sidebar 2

This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".

This collection ©2026 by admin • Help • Open Source CMS