esoe 3 years ago
parent
commit
dc3f70a51b
  1. 9
      src/main/java/ru/egspt/moodle/panel/TagPane.java
  2. 21
      src/main/java/ru/egspt/moodle/panel/UserByTagPane.java
  3. BIN
      target/classes/ru/egspt/moodle/panel/TagPane.class
  4. BIN
      target/classes/ru/egspt/moodle/panel/UserByTagPane.class

9
src/main/java/ru/egspt/moodle/panel/TagPane.java

@ -12,13 +12,16 @@ import ru.egspt.moodle.Base;
import ru.egspt.moodle.events.TagButtonListener; import ru.egspt.moodle.events.TagButtonListener;
public class TagPane extends JPanel{ public class TagPane extends JPanel{
private JTextField tagField = new JTextField(20); private JTextField tagField;
private JButton TagAddButton = new JButton("+"); private JButton TagAddButton;
//private JButton TagDelButton = new JButton("-"); //private JButton TagDelButton = new JButton("-");
private UserByTagPane usersPane = new UserByTagPane(); private UserByTagPane usersPane;
public TagPane(Base base){ public TagPane(Base base){
tagField = new JTextField(20);
TagAddButton = new JButton("+");
usersPane = new UserByTagPane(base);
TitledBorder border = new TitledBorder(new LineBorder(Color.black), "Настройки выборки", TitledBorder.CENTER, TitledBorder.CENTER); TitledBorder border = new TitledBorder(new LineBorder(Color.black), "Настройки выборки", TitledBorder.CENTER, TitledBorder.CENTER);
this.setBorder(border); this.setBorder(border);
tagField.setText("");//значения по умолчанию tagField.setText("");//значения по умолчанию

21
src/main/java/ru/egspt/moodle/panel/UserByTagPane.java

@ -1,7 +1,26 @@
package ru.egspt.moodle.panel; package ru.egspt.moodle.panel;
import java.awt.BorderLayout;
import javax.swing.JPanel; import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import ru.egspt.moodle.Base;
public class UserByTagPane extends JPanel{ public class UserByTagPane extends JPanel{
JTextArea ta;
JScrollPane sp;
UserByTagPane(Base base){
String text = "s;dfkjg s;dfhg so soigspoig psoigspfg ps sigh sp oigpssp oigspih soupsht";
ta = new JTextArea();
ta.setText(text);
ta.append(text);
ta.append(text);ta.append(text);ta.append(text);ta.append(text);ta.append(text);
sp = new JScrollPane(ta);
setLayout(new BorderLayout());
add(sp, BorderLayout.CENTER);
}
} }

BIN
target/classes/ru/egspt/moodle/panel/TagPane.class

Binary file not shown.

BIN
target/classes/ru/egspt/moodle/panel/UserByTagPane.class

Binary file not shown.
Loading…
Cancel
Save