Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 Java Swing 的经验较少,我想创建一个动态列表,其中必须为每个元素指定 2 个参数。
我有 n 个元素,其中数字 n 未知并且取决于其他程序...
我希望对于 n 个元素,swing GUI 显示 n 行,其中左侧的每一行都有 2 个框用于设置参数String id和int time。
确认时的这个摇摆 GUI 应该将所有这些数据放在一个List<Process> (其中 Process 只是一个由String id和int time定义的对象)中。
List<Process>