https://hal.archives-ouvertes.fr/hal-02404862
Raw File
Tip revision: 759bd8995e51c4e40aa72fd5657d5e6e04c6da89 authored by Software Heritage on 04 February 2020, 13:44:27 UTC
hal: Deposit 405 in collection hal
Tip revision: 759bd89
DialogPanelNettoyageManuelSujets.java
package vue.dialog;

import java.awt.Component;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.util.ResourceBundle;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;

public class DialogPanelNettoyageManuelSujets extends JPanel {
	private static final long serialVersionUID = 1L;
	private JTextArea jtaMotsASuppr;
	private ResourceBundle bundleOperationsListe;

	public DialogPanelNettoyageManuelSujets(ResourceBundle bundleOperationsListe) {
		this.bundleOperationsListe = bundleOperationsListe;
		createGui();
	}

	public JTextArea getJtaMotsASuppr() {
		return jtaMotsASuppr;
	}

	public void createGui() {
		GridBagLayout layout = new GridBagLayout();
		JPanel panelMotsSujet = new JPanel();
		panelMotsSujet.setLayout(layout);
		GridBagConstraints c = new GridBagConstraints();

		JLabel labelMotsSujet = new JLabel(
				bundleOperationsListe.getString("txt_MotsSujetsASupprimer")
						+ " : \n");

		c.fill = GridBagConstraints.HORIZONTAL;
		c.gridx = 0;
		c.gridy = 0;
		panelMotsSujet.add(labelMotsSujet, c);

		jtaMotsASuppr = new JTextArea();
		JScrollPane scrollMotsASuppr = new JScrollPane(jtaMotsASuppr);
		scrollMotsASuppr.setPreferredSize(new Dimension(317, 100));

		c.fill = GridBagConstraints.HORIZONTAL;
		c.gridx = 0;
		c.gridy = 1;
		panelMotsSujet.add(scrollMotsASuppr, c);

		add(panelMotsSujet);
		setSize(375, 200);
		setLayout(new FlowLayout());
		setOpaque(true);
		setAlignmentY(Component.LEFT_ALIGNMENT);
	}
}
back to top