From dc3f70a51b416b25c121629f387f53ed0d6e4b5f Mon Sep 17 00:00:00 2001 From: esoe Date: Fri, 22 Apr 2022 22:15:14 +0300 Subject: [PATCH] vi --- .../java/ru/egspt/moodle/panel/TagPane.java | 9 +++++--- .../ru/egspt/moodle/panel/UserByTagPane.java | 21 +++++++++++++++++- .../ru/egspt/moodle/panel/TagPane.class | Bin 1540 -> 1546 bytes .../ru/egspt/moodle/panel/UserByTagPane.class | Bin 310 -> 1054 bytes 4 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/egspt/moodle/panel/TagPane.java b/src/main/java/ru/egspt/moodle/panel/TagPane.java index 74fcfb7..9037e82 100644 --- a/src/main/java/ru/egspt/moodle/panel/TagPane.java +++ b/src/main/java/ru/egspt/moodle/panel/TagPane.java @@ -12,13 +12,16 @@ import ru.egspt.moodle.Base; import ru.egspt.moodle.events.TagButtonListener; public class TagPane extends JPanel{ - private JTextField tagField = new JTextField(20); - private JButton TagAddButton = new JButton("+"); + private JTextField tagField; + private JButton TagAddButton; //private JButton TagDelButton = new JButton("-"); - private UserByTagPane usersPane = new UserByTagPane(); + private UserByTagPane usersPane; 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); this.setBorder(border); tagField.setText("");//значения по умолчанию diff --git a/src/main/java/ru/egspt/moodle/panel/UserByTagPane.java b/src/main/java/ru/egspt/moodle/panel/UserByTagPane.java index 54c7433..feabff9 100644 --- a/src/main/java/ru/egspt/moodle/panel/UserByTagPane.java +++ b/src/main/java/ru/egspt/moodle/panel/UserByTagPane.java @@ -1,7 +1,26 @@ package ru.egspt.moodle.panel; +import java.awt.BorderLayout; + import javax.swing.JPanel; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; + +import ru.egspt.moodle.Base; 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); + } } diff --git a/target/classes/ru/egspt/moodle/panel/TagPane.class b/target/classes/ru/egspt/moodle/panel/TagPane.class index 1e5c5fd44904b8ee310dea324a6339776a21c643..8b5166ceb3229fa743b374713fafd24e45a3b2af 100644 GIT binary patch delta 474 zcmZ9IPft@p6vcn@9&PDkVw8poq7*5V_7!}9fFcS71Qh{A`B#+1gRnsi2{hmi7OvR1 zm@nZL)HbmRVa)~ zX`(n0(&kt-E7$x{O^aj{iqP`9zw$|ObK1_*c@%U#Hs7qi@DoixPtB?2H4P|mxJ6DgM1vx-wOW{2{Zeow z=7{Dwqb6bZs266|_QJ0;v{tzKLtGh#?61|gdTaiBZC-LfMMF!mf6&aqFJyB*XpS>hr zmY68=CXf^VWdSV#IFMH?-b?L5ORb@TxQuk025NDsBR9?+MyY3tyUcTs&mwKp$S(Jp fkt>atQJG~6pTIEN7tXn=ZwR62)`V~Z^q5~N zp?b}o>T2ubX@Gu3{g>j`qFek{c4v1>yL*~vxF%(_2U84c9+5FQE2@UgXDb;@GU`!d z=FFP#PiQ8YGJh<$>xBY`$7D6r#1w)3opOHXunn?J0g_mg$RhZcn-%(?}(Dy(rR(V}v%}aOuPYXzR;6j#IY>3UE#Wqn#gD7bv zMwnhAWLbW~98q#K^MMvhv~oZ@M^f@mS~?#tCC___XOwarU)#edUBQP`>jy zR#D|>OEx}nYauO=+mm1Ap%Wi?LBm-$YF{9gNP($ppJ_`SCT}Ap%QVNKz;wTPvmR;R zH|Gf$eC-8Z@`j*7^nG3CUs(c@yJ2F*)gDsj$9R0<&kbBSu9~VOJu=D5hZ~PnRZM9vpt?W zx(yk~hKlHY2rHzz#;a6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