// Section Panels
JPanel roomPanel = new JPanel();
JPanel characterPanel = new JPanel();
JPanel weaponPanel = new JPanel();
GroupLayout characterLayout = new GroupLayout(characterPanel);
characterLayout.setAutoCreateGaps(true);
characterLayout.setAutoCreateContainerGaps(true);
characterLayout.setHorizontalGroup(characterLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(characterLayout.createSequentialGroup()
.addComponent(colMustardLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(colMustardChkbox)
.addComponent(colMustardTextField)
)
.addGroup(characterLayout.createSequentialGroup()
.addComponent(profPlumLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(profPlumChkbox)
.addComponent(profPlumTextField))
.addGroup(characterLayout.createSequentialGroup()
.addComponent(mrGreenLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mrGreenChkbox)
.addComponent(mrGreenTextField))
.addGroup(characterLayout.createSequentialGroup()
.addComponent(mrsPeacockLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mrsPeacockChkbox)
.addComponent(mrsPeacockTextField))
.addGroup(characterLayout.createSequentialGroup()
.addComponent(missScarletLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(missScarletChkbox)
.addComponent(missScarletTextField))
.addGroup(characterLayout.createSequentialGroup()
.addComponent(mrsWhiteLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mrsWhiteChkbox)
.addComponent(mrsWhiteTextField))
);
characterLayout.setVerticalGroup(characterLayout.createSequentialGroup()
.addGroup(characterLayout.createParallelGroup()
.addComponent(colMustardLabel)
.addComponent(colMustardChkbox)
.addComponent(colMustardTextField))
.addGroup(characterLayout.createParallelGroup()
.addComponent(profPlumLabel)
.addComponent(profPlumChkbox)
.addComponent(profPlumTextField))
.addGroup(characterLayout.createParallelGroup()
.addComponent(mrGreenLabel)
.addComponent(mrGreenChkbox)
.addComponent(mrGreenTextField))
.addGroup(characterLayout.createParallelGroup()
.addComponent(mrsPeacockLabel)
.addComponent(mrsPeacockChkbox)
.addComponent(mrsPeacockTextField))
.addGroup(characterLayout.createParallelGroup()
.addComponent(missScarletLabel)
.addComponent(missScarletChkbox)
.addComponent(missScarletTextField))
.addGroup(characterLayout.createParallelGroup()
.addComponent(mrsWhiteLabel)
.addComponent(mrsWhiteChkbox)
.addComponent(mrsWhiteTextField))
);
GroupLayout weaponLayout = new GroupLayout(weaponPanel);
weaponLayout.setAutoCreateGaps(true);
weaponLayout.setAutoCreateContainerGaps(true);
weaponLayout.setHorizontalGroup(weaponLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(knifeLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(knifeChkbox)
.addComponent(knifeTextField))
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(candlestickLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(candlestickChkbox)
.addComponent(candlestickTextField))
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(revolverLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(revolverChkbox)
.addComponent(revolverTextField))
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(ropeLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ropeChkbox)
.addComponent(ropeTextField))
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(leadPipeLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(leadPipeChkbox)
.addComponent(leadPipeTextField))
.addGroup(weaponLayout.createSequentialGroup()
.addComponent(wrenchLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(wrenchChkbox)
.addComponent(wrenchTextField))
);
weaponLayout.setVerticalGroup(weaponLayout.createSequentialGroup()
.addGroup(weaponLayout.createParallelGroup()
.addComponent(knifeLabel)
.addComponent(knifeChkbox)
.addComponent(knifeTextField))
.addGroup(weaponLayout.createParallelGroup()
.addComponent(candlestickLabel)
.addComponent(candlestickChkbox)
.addComponent(candlestickTextField))
.addGroup(weaponLayout.createParallelGroup()
.addComponent(revolverLabel)
.addComponent(revolverChkbox)
.addComponent(revolverTextField))
.addGroup(weaponLayout.createParallelGroup()
.addComponent(ropeLabel)
.addComponent(ropeChkbox)
.addComponent(ropeTextField))
.addGroup(weaponLayout.createParallelGroup()
.addComponent(leadPipeLabel)
.addComponent(leadPipeChkbox)
.addComponent(leadPipeTextField))
.addGroup(weaponLayout.createParallelGroup()
.addComponent(wrenchLabel)
.addComponent(wrenchChkbox)
.addComponent(wrenchTextField))
);
GroupLayout roomLayout = new GroupLayout(roomPanel);
roomLayout.setAutoCreateGaps(true);
roomLayout.setAutoCreateContainerGaps(true);
roomLayout.setHorizontalGroup(roomLayout.createParallelGroup(GroupLayout.Alignment.LEADING)
.addGroup(roomLayout.createSequentialGroup()
.addComponent(hallLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(hallChkbox)
.addComponent(hallTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(loungeLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(loungeChkbox)
.addComponent(loungeTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(diningLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(diningChkbox)
.addComponent(diningTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(kitchenLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(kitchenChkbox)
.addComponent(kitchenTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(ballRmLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(ballRmChkbox)
.addComponent(ballRmTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(conservLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(conservChkbox)
.addComponent(conservTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(billiardLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(billiardChkbox)
.addComponent(billiardTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(libraryLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(libraryChkbox)
.addComponent(libraryTextField))
.addGroup(roomLayout.createSequentialGroup()
.addComponent(studyLabel)
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(studyChkbox)
.addComponent(studyTextField))
);
roomLayout.setVerticalGroup(roomLayout.createSequentialGroup()
.addGroup(roomLayout.createParallelGroup()
.addComponent(hallLabel)
.addComponent(hallChkbox)
.addComponent(hallTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(loungeLabel)
.addComponent(loungeChkbox)
.addComponent(loungeTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(diningLabel)
.addComponent(diningChkbox)
.addComponent(diningTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(kitchenLabel)
.addComponent(kitchenChkbox)
.addComponent(kitchenTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(ballRmLabel)
.addComponent(ballRmChkbox)
.addComponent(ballRmTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(conservLabel)
.addComponent(conservChkbox)
.addComponent(conservTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(billiardLabel)
.addComponent(billiardChkbox)
.addComponent(billiardTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(libraryLabel)
.addComponent(libraryChkbox)
.addComponent(libraryTextField))
.addGroup(roomLayout.createParallelGroup()
.addComponent(studyLabel)
.addComponent(studyChkbox)
.addComponent(studyTextField))
);