background preloader

OF and Processing

Facebook Twitter

Cinder

Cinder | The library for professional-quality creative coding in C++ OF. Wiki. Processing. SelectInput() \ Language (API) \ Processing 2+ Trying to parse filename from selectInput(), can't split on "\" How to Use File Choosers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components) File choosers provide a GUI for navigating the file system, and then either choosing a file or directory from a list, or entering the name of a file or directory.

To display a file chooser, you usually use the JFileChooser API to show a modal dialog containing the file chooser. Another way to present a file chooser is to add an instance of JFileChooser to a container. Note: If you intend to distribute your program as a sandbox Java Web Start application, then instead of using the JFileChooser API you should use the file services provided by the JNLP API. Click the Launch button to run JWSFileChooserDemo using Java™ Web Start (download JDK 7 or later). When working with the JWSFileChooserDemo example, be careful not to lose files that you need. The rest of this section discusses how to use the JFileChooser API.

The JFileChooser API makes it easy to bring up open and save dialogs. Here is a picture of an application called FileChooserDemo that brings up an open dialog and a save dialog. File (Java Platform SE 7 ) An abstract representation of file and directory pathnames. User interfaces and operating systems use system-dependent pathname strings to name files and directories. This class presents an abstract, system-independent view of hierarchical pathnames.

An abstract pathname has two components: An optional system-dependent prefix string, such as a disk-drive specifier, "/" for the UNIX root directory, or "\\\\" for a Microsoft Windows UNC pathname, and A sequence of zero or more string names. The first name in an abstract pathname may be a directory name or, in the case of Microsoft Windows UNC pathnames, a hostname. Each subsequent name in an abstract pathname denotes a directory; the last name may denote either a directory or a file. The empty abstract pathname has no prefix and an empty name sequence. The conversion of a pathname string to or from an abstract pathname is inherently system-dependent. A pathname, whether abstract or in string form, may be either absolute or relative. What Is Abstract Path Name in Java?

Check Out Code

Wavy Circle. Curtain. Metropolitan Works workshop: Facade tool. Metropolitan Works workshop: Facade tool As announced a few months ago, I recently taught two London based workshops and in the interest of learning, the source code of various examples done at both events is now available in the learn.postspectacular.com repository. Released under the same license as toxiclibs itself, LGPLv2.1. The most recent workshop took place at Metropolitan Works, the London Metropolitan University’s digital fabrication facility.

Under the overarching theme of digital fabrication, initially this workshop was focused almost exclusively on geometry aspects and how to use various toxiclibs classes to construct shapes & forms and solve problems in this domain. During the 2nd workshop session, I wanted to combine several related topics into a single large exercise and we started building a little hypothetical facade design tool. Over the past couple of weeks I squeezed in some extra time to finish cleaning up and adding comments (lots of!)