java Programming Glossary: illustrates
How to use TextAction http://stackoverflow.com/questions/10075147/how-to-use-textaction a venerable HTMLDocumentEditor by Charles Bell that illustrates the typical usage of the subclasses found in javax.swing.text.TextAction..
Can I add JRadioButton into JTable http://stackoverflow.com/questions/11154378/can-i-add-jradiobutton-into-jtable here . Addendum This example due to @Guillaume Polet illustrates a way to manage one radio button per row. share improve this..
Why do floating points have signed zeros? http://stackoverflow.com/questions/13544342/why-do-floating-points-have-signed-zeros function should make this clear source In math terms This illustrates one significant difference between 0 and 0 in the computational..
Draggable rectangles in Java 2D [duplicate] http://stackoverflow.com/questions/13997296/draggable-rectangles-in-java-2d linked JHotDraw Pattern Language JHotDraw Domain Overview illustrates how to customize drawing editors. The sample org.jhotdraw.samples.draw.Main..
JTable model listener detects inserted rows too soon (before they are drawn) http://stackoverflow.com/questions/14429242/jtable-model-listener-detects-inserted-rows-too-soon-before-they-are-drawn r Addendum Here's a variation on your example that illustrates a revised layout strategy. @see http stackoverflow.com a 14429388..
Java - when to use 'this' keyword http://stackoverflow.com/questions/2429062/java-when-to-use-this-keyword .getSomeNumber Obviously a poor bit of code but it illustrates my example. Is it just down to personal preference in these..
How to do inclusive range queries when only half-open range is supported (ala SortedMap.subMap) http://stackoverflow.com/questions/2857680/how-to-do-inclusive-range-queries-when-only-half-open-range-is-supported-ala-so has its quirks as we shall soon see. The following snippet illustrates a simple usage of subMap static K V SortedMap K V someSortOfSortedMap..
GUI not working after rewriting to MVC http://stackoverflow.com/questions/3066590/gui-not-working-after-rewriting-to-mvc shows an MVC implementation of a much simpler game that illustrates similar principles. Note that the Model manages a single Piece..
How do servlets work? Instantiation, session variables and multithreading http://stackoverflow.com/questions/3106452/how-do-servlets-work-instantiation-session-variables-and-multithreading in other sessions. That's threadunsafe The below example illustrates that public class MyServlet extends HttpServlet private Object..
Input and Output binary streams using JERSEY? http://stackoverflow.com/questions/3496209/input-and-output-binary-streams-using-jersey included with Jersey but haven't found anything yet that illustrates how to do either of these things. If it matters I'm using Jersey..
What components are MVC in JSF MVC framework? http://stackoverflow.com/questions/5104094/what-components-are-mvc-in-jsf-mvc-framework World tutorial and code snippets in the following answers illustrates the right MVC approach How to or should you avoid long methods..
How to get SQL from Hibernate Criteria API (*not* for logging) http://stackoverflow.com/questions/554481/how-to-get-sql-from-hibernate-criteria-api-not-for-logging subject to break with changes in Hibernate etc but it illustrates that it's possible to get the SQL CriteriaImpl c CriteriaImpl..
Why doesn't the Java SDK installer set JAVA_HOME? http://stackoverflow.com/questions/560797/why-doesnt-the-java-sdk-installer-set-java-home out scripts. While that may or may not be true that also illustrates precisely my point you do not want to make any assumption no..
The case against checked exceptions http://stackoverflow.com/questions/613954/the-case-against-checked-exceptions to not abusing checked exceptions. I think the file open illustrates the point nicely. The API programmer knows you might give them..
How does a HashMap work in Java? http://stackoverflow.com/questions/6493605/how-does-a-hashmap-work-in-java works like this this is a little bit simplified but it illustrates the basic mechanism It has a number of buckets which it uses..
Using Singleton design pattern for SQLiteDatabase http://stackoverflow.com/questions/6905524/using-singleton-design-pattern-for-sqlitedatabase blog post on this subject. Here is some sample code that illustrates three possible approaches. These will allow access to the database..
How do you make a resizable rectangle for cropping images in android? http://stackoverflow.com/questions/7817236/how-do-you-make-a-resizable-rectangle-for-cropping-images-in-android with touch to increase decrease its size. The image below illustrates a demo of something I would like to develop. java android ..
RowFilter.NumberFilter: can't handle “mixed” concrete number types http://stackoverflow.com/questions/7993546/rowfilter-numberfilter-cant-handle-mixed-concrete-number-types I don't have a better answer but the example below illustrates the effect. In particular a RowFilter based on a double primitive..
Drag and drop differences between JDK1.6 and JDK1.7 http://stackoverflow.com/questions/8700073/drag-and-drop-differences-between-jdk1-6-and-jdk1-7 transfer data you get an empty list . The following code illustrates the issue. It opens a JFrame on which you can drag and drop..
How can I put axis on a .png file in java? http://stackoverflow.com/questions/9843451/how-can-i-put-axis-on-a-png-file-in-java creation. Using the approach outlined here the sscce below illustrates a few of the ways to customize the rendered shapes colors and..
|