Skip to content

Commit

Permalink
add comment to the requestComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
arksap2002 authored and Vladislav Artiukhov committed Oct 4, 2024
1 parent 16824c6 commit a2b108e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ class TestCasePanelBuilder(

sendButton.addActionListener { sendRequest() }

// Set the preferred size of the requestComboBox.
// The width is calculated by subtracting the combined heights of languageTextField, requestJLabel,
// sendButton, and a padding of 20 from languageTextField's preferred height.
requestComboBox.preferredSize = Dimension(
languageTextField.preferredSize.height - requestJLabel.preferredSize.height - sendButton.preferredSize.height - 20,
requestComboBox.preferredSize.height
Expand Down

0 comments on commit a2b108e

Please sign in to comment.