|
|
|
@ -49,7 +49,7 @@ public class ITReplaceNorthPanel {
|
|
|
|
|
private int matchX, matchY, matchWidth, matchHeight; |
|
|
|
|
private int resultLabelX, resultLabelY, resultLabelWidth, resultLabelHeight; |
|
|
|
|
private int findInputComboBoxX, findInputComboBoxY, findInputComboBoxWidth, findInputComboBoxHeight; |
|
|
|
|
private int REPLACE_INPUT_COMBOBOX_X, REPLACE_INPUT_COMBOBOX_Y, REPLACE_INPUT_COMBOBOX_WIDTH, REPLACE_INPUT_COMBOBOX_HEIGHT; |
|
|
|
|
private int replaceInputComboBoxX, replaceInputComboBoxY, replaceInputComboBoxWidth, replaceInputComboBoxHeight; |
|
|
|
|
private int replaceButtonX, replaceButtonY, replaceButtonWidth, replaceButtonHeight; |
|
|
|
|
private int searchButtonX, searchButtonY, searchButtonWidth, searchButtonHeight; |
|
|
|
|
private int buttonGap; |
|
|
|
@ -196,7 +196,7 @@ public class ITReplaceNorthPanel {
|
|
|
|
|
|
|
|
|
|
searchButtonHeight = 25; |
|
|
|
|
searchButtonY = resultLabelY; |
|
|
|
|
searchButtonX = REPLACE_INPUT_COMBOBOX_X + REPLACE_INPUT_COMBOBOX_WIDTH - replaceButtonWidth * 2 - buttonGap; |
|
|
|
|
searchButtonX = replaceInputComboBoxX + replaceInputComboBoxWidth - replaceButtonWidth * 2 - buttonGap; |
|
|
|
|
searchButton.setBounds(searchButtonX, searchButtonY, searchButtonWidth, searchButtonHeight); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -205,16 +205,16 @@ public class ITReplaceNorthPanel {
|
|
|
|
|
replaceButtonWidth = templateWidth / 30; |
|
|
|
|
replaceButtonHeight = 25; |
|
|
|
|
replaceButtonY = resultLabelY; |
|
|
|
|
replaceButtonX = REPLACE_INPUT_COMBOBOX_X + REPLACE_INPUT_COMBOBOX_WIDTH - replaceButtonWidth; |
|
|
|
|
replaceButtonX = replaceInputComboBoxX + replaceInputComboBoxWidth - replaceButtonWidth; |
|
|
|
|
replaceButton.setBounds(replaceButtonX, replaceButtonY, replaceButtonWidth, replaceButtonHeight); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setReplaceInputComboboxBounds(int x, int y, int templateWidth) { |
|
|
|
|
REPLACE_INPUT_COMBOBOX_X = x + templateWidth / 2 + templateWidth / 30; |
|
|
|
|
REPLACE_INPUT_COMBOBOX_Y = y + 55; |
|
|
|
|
REPLACE_INPUT_COMBOBOX_WIDTH = templateWidth / 3 + templateWidth / 30 * 2; |
|
|
|
|
REPLACE_INPUT_COMBOBOX_HEIGHT = 25; |
|
|
|
|
replaceInputCombobox.setBounds(REPLACE_INPUT_COMBOBOX_X, REPLACE_INPUT_COMBOBOX_Y, REPLACE_INPUT_COMBOBOX_WIDTH, REPLACE_INPUT_COMBOBOX_HEIGHT); |
|
|
|
|
replaceInputComboBoxX = x + templateWidth / 2 + templateWidth / 30; |
|
|
|
|
replaceInputComboBoxY = y + 55; |
|
|
|
|
replaceInputComboBoxWidth = templateWidth / 3 + templateWidth / 30 * 2; |
|
|
|
|
replaceInputComboBoxHeight = 25; |
|
|
|
|
replaceInputCombobox.setBounds(replaceInputComboBoxX, replaceInputComboBoxY, replaceInputComboBoxWidth, replaceInputComboBoxHeight); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void setFindInputComboboxBounds(int x, int y, int templateWidth) { |
|
|
|
|