Gooey Beans Form
.underlineStyle {
color: #bbbbbb;
text-decoration: underline;
}
span.codeStyle {
font-family: courier new, courier, mono;
font-size: 10pt;
}
span.linkStyle {
color: black;
}
span.urlStyle {
color: black;
}
pre.javaStyle {
font-family: courier new, courier, mono;
background-color: #fbfbfb;
font-size: 11pt;
width: 800px;
border: dashed 1px;
border-color:...
a.anchorStyle:link,a.anchorStyle:hover,a.anchorStyle:active,a.anchorStyle:visited {
text-decoration: none;
}
div.titleStyle {
font-family: verdana, helvetica, arial, sans-serif;
font-size: 12pt;
font-weight: bold;
font-style: italic;
border-bottom: solid 2px;
border-color: darkgray;
}
a.anchorStyle:link,a.anchorStyle:hover,a.anchorStyle:active,a.anchorStyle:visited {
text-...
We implement a singleton for formatting objects into strings, where
custom formatters ie. for specific types, are registered with the singleton.
Click here to read "Gooey Formatter, an objective expose" ;)
A part of "Gooey Beans, a trilogy in 42 parts"
Code Snippet
Our singleton is implemented as follows.
public class QDefaultFormatter implements QFormatter {...
In Poor man's Multi-VM,
Chris Oliver
discusses his JApplication class, which he uses
for his awesome F3 demos.
Let's take a walk through his JApplication code
to see how he achieves this feat...
Let's get us some simplistic "beans binding" to support the Presentation Model pattern.
We explicitly declare our properties so as to enjoy IDE auto-completion
and refactoring capabilities. "Wa wa wee wa!" Cos string references are fragile
with respect to renaming getters and setters, and so we avoid them, like whatsit,
the plague ;)
Click here to read "Gooey Beans Info, a compelling...
We try some magic tricks to avoid boilerplate EDT code. First we use dynamic proxies.
This makes the code is more difficult to navigate using our IDE. Nevertheless it is
potentially useful for general utility classes whose methods should all run in the
EDT, eg. to enable EDT-agnostic programming in background threads.
Finally, we investigate using byte code manipulation using CGLib.
We...