changeset 1866:5d004c014a5f default tip

swing
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 31 Mar 2025 21:00:52 -0600
parents 58938d6045e4
children
files src/luan/modules/swing/Text_component.luan
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/luan/modules/swing/Text_component.luan	Mon Mar 31 19:11:03 2025 -0600
+++ b/src/luan/modules/swing/Text_component.luan	Mon Mar 31 21:00:52 2025 -0600
@@ -12,6 +12,9 @@
 	if key == "text" then
 		return text_component.java.getText()
 	end
+	if key == "document" then
+		return text_component.java.getDocument()
+	end
 	return fail
 end
 
@@ -20,6 +23,10 @@
 		text_component.java.setText(value)
 		return
 	end
+	if key == "document" then
+		text_component.java.setDocument(value)
+		return
+	end
 	return fail
 end