Problème JAVA
PrisonBreakS05
Messages postés
136
Date d'inscription
Statut
Membre
Dernière intervention
-
mype Messages postés 2435 Date d'inscription Statut Membre Dernière intervention -
mype Messages postés 2435 Date d'inscription Statut Membre Dernière intervention -
Bonjour,
[Code]
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.*;
public class Client extends Panel implements Runnable {
Panel PC,PA;
JPanel XX;
private TextField TF;
private TextArea TA;
private List Liste1;
private JList Liste2;
private JScrollPane jScrollPane1;
private Socket s;
DataInputStream din;
DataOutputStream dout;
public Client(String Host,int port) {
//setLayout(null);
//setBounds(10,10,400,400);
this.setLayout(null);
this.setBounds(10,10,1300,600);
PC = new Panel();
PC.setBounds(30, 30, 400, 400);
PC.setBackground(Color.GREEN);
PC.setVisible(true);
XX = new JPanel();
XX.setBounds(510, 30, 500, 400);
XX.setBackground(Color.BLACK);
XX.setVisible(true);
TextField TF = new TextField(50);
TF.setBounds(40, 40, 200, 15);
TF.setBackground(Color.blue);
TF.setSize(50,10);
PC.add(TF);
TextArea TA = new TextArea();
TA.setBounds(40,60,200,80);
TA.setBackground(Color.blue);
PC.add(TA);
JList Liste2 = new JList();
JScrollPane jScrollPane1 = new JScrollPane(Liste2);
jScrollPane1.setBounds(10,10,100,100);
jScrollPane1.setBackground(Color.red);
Liste2.setBounds(15,15,20,20);
Liste2.setBackground(Color.red);
Liste2.setSize(80,40);
//XX.add(jScrollPane1);
//XX.add(Liste2);
//Liste2.setVisible(true);
//List liste1 = new List();
//Liste1.setBounds(100,100,20,20);
//Liste1.setSize(80,40);
//PC.add(Liste1);
this.add(PC);
this.add(XX);
setVisible(true);
/Code
[Code]
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.*;
public class Client extends Panel implements Runnable {
Panel PC,PA;
JPanel XX;
private TextField TF;
private TextArea TA;
private List Liste1;
private JList Liste2;
private JScrollPane jScrollPane1;
private Socket s;
DataInputStream din;
DataOutputStream dout;
public Client(String Host,int port) {
//setLayout(null);
//setBounds(10,10,400,400);
this.setLayout(null);
this.setBounds(10,10,1300,600);
PC = new Panel();
PC.setBounds(30, 30, 400, 400);
PC.setBackground(Color.GREEN);
PC.setVisible(true);
XX = new JPanel();
XX.setBounds(510, 30, 500, 400);
XX.setBackground(Color.BLACK);
XX.setVisible(true);
TextField TF = new TextField(50);
TF.setBounds(40, 40, 200, 15);
TF.setBackground(Color.blue);
TF.setSize(50,10);
PC.add(TF);
TextArea TA = new TextArea();
TA.setBounds(40,60,200,80);
TA.setBackground(Color.blue);
PC.add(TA);
JList Liste2 = new JList();
JScrollPane jScrollPane1 = new JScrollPane(Liste2);
jScrollPane1.setBounds(10,10,100,100);
jScrollPane1.setBackground(Color.red);
Liste2.setBounds(15,15,20,20);
Liste2.setBackground(Color.red);
Liste2.setSize(80,40);
//XX.add(jScrollPane1);
//XX.add(Liste2);
//Liste2.setVisible(true);
//List liste1 = new List();
//Liste1.setBounds(100,100,20,20);
//Liste1.setSize(80,40);
//PC.add(Liste1);
this.add(PC);
this.add(XX);
setVisible(true);
/Code
A voir également:
- Problème JAVA
- Waptrick java football - Télécharger - Jeux vidéo
- Jeux java itel - Télécharger - Jeux vidéo
- Eclipse java - Télécharger - Langages
- Java apk - Télécharger - Langages
- Waptrick java voiture - Télécharger - Jeux vidéo
5 réponses
Merci chaita ;)
mport java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.*;
public class Client extends Panel implements Runnable {
Panel PC,PA;
JPanel XX;
private TextField TF;
private TextArea TA;
private List Liste1;
private JList Liste2;
private JScrollPane jScrollPane1;
private Socket s;
DataInputStream din;
DataOutputStream dout;
public Client(String Host,int port) {
this.setLayout(null);
this.setBounds(10,10,1300,600);
PC = new Panel();
PC.setBounds(30, 30, 400, 400);
PC.setBackground(Color.GREEN);
PC.setVisible(true);
XX = new JPanel();
XX.setBounds(510, 30, 500, 400);
XX.setBackground(Color.BLACK);
XX.setVisible(true);
TextField TF = new TextField(50);
TF.setBounds(40, 40, 200, 15);
TF.setBackground(Color.blue);
TF.setSize(50,10);
PC.add(TF);
TextArea TA = new TextArea();
TA.setBounds(40,60,200,80);
TA.setBackground(Color.blue);
PC.add(TA);
JList Liste2 = new JList();
JScrollPane jScrollPane1 = new JScrollPane(Liste2);
jScrollPane1.setBounds(10,10,100,100);
jScrollPane1.setBackground(Color.red);
Liste2.setBounds(15,15,20,20);
Liste2.setBackground(Color.red);
Liste2.setSize(80,40);
this.add(PC);
this.add(XX);
setVisible(true);
MON PROBLEME EST : JE NE VOIS PAS LA LISTE2 DANS LE PANEL XX !!!!!!!!!!
mport java.io.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.*;
public class Client extends Panel implements Runnable {
Panel PC,PA;
JPanel XX;
private TextField TF;
private TextArea TA;
private List Liste1;
private JList Liste2;
private JScrollPane jScrollPane1;
private Socket s;
DataInputStream din;
DataOutputStream dout;
public Client(String Host,int port) {
this.setLayout(null);
this.setBounds(10,10,1300,600);
PC = new Panel();
PC.setBounds(30, 30, 400, 400);
PC.setBackground(Color.GREEN);
PC.setVisible(true);
XX = new JPanel();
XX.setBounds(510, 30, 500, 400);
XX.setBackground(Color.BLACK);
XX.setVisible(true);
TextField TF = new TextField(50);
TF.setBounds(40, 40, 200, 15);
TF.setBackground(Color.blue);
TF.setSize(50,10);
PC.add(TF);
TextArea TA = new TextArea();
TA.setBounds(40,60,200,80);
TA.setBackground(Color.blue);
PC.add(TA);
JList Liste2 = new JList();
JScrollPane jScrollPane1 = new JScrollPane(Liste2);
jScrollPane1.setBounds(10,10,100,100);
jScrollPane1.setBackground(Color.red);
Liste2.setBounds(15,15,20,20);
Liste2.setBackground(Color.red);
Liste2.setSize(80,40);
this.add(PC);
this.add(XX);
setVisible(true);
MON PROBLEME EST : JE NE VOIS PAS LA LISTE2 DANS LE PANEL XX !!!!!!!!!!
Pour ton problème je te conseille d'aller sur :
www.siteduzero.fr
Tu trouvera solution a ton problème.
Moi je suis sur se site est je peu te dire que tu trouvera peut être la solutuion.
Ps: si l'adresse ne marche pas tape site du zero.
J'espère que sa va t'aider.
www.siteduzero.fr
Tu trouvera solution a ton problème.
Moi je suis sur se site est je peu te dire que tu trouvera peut être la solutuion.
Ps: si l'adresse ne marche pas tape site du zero.
J'espère que sa va t'aider.
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question