Skip to content

Commit

Permalink
fix: c'tor of ImprovedFormattedTextField form field wasn't... (#94)
Browse files Browse the repository at this point in the history
...considering the initial value, and was thus always
displaying an empty field (no text)
  • Loading branch information
xulman authored Nov 22, 2024
1 parent 84c945f commit 855c29b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public ImprovedFormattedTextField(AbstractFormatter formatter) {
public ImprovedFormattedTextField(AbstractFormatter formatter, Object aValue) {

this(formatter);
String strValue = aValue instanceof String ? (String)aValue : "";
try {
setValue(new URI(""));
setValue(new URI(strValue));
} catch (URISyntaxException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit 855c29b

Please sign in to comment.