#List/array of values that can be changed

1 messages · Page 1 of 1 (latest)

acoustic relic
#

how I can make list where I will be storing values that can be in realtime rewritable?

spare kayakBOT
#

<@&987246527741304832> please have a look, thanks.

visual lark
frail hill
#

Incomprehensible mysterious question

acoustic relic
#

I mean I have really simple painting program and I have 4 objects like oval,rectangle, line, and they have color, if they are fill or not, position and size values, I am storing them in to the JList and I showing them on the frame, the thing is what I have to make eg. like button or smth, that will pop up new window with all of those editables values

#

sorry I am really new in to java

tame minnow
#

You want to click on a item in a JList, and have a popup frame that let's you edit the properties of that item?

tame minnow
#

No idea

#

Can you make a JList with the items in it yet?

silk kettle
#

use a JDialog for the pop-up, and just access the elements/data that the JList has

#

first step would be displaying the data

#

from there, you can work towards modifying & persisting the data