begin process at 2010 02 09 16:23:18
  Trouver un code source :
 
dans
 
Accueil > Forum > 

Archive Java

 > 

Archives

 > 

API

 > 

probleme de JProgressBar


Derniers messages déposésPoser une question dans le forum ou lancer une discussion

probleme de JProgressBar

jeudi 1 mai 2003 à 21:31:34 | probleme de JProgressBar

franckouze

Salut a tous

comme le titre l'indique, j'ai un probleme avec une JProgressBar qui ne progresse pas.

Y a t il un champion ici qui pourrait regarder cette source et me dire ce qui ne va pas. Ca fait un moment que je galere dessus et je ne comprends vraiment pas pourquoi ma barre de progression n'avance pas en fonction des setValue()

je precise aussi que j'utilise comme JDK la 1.4.1 RC (la premiere 1.4.1 sortie)

merci

import java.awt.* ;
import javax.swing.* ;
import java.awt.event.* ;

public class TestProgress extends JFrame implements ActionListener {

private JProgressBar progressBar ;
private JButton button ;
private boolean end = false ;

public TestProgress() {
super( "JProgressBar test" ) ;
frameInit() ;
enableEvents( AWTEvent.WINDOW_EVENT_MASK ) ;

progressBar = new JProgressBar( 0 , 1000 ) ;
progressBar.setStringPainted( true ) ;
progressBar.setValue( 0 ) ;
button = new JButton( "Start" ) ;
button.addActionListener( this ) ;

Container content = getContentPane() ;
content.setLayout( new FlowLayout() ) ;
content.add( progressBar ) ;
content.add( button ) ;

addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e ) {
System.exit( 0 ) ;
}
}
) ;

setLocation( 400 , 400 ) ;
pack() ;
setVisible( true ) ;

}

public void actionPerformed( ActionEvent e ) {
int min = progressBar.getMinimum() ;

if ( end ) {
progressBar.setValue( min ) ;
end = false ;
return ;
}

try {
int max = progressBar.getMaximum() ;
for ( int i = min ; i <= max ; i+=10 ) {
Thread.sleep( 100 ) ;
progressBar.setValue( i ) ;
}
} catch ( InterruptedException ex ) {
System.err.println( "Error : " + ex.getMessage() ) ;
ex.printStackTrace() ;
}

end = true ;
}

public static void main( String [] args ) {
new TestProgress() ;
}
}
vendredi 2 mai 2003 à 03:03:42 | Re : probleme de JProgressBar

CoreBreaker



import java.awt.* ;
import javax.swing.* ;
import java.awt.event.* ;

public class TestProgress extends JFrame implements ActionListener {

public JProgressBar progressBar ;
private JButton button ;
private boolean end = false ;

public TestProgress() {
super( "JProgressBar test" ) ;
frameInit() ;
setDefaultCloseOperation(EXIT_ON_CLOSE);

progressBar = new JProgressBar( 0 , 1000 ) ;
progressBar.setStringPainted( true ) ;
progressBar.setValue( 0 ) ;
button = new JButton( "Start" ) ;
button.addActionListener( this ) ;

Container content = getContentPane() ;
content.setLayout( new FlowLayout() ) ;
content.add( progressBar ) ;
content.add( button ) ;

setLocation( 400 , 400 ) ;
pack() ;
setVisible( true ) ;

}

public void actionPerformed( ActionEvent e ) {
final int min = progressBar.getMinimum() ;

if ( end ) {
progressBar.setValue( min ) ;
end = false ;
return ;
}
if( !running )
{
final TestProgress thisFrame= this;
new Thread(new Runnable()
{
int minval= min;
TestProgress mFrame= thisFrame;
public void run()
{
mFrame.setRun();
try {
int max = mFrame.progressBar.getMaximum() ;
for ( int i = minval ; i <= max ; i+=10 ) {
Thread.sleep( 100 ) ;
mFrame.progressBar.setValue( i ) ;
}
} catch ( InterruptedException ex ) {
System.err.println( "Error : " + ex.getMessage() ) ;
ex.printStackTrace() ;
}
}
}).start();
}
}

private boolean running=false;

public void setRun()
{
running= true;
}

public void setEnd()
{
end = true ;
running= false;
}

public static void main( String [] args ) {
new TestProgress() ;
}
}


Core Breaker


-------------------------------
Réponse au message :
-------------------------------

> Salut a tous
>
> comme le titre l'indique, j'ai un probleme avec une JProgressBar qui ne progresse pas.
>
> Y a t il un champion ici qui pourrait regarder cette source et me dire ce qui ne va pas. Ca fait un moment que je galere dessus et je ne comprends vraiment pas pourquoi ma barre de progression n'avance pas en fonction des setValue()
>
> je precise aussi que j'utilise comme JDK la 1.4.1 RC (la premiere 1.4.1 sortie)
>
> merci
>
> import java.awt.* ;
> import javax.swing.* ;
> import java.awt.event.* ;
>
> public class TestProgress extends JFrame implements ActionListener {
>
> private JProgressBar progressBar ;
> private JButton button ;
> private boolean end = false ;
>
> public TestProgress() {
> super( "JProgressBar test" ) ;
> frameInit() ;
> enableEvents( AWTEvent.WINDOW_EVENT_MASK ) ;
>
> progressBar = new JProgressBar( 0 , 1000 ) ;
> progressBar.setStringPainted( true ) ;
> progressBar.setValue( 0 ) ;
> button = new JButton( "Start" ) ;
> button.addActionListener( this ) ;
>
> Container content = getContentPane() ;
> content.setLayout( new FlowLayout() ) ;
> content.add( progressBar ) ;
> content.add( button ) ;
>
> addWindowListener(
> new WindowAdapter() {
> public void windowClosing( WindowEvent e ) {
> System.exit( 0 ) ;
> }
> }
> ) ;
>
> setLocation( 400 , 400 ) ;
> pack() ;
> setVisible( true ) ;
>
> }
>
> public void actionPerformed( ActionEvent e ) {
> int min = progressBar.getMinimum() ;
>
> if ( end ) {
> progressBar.setValue( min ) ;
> end = false ;
> return ;
> }
>
> try {
> int max = progressBar.getMaximum() ;
> for ( int i = min ; i <= max ; i+=10 ) {
> Thread.sleep( 100 ) ;
> progressBar.setValue( i ) ;
> }
> } catch ( InterruptedException ex ) {
> System.err.println( "Error : " + ex.getMessage() ) ;
> ex.printStackTrace() ;
> }
>
> end = true ;
> }
>
> public static void main( String [] args ) {
> new TestProgress() ;
> }
> }
lundi 5 mai 2003 à 14:38:18 | Re : probleme de JProgressBar

franckouze


salut et merci
ton exemple marche pas mal du tout mais pourrais tu m'expliquer pourquoi ca marche mieux en 'threadant' le travail de la scrollbar ?


-------------------------------
Réponse au message :
-------------------------------

>
>

> import java.awt.* ;
> import javax.swing.* ;
> import java.awt.event.* ;
>
> public class TestProgress extends JFrame implements ActionListener {
>
> public JProgressBar progressBar ;
> private JButton button ;
> private boolean end = false ;
>
> public TestProgress() {
> super( "JProgressBar test" ) ;
> frameInit() ;
> setDefaultCloseOperation(EXIT_ON_CLOSE);
>
> progressBar = new JProgressBar( 0 , 1000 ) ;
> progressBar.setStringPainted( true ) ;
> progressBar.setValue( 0 ) ;
> button = new JButton( "Start" ) ;
> button.addActionListener( this ) ;
>
> Container content = getContentPane() ;
> content.setLayout( new FlowLayout() ) ;
> content.add( progressBar ) ;
> content.add( button ) ;
>
> setLocation( 400 , 400 ) ;
> pack() ;
> setVisible( true ) ;
>
> }
>
> public void actionPerformed( ActionEvent e ) {
> final int min = progressBar.getMinimum() ;
>
> if ( end ) {
> progressBar.setValue( min ) ;
> end = false ;
> return ;
> }
> if( !running )
> {
> final TestProgress thisFrame= this;
> new Thread(new Runnable()
> {
> int minval= min;
> TestProgress mFrame= thisFrame;
> public void run()
> {
> mFrame.setRun();
> try {
> int max = mFrame.progressBar.getMaximum() ;
> for ( int i = minval ; i <= max ; i+=10 ) {
> Thread.sleep( 100 ) ;
> mFrame.progressBar.setValue( i ) ;
> }
> } catch ( InterruptedException ex ) {
> System.err.println( "Error : " + ex.getMessage() ) ;
> ex.printStackTrace() ;
> }
> }
> }).start();
> }
> }
>
> private boolean running=false;
>
> public void setRun()
> {
> running= true;
> }
>
> public void setEnd()
> {
> end = true ;
> running= false;
> }
>
> public static void main( String [] args ) {
> new TestProgress() ;
> }
> }
>
>

> Core Breaker
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> > Salut a tous
> >
> > comme le titre l'indique, j'ai un probleme avec une JProgressBar qui ne progresse pas.
> >
> > Y a t il un champion ici qui pourrait regarder cette source et me dire ce qui ne va pas. Ca fait un moment que je galere dessus et je ne comprends vraiment pas pourquoi ma barre de progression n'avance pas en fonction des setValue()
> >
> > je precise aussi que j'utilise comme JDK la 1.4.1 RC (la premiere 1.4.1 sortie)
> >
> > merci
> >
> > import java.awt.* ;
> > import javax.swing.* ;
> > import java.awt.event.* ;
> >
> > public class TestProgress extends JFrame implements ActionListener {
> >
> > private JProgressBar progressBar ;
> > private JButton button ;
> > private boolean end = false ;
> >
> > public TestProgress() {
> > super( "JProgressBar test" ) ;
> > frameInit() ;
> > enableEvents( AWTEvent.WINDOW_EVENT_MASK ) ;
> >
> > progressBar = new JProgressBar( 0 , 1000 ) ;
> > progressBar.setStringPainted( true ) ;
> > progressBar.setValue( 0 ) ;
> > button = new JButton( "Start" ) ;
> > button.addActionListener( this ) ;
> >
> > Container content = getContentPane() ;
> > content.setLayout( new FlowLayout() ) ;
> > content.add( progressBar ) ;
> > content.add( button ) ;
> >
> > addWindowListener(
> > new WindowAdapter() {
> > public void windowClosing( WindowEvent e ) {
> > System.exit( 0 ) ;
> > }
> > }
> > ) ;
> >
> > setLocation( 400 , 400 ) ;
> > pack() ;
> > setVisible( true ) ;
> >
> > }
> >
> > public void actionPerformed( ActionEvent e ) {
> > int min = progressBar.getMinimum() ;
> >
> > if ( end ) {
> > progressBar.setValue( min ) ;
> > end = false ;
> > return ;
> > }
> >
> > try {
> > int max = progressBar.getMaximum() ;
> > for ( int i = min ; i <= max ; i+=10 ) {
> > Thread.sleep( 100 ) ;
> > progressBar.setValue( i ) ;
> > }
> > } catch ( InterruptedException ex ) {
> > System.err.println( "Error : " + ex.getMessage() ) ;
> > ex.printStackTrace() ;
> > }
> >
> > end = true ;
> > }
> >
> > public static void main( String [] args ) {
> > new TestProgress() ;
> > }
> > }
>
lundi 5 mai 2003 à 15:53:22 | Re : probleme de JProgressBar

CoreBreaker

C'est simple dans ton code initial (celui que tu as indique ici)
Le rafraichissement de l'interface graphique ne pouvais pas se faire tant que ta bouche qui faisait le setValue pour la progress bar, était active. Il falait paralléliser d'une part ce qui faisait le setValue tout en rendant la main à l'interface graphique pour ne pas brider le système qui la rafaichit.
De plus si toutes les autres actions (par exemple d'autre boutons dans l'interface) sont inhibés car tout le temps machine est occupé par cette fameuse boucle.

Core Breaker


-------------------------------
Réponse au message :
-------------------------------

>
> salut et merci
> ton exemple marche pas mal du tout mais pourrais tu m'expliquer pourquoi ca marche mieux en 'threadant' le travail de la scrollbar ?
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> >

> > import java.awt.* ;
> > import javax.swing.* ;
> > import java.awt.event.* ;
> >
> > public class TestProgress extends JFrame implements ActionListener {
> >
> > public JProgressBar progressBar ;
> > private JButton button ;
> > private boolean end = false ;
> >
> > public TestProgress() {
> > super( "JProgressBar test" ) ;
> > frameInit() ;
> > setDefaultCloseOperation(EXIT_ON_CLOSE);
> >
> > progressBar = new JProgressBar( 0 , 1000 ) ;
> > progressBar.setStringPainted( true ) ;
> > progressBar.setValue( 0 ) ;
> > button = new JButton( "Start" ) ;
> > button.addActionListener( this ) ;
> >
> > Container content = getContentPane() ;
> > content.setLayout( new FlowLayout() ) ;
> > content.add( progressBar ) ;
> > content.add( button ) ;
> >
> > setLocation( 400 , 400 ) ;
> > pack() ;
> > setVisible( true ) ;
> >
> > }
> >
> > public void actionPerformed( ActionEvent e ) {
> > final int min = progressBar.getMinimum() ;
> >
> > if ( end ) {
> > progressBar.setValue( min ) ;
> > end = false ;
> > return ;
> > }
> > if( !running )
> > {
> > final TestProgress thisFrame= this;
> > new Thread(new Runnable()
> > {
> > int minval= min;
> > TestProgress mFrame= thisFrame;
> > public void run()
> > {
> > mFrame.setRun();
> > try {
> > int max = mFrame.progressBar.getMaximum() ;
> > for ( int i = minval ; i <= max ; i+=10 ) {
> > Thread.sleep( 100 ) ;
> > mFrame.progressBar.setValue( i ) ;
> > }
> > } catch ( InterruptedException ex ) {
> > System.err.println( "Error : " + ex.getMessage() ) ;
> > ex.printStackTrace() ;
> > }
> > }
> > }).start();
> > }
> > }
> >
> > private boolean running=false;
> >
> > public void setRun()
> > {
> > running= true;
> > }
> >
> > public void setEnd()
> > {
> > end = true ;
> > running= false;
> > }
> >
> > public static void main( String [] args ) {
> > new TestProgress() ;
> > }
> > }
> >
> >

> > Core Breaker
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Salut a tous
> > >
> > > comme le titre l'indique, j'ai un probleme avec une JProgressBar qui ne progresse pas.
> > >
> > > Y a t il un champion ici qui pourrait regarder cette source et me dire ce qui ne va pas. Ca fait un moment que je galere dessus et je ne comprends vraiment pas pourquoi ma barre de progression n'avance pas en fonction des setValue()
> > >
> > > je precise aussi que j'utilise comme JDK la 1.4.1 RC (la premiere 1.4.1 sortie)
> > >
> > > merci
> > >
> > > import java.awt.* ;
> > > import javax.swing.* ;
> > > import java.awt.event.* ;
> > >
> > > public class TestProgress extends JFrame implements ActionListener {
> > >
> > > private JProgressBar progressBar ;
> > > private JButton button ;
> > > private boolean end = false ;
> > >
> > > public TestProgress() {
> > > super( "JProgressBar test" ) ;
> > > frameInit() ;
> > > enableEvents( AWTEvent.WINDOW_EVENT_MASK ) ;
> > >
> > > progressBar = new JProgressBar( 0 , 1000 ) ;
> > > progressBar.setStringPainted( true ) ;
> > > progressBar.setValue( 0 ) ;
> > > button = new JButton( "Start" ) ;
> > > button.addActionListener( this ) ;
> > >
> > > Container content = getContentPane() ;
> > > content.setLayout( new FlowLayout() ) ;
> > > content.add( progressBar ) ;
> > > content.add( button ) ;
> > >
> > > addWindowListener(
> > > new WindowAdapter() {
> > > public void windowClosing( WindowEvent e ) {
> > > System.exit( 0 ) ;
> > > }
> > > }
> > > ) ;
> > >
> > > setLocation( 400 , 400 ) ;
> > > pack() ;
> > > setVisible( true ) ;
> > >
> > > }
> > >
> > > public void actionPerformed( ActionEvent e ) {
> > > int min = progressBar.getMinimum() ;
> > >
> > > if ( end ) {
> > > progressBar.setValue( min ) ;
> > > end = false ;
> > > return ;
> > > }
> > >
> > > try {
> > > int max = progressBar.getMaximum() ;
> > > for ( int i = min ; i <= max ; i+=10 ) {
> > > Thread.sleep( 100 ) ;
> > > progressBar.setValue( i ) ;
> > > }
> > > } catch ( InterruptedException ex ) {
> > > System.err.println( "Error : " + ex.getMessage() ) ;
> > > ex.printStackTrace() ;
> > > }
> > >
> > > end = true ;
> > > }
> > >
> > > public static void main( String [] args ) {
> > > new TestProgress() ;
> > > }
> > > }
> >
>
lundi 5 mai 2003 à 15:55:20 | Re : probleme de JProgressBar

CoreBreaker

C'est simple dans ton code initial (celui que tu as indique ici)
Le rafraichissement de l'interface graphique ne pouvais pas se faire tant que ta bouche qui faisait le setValue pour la progress bar, était active. Il falait paralléliser d'une part ce qui faisait le setValue tout en rendant la main à l'interface graphique pour ne pas brider le système qui la rafaichit.
De plus si toutes les autres actions (par exemple d'autre boutons dans l'interface) sont inhibés car tout le temps machine est occupé par cette fameuse boucle.

Core Breaker



Core Breaker


-------------------------------
Réponse au message :
-------------------------------

>
> salut et merci
> ton exemple marche pas mal du tout mais pourrais tu m'expliquer pourquoi ca marche mieux en 'threadant' le travail de la scrollbar ?
>
>
> -------------------------------
> Réponse au message :
> -------------------------------
>
> >
> >

> > import java.awt.* ;
> > import javax.swing.* ;
> > import java.awt.event.* ;
> >
> > public class TestProgress extends JFrame implements ActionListener {
> >
> > public JProgressBar progressBar ;
> > private JButton button ;
> > private boolean end = false ;
> >
> > public TestProgress() {
> > super( "JProgressBar test" ) ;
> > frameInit() ;
> > setDefaultCloseOperation(EXIT_ON_CLOSE);
> >
> > progressBar = new JProgressBar( 0 , 1000 ) ;
> > progressBar.setStringPainted( true ) ;
> > progressBar.setValue( 0 ) ;
> > button = new JButton( "Start" ) ;
> > button.addActionListener( this ) ;
> >
> > Container content = getContentPane() ;
> > content.setLayout( new FlowLayout() ) ;
> > content.add( progressBar ) ;
> > content.add( button ) ;
> >
> > setLocation( 400 , 400 ) ;
> > pack() ;
> > setVisible( true ) ;
> >
> > }
> >
> > public void actionPerformed( ActionEvent e ) {
> > final int min = progressBar.getMinimum() ;
> >
> > if ( end ) {
> > progressBar.setValue( min ) ;
> > end = false ;
> > return ;
> > }
> > if( !running )
> > {
> > final TestProgress thisFrame= this;
> > new Thread(new Runnable()
> > {
> > int minval= min;
> > TestProgress mFrame= thisFrame;
> > public void run()
> > {
> > mFrame.setRun();
> > try {
> > int max = mFrame.progressBar.getMaximum() ;
> > for ( int i = minval ; i <= max ; i+=10 ) {
> > Thread.sleep( 100 ) ;
> > mFrame.progressBar.setValue( i ) ;
> > }
> > } catch ( InterruptedException ex ) {
> > System.err.println( "Error : " + ex.getMessage() ) ;
> > ex.printStackTrace() ;
> > }
> > }
> > }).start();
> > }
> > }
> >
> > private boolean running=false;
> >
> > public void setRun()
> > {
> > running= true;
> > }
> >
> > public void setEnd()
> > {
> > end = true ;
> > running= false;
> > }
> >
> > public static void main( String [] args ) {
> > new TestProgress() ;
> > }
> > }
> >
> >

> > Core Breaker
> >
> >
> > -------------------------------
> > Réponse au message :
> > -------------------------------
> >
> > > Salut a tous
> > >
> > > comme le titre l'indique, j'ai un probleme avec une JProgressBar qui ne progresse pas.
> > >
> > > Y a t il un champion ici qui pourrait regarder cette source et me dire ce qui ne va pas. Ca fait un moment que je galere dessus et je ne comprends vraiment pas pourquoi ma barre de progression n'avance pas en fonction des setValue()
> > >
> > > je precise aussi que j'utilise comme JDK la 1.4.1 RC (la premiere 1.4.1 sortie)
> > >
> > > merci
> > >
> > > import java.awt.* ;
> > > import javax.swing.* ;
> > > import java.awt.event.* ;
> > >
> > > public class TestProgress extends JFrame implements ActionListener {
> > >
> > > private JProgressBar progressBar ;
> > > private JButton button ;
> > > private boolean end = false ;
> > >
> > > public TestProgress() {
> > > super( "JProgressBar test" ) ;
> > > frameInit() ;
> > > enableEvents( AWTEvent.WINDOW_EVENT_MASK ) ;
> > >
> > > progressBar = new JProgressBar( 0 , 1000 ) ;
> > > progressBar.setStringPainted( true ) ;
> > > progressBar.setValue( 0 ) ;
> > > button = new JButton( "Start" ) ;
> > > button.addActionListener( this ) ;
> > >
> > > Container content = getContentPane() ;
> > > content.setLayout( new FlowLayout() ) ;
> > > content.add( progressBar ) ;
> > > content.add( button ) ;
> > >
> > > addWindowListener(
> > > new WindowAdapter() {
> > > public void windowClosing( WindowEvent e ) {
> > > System.exit( 0 ) ;
> > > }
> > > }
> > > ) ;
> > >
> > > setLocation( 400 , 400 ) ;
> > > pack() ;
> > > setVisible( true ) ;
> > >
> > > }
> > >
> > > public void actionPerformed( ActionEvent e ) {
> > > int min = progressBar.getMinimum() ;
> > >
> > > if ( end ) {
> > > progressBar.setValue( min ) ;
> > > end = false ;
> > > return ;
> > > }
> > >
> > > try {
> > > int max = progressBar.getMaximum() ;
> > > for ( int i = min ; i <= max ; i+=10 ) {
> > > Thread.sleep( 100 ) ;
> > > progressBar.setValue( i ) ;
> > > }
> > > } catch ( InterruptedException ex ) {
> > > System.err.println( "Error : " + ex.getMessage() ) ;
> > > ex.printStackTrace() ;
> > > }
> > >
> > > end = true ;
> > > }
> > >
> > > public static void main( String [] args ) {
> > > new TestProgress() ;
> > > }
> > > }
> >
>
mercredi 15 septembre 2004 à 15:57:27 | Re : probleme de JProgressBar

kergro

Salut, je pense avoir le même problème que franckouze, je cherche a executer des bat qui font des copies de fichiers et du zip, et je contrôle que les fichiers soient bien arrivé dans le repertoire de destination et je voudrai visualiser cette évolution avec une JProgressBar. Pour le moment elle affiche 0% et 100% Pourai tu me corriger mon codes car je ne comprends vraiment pas ce que tu as fait pour franckouze.

Merci ;

if(source == non)
{
try
{
Runtime run = Runtime.getRuntime();
run.exec( "delcle.bat");
// Thread.sleep(2000);
run.exec( "sauve.bat" );
// run.halt(0);
File repsource = new File("C:\\di0");
File repdest = new File("E:\\test");
String[] temp1 = new String[10000];
String[] temp2 = new String[10000];
File[] temp22;
temp1 = repsource.list();
temp2 = repdest.list();
temp22 = repdest.listFiles();
nbfichiers = temp22.length;
int j = 0;
current.setValue(0);
for(j = 0; j < nbfichiers; j++)
{
if(temp1[j].equals(temp2[j]))
{
try{Thread.sleep(1500);}catch(Exception e){}
current.setValue(num);
System.out.println(temp1[j]);
System.out.println(temp2[j]);
num = num + 100/nbfichiers;
current.setValue(num);
}
}
System.out.println("fini");
}catch(Exception e){}
}


Cette discussion est classée dans : button, public, progressbar, jprogressbar, setvalue


Répondre à ce message

Sujets en rapport avec ce message

Correction d'une classe [ par larecrue ] Bonjour, j'ai un problème et je galère dessus depuis une semaine, ca me prend la tete.Voila le source simplifier de ce que je veux faire, aidez moi s' pb avec evenement souris(mousemove) [ par nerser ] je voudrait faire ceci:quand je passe la souris au dessus de button il changr de couleur mais ce dernier ne revien pas a sa couleur initial quand la s dessin graphique 2d [ par huongthuy ] Bonjour tout le monde! je suis étudiant.j'ai un projet.Le projet demande les fonctions:la fonction linéaire y = ab, la fonction affine y = ax+b, <td c probleme UImanager [ par def95 ] Bonjour, j'ai un probleme au niveau du UImanager :J'ai creé une classe TimerBar qui hérite de JProgressBar et je souhaite pôuvoir changer la couleur d Aidez-moi, svp! [ par fabouchra ] j'ai un erreur dans mon code mais je sais pas comment le resoudre si quelque peu m'aide ...je serais tres heureuse.mercijavascript:Insert_Emoticon('/i 2 BorderLayout + 1 image... ca fait trop pour moi :( [ par omcougar ] Bonjour,J'implore par avance le pardon de tous ceux qui vont trouver ma question stupide, mais j'ai beaucoup de mal à encpasuler les grids,panel,image jProgressbar dependante [ par larecrue ] Bonjour,J'ai un petit probleme: je voudrais que ma jProgressbar ( dans Maclasse ) affiche l'avancement d'une action dans une autre classe ( DeuxiemeCl couleur JProgressBar [ par def95 ] Je voudrais modifier la couleur de la barre d'une JProgressBar avec la methode paintComponent mais il n'y a aucun resultat. Est-ce qu'il y aurai une a Afficher les données sur une liste : Struts+Tomcat+JSP+Oracle+Hibernate [ par kamalfr ] Bonjour: j'ai un Prb pr afficher les données sur une liste: jutiliz:Struts+Tomcat+JSP+Oracle+Hibernate.1: il y a pas de prblm avc Hibernate car deja j aide pour affichage [ par copin ] Salut! Je suis entrian de devellopper un prog de blackjack en java et j'ai un petit probleme pour joindre deux codes en un! Ce que je veux faire c'est


Nos sponsors


Sondage...

Comparez les prix

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,452 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales