Do we model light as waves or particles? It depends on what works best in a particular situation.<br> Objects have state (attributes) and behaviour (methods). What do we do about the two extreme cases - all state and no behaviour, or your case - all behaviour and no...
First, read the Oracle Server Tuning Manual for your release.<br> Rule-based will use indexes if available, not if better performance. If your tables are small, indexes can a waste (in the extreme case, if your table is only 1 block, why read a second block just...
Materialized Views are synonymous with Snapshots. They are physical tables that hold data from other tables, and Oracle offers internal triggers to (1) track changes to the base table in snapshot logs, and (2) refresh the materialized view periodically from the...
In my experience, the Oracle optimizer does poorly with joins of more than 4 tables.<br>(1) Learn what all the lines in the Explain Plan mean. Use the Oracle8 Server Tuning Guide.<br>(2) Especially look for 'CARTESIAN' - a red flag. It can be caused by:<br> (2a) a poor ordering of...
In Swing, use JWindow class instead of JFrame - they do not have title bars or borders.<br> In AWT, try Window class instead of Frame.<br> But, do you really want a browser window without a title bar, and an applet running inside it? That is a...
Each cell is displayed by a 'renderer' object when read-only, and an 'editor' object while being edited. The default cell renderer for text is a JLabel, and the default cell editor is a JTextArea.<br> Try overriding the JTable's createDefaultRenderers() method to create...
If you are trying to print with AWT, find a 1.1 book with a chapter on printing.<br>
But, if you can upgrade to JFrame, life will be easier for you.<br>
Here's a test case that extends JEditorPane to be a printable editor.<br>
The first file just tests the second. See the print() method...
You can convert platform-specific environment variables into JVM environment properties on the command line.<br>
It would be something like (on Windows):<br>
<br>
java -Dmy.jvm.var=%MY_WINDOW_VAR% myClass<br>
<br>
For this execution the System properties will include an entry for the key...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.