Which java swing layout should I use
问题 I need to create this frame: Which layout should I use? I am thinking about box or grid layout but then menu on the right will be a problem. 回答1: There is a lot of repetition in your code. I would break down each section and make it a separate component and focus on it's individual layout needs. In you main screen you have 4 main areas (excluding the menu). I would use something like GridBagLayout to layout these 4 sections. This allows each section the ability to grow to it's required height