Mercurial Hosting > luan
changeset 1940:5a79d8b92f74 default tip
swing
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 18 May 2025 14:36:52 -0600 |
parents | 60e1df60503c |
children | |
files | src/luan/modules/swing/Awt_container.luan src/luan/modules/swing/Button_group.luan |
diffstat | 2 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/modules/swing/Awt_container.luan Sat May 17 22:20:10 2025 -0600 +++ b/src/luan/modules/swing/Awt_container.luan Sun May 18 14:36:52 2025 -0600 @@ -56,6 +56,7 @@ if location~=nil then jcomponent.setLocation(location.x,location.y) end local preferred_size = delete(props,"preferred_size") if preferred_size~=nil then jcomponent.setPreferredSize(to_dimension(preferred_size)) end + component.repaint = jcomponent.repaint function component.add(el) jcomponent.add(el.java) end
--- a/src/luan/modules/swing/Button_group.luan Sat May 17 22:20:10 2025 -0600 +++ b/src/luan/modules/swing/Button_group.luan Sun May 18 14:36:52 2025 -0600 @@ -12,6 +12,9 @@ function group.add(button) jgroup.add(button.java) end + function group.remove(button) + jgroup.remove(button.java) + end return group end