Programming Tips and Traps
Monday, April 17, 2023
String.replace and String.replaceAll are totally different beasts - and named quite badly
›
We start out with some innocent code that will replace a variable with a certain value: public static void main(String[] args) { ...
Thursday, October 22, 2015
Drag and Drop in a TreeTableView with scrolling
›
The following example shows a TreeTableView whose items can be rearranged by drag and drop. Some remarks: To enable scrolling, a row fac...
1 comment:
Monday, October 19, 2015
Filtering a TableTreeView in JavaFX
›
The following example demonstrates filtering in a TableTreeView in JavaFX: import java.util.HashMap; import java.util.Map; ...
Wednesday, November 19, 2014
Metaprogramming Trap with Interfaces in Java 8
›
Consider the following little example: package prv.rli.codetest; import java.lang.reflect.Method; public class BreakingInterfaces { i...
Thursday, October 16, 2014
Per-row mouse cursor in JavaFX TableViews
›
Today I want to show how to set the mouse cursor in a TableView on a per-row basis. In a real-world scenario this can be used to indicate ...
Tuesday, October 7, 2014
Setting the preferred width of a ListView to fit its items in JavaFX
›
Let's assume, we want to create a popup listview, that is toggled by a click on a button. Like this: import java.util.Random; import j...
Wednesday, October 1, 2014
Infinite scrolling with JavaFX TableView
›
Today I want to show how to realise infinite scrolling with JavaFX TableView. The idea behind infinite scrolling is to retrieve more data ...
2 comments:
›
Home
View web version