How do I refresh a GUI in Java?

前端 未结 3 2052
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 02:01

I have a general question that is Java related.

I am writing an application that has a GUI menu. I am trying to change one part of the GUI menu based on the selectio

3条回答
  •  被撕碎了的回忆
    2020-12-02 02:36

    ..in my application the user select which device platform type they want top test (that choice is a set of two radio buttons on the left). When the user selects either Android or iOS, the center grouping of check boxes changes to reflect a group of android devices they can test or a group of iOS devices that they can test.

    1. Put a panel in the 'center grouping'.
    2. Use a CardLayout for the panel.
    3. Add both iOS & Android controls to the panel with the card layout.
    4. Flip between them as needed.

提交回复
热议问题