-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchForDocument.java
More file actions
87 lines (70 loc) · 2.67 KB
/
SearchForDocument.java
File metadata and controls
87 lines (70 loc) · 2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
public class SearchForDocument extends JPanel {
private JTextField textField;
public SearchForDocument() {
setLayout(new BorderLayout(0, 0));
JPanel panel = new JPanel();
add(panel, BorderLayout.WEST);
JPanel panel_1 = new JPanel();
add(panel_1, BorderLayout.SOUTH);
JPanel panel_2 = new JPanel();
add(panel_2, BorderLayout.EAST);
JPanel panel_3 = new JPanel();
add(panel_3, BorderLayout.NORTH);
JPanel panel_4 = new JPanel();
add(panel_4, BorderLayout.CENTER);
GridBagLayout gbl_panel_4 = new GridBagLayout();
gbl_panel_4.columnWidths = new int[]{85, 0, 76, 0};
gbl_panel_4.rowHeights = new int[]{0, 0, 0, 0, 0, 0};
gbl_panel_4.columnWeights = new double[]{0.0, 1.0, 0.0, Double.MIN_VALUE};
gbl_panel_4.rowWeights = new double[]{0.0, 1.0, 0.0, 1.0, 0.0, Double.MIN_VALUE};
panel_4.setLayout(gbl_panel_4);
JLabel lblQuery = new JLabel("Query:");
GridBagConstraints gbc_lblQuery = new GridBagConstraints();
gbc_lblQuery.insets = new Insets(0, 0, 5, 5);
gbc_lblQuery.gridx = 0;
gbc_lblQuery.gridy = 0;
panel_4.add(lblQuery, gbc_lblQuery);
textField = new JTextField();
GridBagConstraints gbc_textField = new GridBagConstraints();
gbc_textField.insets = new Insets(0, 0, 5, 5);
gbc_textField.fill = GridBagConstraints.HORIZONTAL;
gbc_textField.gridx = 1;
gbc_textField.gridy = 0;
panel_4.add(textField, gbc_textField);
textField.setColumns(10);
JButton btnClear = new JButton("Clear");
GridBagConstraints gbc_btnClear = new GridBagConstraints();
gbc_btnClear.insets = new Insets(0, 0, 5, 0);
gbc_btnClear.gridx = 2;
gbc_btnClear.gridy = 0;
panel_4.add(btnClear, gbc_btnClear);
JList list_1 = new JList();
GridBagConstraints gbc_list_1 = new GridBagConstraints();
gbc_list_1.gridwidth = 3;
gbc_list_1.insets = new Insets(0, 0, 5, 0);
gbc_list_1.fill = GridBagConstraints.BOTH;
gbc_list_1.gridx = 0;
gbc_list_1.gridy = 1;
panel_4.add(list_1, gbc_list_1);
JLabel lblRetreivedFiles = new JLabel("Retreived Files");
GridBagConstraints gbc_lblRetreivedFiles = new GridBagConstraints();
gbc_lblRetreivedFiles.insets = new Insets(0, 0, 5, 5);
gbc_lblRetreivedFiles.gridx = 0;
gbc_lblRetreivedFiles.gridy = 2;
panel_4.add(lblRetreivedFiles, gbc_lblRetreivedFiles);
JList list = new JList();
GridBagConstraints gbc_list = new GridBagConstraints();
gbc_list.gridwidth = 3;
gbc_list.insets = new Insets(0, 0, 5, 0);
gbc_list.fill = GridBagConstraints.BOTH;
gbc_list.gridx = 0;
gbc_list.gridy = 3;
panel_4.add(list, gbc_list);
}
}