【发布时间】:2019-06-11 02:21:30
【问题描述】:
如何从JFrame(称为mainframe)访问多个数组列表到另一个框架(称为MakeABooking)?
我需要这个来获取数组列表的值,以将它们附加到 txt File(FileIO 类)。
ArrayList <String> names = new ArrayList<>();
ArrayList <String> surnames = new ArrayList<>();
这些是我需要传递给其他框架的数组列表的名称。
【问题讨论】:
-
1) "another jframe" 见The Use of Multiple JFrames, Good/Bad Practice? 2) 为尽快获得更好的帮助,edit 添加minimal reproducible example 或Short, Self Contained, Correct Example。
标签: java swing class arraylist jframe