Skip to content

Commit

Permalink
Added tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
benchdoos committed Aug 14, 2018
1 parent 8bc2eda commit c5c62fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
<preferred-size width="150" height="-1"/>
</grid>
</constraints>
<properties/>
<properties>
<toolTipText value="Пролистывает список деталей до искомого текста"/>
</properties>
</component>
<component id="840a1" class="javax.swing.JButton" binding="importButton">
<constraints>
Expand All @@ -101,6 +103,7 @@
<icon value="img/gui/import16.png"/>
<margin top="2" left="2" bottom="2" right="2"/>
<text value=""/>
<toolTipText value="Импортирует номера деталей с буфера обмена"/>
</properties>
</component>
</children>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,15 @@ private void createUIComponents() {
final DefaultListModel defaultListModel1 = new DefaultListModel();
mainList.setModel(defaultListModel1);
scrollPane.setViewportView(mainList);
searchTextField.setToolTipText("Пролистывает список деталей до искомого текста");
panel4.add(searchTextField, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));
importButton = new JButton();
importButton.setBorderPainted(false);
importButton.setContentAreaFilled(false);
importButton.setIcon(new ImageIcon(getClass().getResource("/img/gui/import16.png")));
importButton.setMargin(new Insets(2, 2, 2, 2));
importButton.setText("");
importButton.setToolTipText("Импортирует номера деталей с буфера обмена");
panel4.add(importButton, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final Spacer spacer2 = new Spacer();
panel3.add(spacer2, new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));
Expand Down

0 comments on commit c5c62fe

Please sign in to comment.