This commit is contained in:
pro.boooooo 2022-11-15 17:53:53 +01:00
parent 818035d374
commit 337340e8fd
7 changed files with 18 additions and 5 deletions

View File

@ -2,11 +2,20 @@ package Test;
import API.*;
import MNP.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JComboBox;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.JScrollPane;
import java.awt.Dimension;
import java.awt.Insets;
import java.awt.GridBagConstraints;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.ArrayList;
import javax.swing.*;
public class ProfView extends BFrame implements ActionListener {
private final ArrayList<Etudiant> e;
@ -51,6 +60,7 @@ public class ProfView extends BFrame implements ActionListener {
this.add(gs, settings);
settings.setPositionY(3);
settings.setPadding(new Insets(0, 0, 0, 50));
String[] groupeList = new String[this.g.size()];
for(int i = 0; i <= this.g.size()-1; i++) {
@ -62,6 +72,7 @@ public class ProfView extends BFrame implements ActionListener {
this.add(groupeOption, settings);
settings.setPositionY(3);
settings.setPadding(new Insets(0, 0, 0, 0));
settings.setAnchor(GridBagConstraints.EAST);
JButton confirm = new JButton("Rechercher");
confirm.setActionCommand("fi::GetListFiltered");
@ -78,6 +89,7 @@ public class ProfView extends BFrame implements ActionListener {
this.add(pf, settings);
settings.setPositionY(6);
settings.setPadding(new Insets(0, 0, 0, 50));
this.text = new JTextField();
this.text.setPreferredSize(new Dimension(110, 30));
text.addKeyListener(new KeyAdapter() {
@ -89,6 +101,7 @@ public class ProfView extends BFrame implements ActionListener {
this.add(this.text, settings);
settings.setPositionY(6);
settings.setPadding(new Insets(0, 0, 0, 0));
settings.setAnchor(GridBagConstraints.EAST);
JButton searchTLetters = new JButton("Rechercher");
searchTLetters.addActionListener(this);

View File

@ -2,7 +2,7 @@ package Test;
import API.*;
import MNP.*;
import java.util.*;
import java.util.ArrayList;
public class TestTexteMNP {
public static void main(String[] args) {