473,503 Members | 10,178 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

i need help bleas in this code (GUI and Threads )

11 New Member
hi all bleas h need help in cods

GUI and Thread

i need help function
start ()
run()
white ()
join ()
sleep ()
setTitel ()
suspond ()
resume ()

and This class

class Thear
class track
class TestTrack
class moveTrack
class addCarrige

bleas help :)


Expand|Select|Wrap|Line Numbers
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4.  
  5.  
  6. public class MoveCar extends JFrame{
  7.  
  8.     static boolean START=false;
  9.     static boolean Check=false;
  10.     static int SLEEP = 1000;
  11.     static int INDEX_START=0;
  12.     JPanel screen, area , controlroom;
  13.     JButton[] street , keybord;
  14.     String s[] = {"Start","Stop","Fast","Slow" ,"Rest","Check"};
  15.  
  16.     ImageIcon images[] =new ImageIcon[] {  
  17.                     new ImageIcon("images/UpRight.jpg"),
  18.                     new ImageIcon("images/RightDown.jpg"),
  19.                     new ImageIcon("images/NoTrack.jpg"),
  20.                     new ImageIcon("images/NoTrack.jpg"),
  21.                     new ImageIcon("images/NoTrack.jpg"),
  22.  
  23.                     new ImageIcon("images/Vert.jpg"),
  24.                     new ImageIcon("images/DownRight.jpg"),
  25.                     new ImageIcon("images/Horiz.jpg"),
  26.                     new ImageIcon("images/RightDown.jpg"),
  27.                     new ImageIcon("images/NoTrack.jpg"),
  28.  
  29.                     new ImageIcon("images/Vert.jpg"),
  30.                     new ImageIcon("images/NoTrack.jpg"),
  31.                     new ImageIcon("images/NoTrack.jpg"),
  32.                     new ImageIcon("images/Vert.jpg"),
  33.                     new ImageIcon("images/NoTrack.jpg"), 
  34.  
  35.                     new ImageIcon("images/Vert.jpg"),
  36.                     new ImageIcon("images/UpRight.jpg"),
  37.                     new ImageIcon("images/Horiz.jpg"),
  38.                     new ImageIcon("images/RightUp.jpg"),
  39.                     new ImageIcon("images/NoTrack.jpg"), 
  40.  
  41.  
  42.                     new ImageIcon("images/DownRight.jpg"),
  43.                     new ImageIcon("images/RightUp.jpg"),
  44.                     new ImageIcon("images/NoTrack.jpg"), 
  45.                     new ImageIcon("images/NoTrack.jpg"), 
  46.                     new ImageIcon("images/NoTrack.jpg") 
  47.     };
  48.  
  49.  
  50. ImageIcon[]imagesTrain= { "images/TrainUp.jpg","images/TrainLeft.jpg","images/TrainLeft.jpg","images/TrainUp.jpg","images/TrainLeft.jpg",
  51.  "images/TrainLeft.jpg","images/TrainDown.jpg", "images/TrainDown.jpg","images/TrainDown.jpg","images/TrainDown.jpg",
  52.  "images/TrainRight.jpg","images/TrainUp.jpg","images/TrainRight.jpg","images/TrainRight.jpg","images/TrainUp.jpg"};   
  53.  
  54.  
  55.     int[]line={13, 18,17,16,21,20,15,10,5,0,1,6,7,8}; 
  56.  
  57.     ImageIcon icon;
  58.  
  59.     JLabel labelInfo;
  60.  
  61.  
  62.     public MoveTrain () {   
  63.        screen = new JPanel(new GridLayout(1,1));
  64.        Font f =new Font ("Sanserif",Font.BOLD,18);
  65.        labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
  66.        labelInfo.setFont(f);
  67.  
  68.        screen.setBackground(Color.red);
  69.        screen.add(labelInfo);
  70.        getContentPane().add(BorderLayout.NORTH,screen );
  71.  
  72.         street = new JButton[images.length];
  73.         area = new JPanel (new GridLayout(5,5));
  74.  
  75.         for(int i=0;i<images.length;i++){
  76.             street[i] = new JButton("", images[i]);
  77.             area.add(street[i]);
  78.         }  
  79.         getContentPane().add(BorderLayout.CENTER,area );    
  80.         keybord = new JButton[6];
  81.         controlroom = new JPanel    (new GridLayout(3,3));  
  82.  
  83.         for (int i=0; i <6; i++)
  84.         {
  85.             keybord[i] = new JButton(s[i]);
  86.             keybord[i].addActionListener(getAction(s[i]));
  87.             controlroom.add(keybord[i]);
  88.  
  89.         }       
  90.         getContentPane().add(BorderLayout.SOUTH,controlroom );
  91.     }
  92.  
  93.  
  94.  
  95.  
  96.  
  97. class moveTrain extends Thread
  98. {
  99.     Trian t = new Train();
  100.     int Speed = 10;
  101.     t.Start();
  102.     int s = t.getSpeed();
  103.     Sleep(s);
  104. }
  105. void run()
  106. {
  107.     while(true)
  108.         Sleep()
  109.         Stop
  110.         t.moveTrain()
  111. }
  112.  
  113.  
  114. public class TrainTest      
  115.     public static void main(String[]args){
  116.         MoveCar c= new MoveCar ();
  117.         MoveTrain mt = new MoveTrain();
  118.         c.setTitle("Train");
  119.         c.setSize(421,550);
  120.         c.setVisible(true);
  121.         c.addWindowListener (
  122.         new WindowAdapter (){
  123.              public void windowClosing(WindowEvent e ){
  124.                   System.exit(0); 
  125.              }
  126.         });
  127.         mt.start();
  128.     }
  129. }
this Link imges http://www.4shared.com/file/13555551/ff070bf/images.html

Thanks all :)
Apr 19 '07 #1
14 1846
JosAH
11,448 Recognized Expert MVP
hi all bleas h need help in cods
I'm sorry for saying so, but that code is a mess: typos and logic errors,
statements at class scope, constructors of one class defined in another class,
etc.etc. etc. Please try to compile your code, carefully read what the
compiler has to say about it, and try to fix the errors.

I can't help you out with this without rewriting the entire shebang (which I'm
not going to do). Programming is not about glueing pieces of code together.
You have to carefully organize your classes, methods and statements.

Best of luck and

kind regards,

Jos
Apr 19 '07 #2
ra7l
11 New Member
ok sir Thanks to comment
this new code but not use Theard

i need Theard


Expand|Select|Wrap|Line Numbers
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4.  
  5.  
  6. public class MoveCar extends JFrame{
  7.  
  8.     static boolean START=false;
  9.     static boolean Check=false;
  10.     static int SLEEP = 1000;
  11.     static int INDEX_START=0;
  12.     JPanel screen, area , controlroom;
  13.     JButton[] street , keybord;
  14.     String s[] = {"Start","Stop","Fast","Slow" ,"Rest","Check"};
  15.  
  16.     ImageIcon images[] =new ImageIcon[] {  
  17.                     new ImageIcon("images/UpRight.jpg"),
  18.                     new ImageIcon("images/RightDown.jpg"),
  19.                     new ImageIcon("images/NoTrack.jpg"),
  20.                     new ImageIcon("images/NoTrack.jpg"),
  21.                     new ImageIcon("images/NoTrack.jpg"),
  22.  
  23.                     new ImageIcon("images/Vert.jpg"),
  24.                     new ImageIcon("images/DownRight.jpg"),
  25.                     new ImageIcon("images/Horiz.jpg"),
  26.                     new ImageIcon("images/RightDown.jpg"),
  27.                     new ImageIcon("images/NoTrack.jpg"),
  28.  
  29.                     new ImageIcon("images/Vert.jpg"),
  30.                     new ImageIcon("images/NoTrack.jpg"),
  31.                     new ImageIcon("images/NoTrack.jpg"),
  32.                     new ImageIcon("images/Vert.jpg"),
  33.                     new ImageIcon("images/NoTrack.jpg"), 
  34.  
  35.                     new ImageIcon("images/Vert.jpg"),
  36.                     new ImageIcon("images/UpRight.jpg"),
  37.                     new ImageIcon("images/Horiz.jpg"),
  38.                     new ImageIcon("images/RightUp.jpg"),
  39.                     new ImageIcon("images/NoTrack.jpg"), 
  40.  
  41.  
  42.                     new ImageIcon("images/DownRight.jpg"),
  43.                     new ImageIcon("images/RightUp.jpg"),
  44.                     new ImageIcon("images/NoTrack.jpg"), 
  45.                     new ImageIcon("images/NoTrack.jpg"), 
  46.                     new ImageIcon("images/NoTrack.jpg") 
  47.     };
  48.  
  49.  
  50.  
  51.     ImageIcon[]imagesTrain=new ImageIcon[]{ 
  52.         new ImageIcon("images/TrainDown.jpg"),
  53.         new ImageIcon("images/TrainDown.jpg"),
  54.         new ImageIcon("images/TrainLeft.jpg"),
  55.         new ImageIcon("images/TrainLeft.jpg"),
  56.         new ImageIcon("images/TrainDown.jpg"),
  57.         new ImageIcon("images/TrainLeft.jpg"),
  58.         new ImageIcon("images/TrainUp.jpg"),
  59.         new ImageIcon("images/TrainUp.jpg"),
  60.         new ImageIcon("images/TrainUp.jpg"),
  61.         new ImageIcon("images/TrainUp.jpg"),
  62.         new ImageIcon("images/TrainRight.jpg"),
  63.         new ImageIcon("images/TrainDown.jpg"),
  64.         new ImageIcon("images/TrainRight.jpg"),
  65.         new ImageIcon("images/TrainRight.jpg")
  66.     };
  67.  
  68.  
  69.  
  70.  
  71.  
  72.     int[]line={13, 18,17,16,21,20,15,10,5,0,1,6,7,8}; 
  73.  
  74.  
  75.     ImageIcon icon;
  76.  
  77.     JLabel labelInfo;
  78.  
  79.  
  80.     public MoveCar () {   
  81.        screen = new JPanel(new GridLayout(1,1));
  82.        Font f =new Font ("Sanserif",Font.BOLD,18);
  83.        labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
  84.        labelInfo.setFont(f);
  85.  
  86.        screen.setBackground(Color.red);
  87.        screen.add(labelInfo);
  88.        getContentPane().add(BorderLayout.NORTH,screen );
  89.  
  90.         street = new JButton[images.length];
  91.         area = new JPanel (new GridLayout(5,5));
  92.  
  93.         for(int i=0;i<images.length;i++){
  94.             street[i] = new JButton("", images[i]);
  95.             area.add(street[i]);
  96.         }  
  97.         getContentPane().add(BorderLayout.CENTER,area );    
  98.         keybord = new JButton[6];
  99.         controlroom = new JPanel    (new GridLayout(3,3));         
  100.         for (int i=0; i <6; i++)
  101.         {
  102.             keybord[i] = new JButton(s[i]);
  103.             keybord[i].addActionListener(getAction(s[i]));
  104.             controlroom.add(keybord[i]);
  105.  
  106.         }       
  107.         getContentPane().add(BorderLayout.SOUTH,controlroom );
  108.     }
  109.  
  110.     private ActionListener getAction(String nameAction){
  111.         if(nameAction.equalsIgnoreCase("Start")){              return new ActionListener(){
  112.                 public void actionPerformed(ActionEvent e){
  113.                     try{
  114.                         labelInfo.setText(s[0]);
  115.                         keybord[0].setEnabled(START);
  116.                         START = true;    
  117.                         startTrain();
  118.                     }catch(Exception ex){
  119.                         ex.printStackTrace();
  120.                     }    
  121.                 }
  122.             };
  123.         }
  124.         if(nameAction.equalsIgnoreCase("Stop")){              return new ActionListener(){
  125.                 public void actionPerformed(ActionEvent e){
  126.                     try{
  127.                         labelInfo.setText(s[1]);
  128.                         keybord[0].setEnabled(START);
  129.                         START=false;
  130.                         keybord[5].setEnabled(Check);
  131.                         Check=false;
  132.                     }catch(Exception ex){
  133.                         ex.printStackTrace();
  134.                     }    
  135.                 }
  136.             };
  137.         }
  138.         if(nameAction.equalsIgnoreCase("Fast")){
  139.             return new ActionListener(){
  140.                 public void actionPerformed(ActionEvent e){
  141.                     try{
  142.                         labelInfo.setText(s[2]);
  143.                         SLEEP=500;
  144.                     }catch(Exception ex){
  145.                         ex.printStackTrace();
  146.                     }    
  147.                 }
  148.             };
  149.         }
  150.         if(nameAction.equalsIgnoreCase("Slow")){
  151.             return new ActionListener(){
  152.                 public void actionPerformed(ActionEvent e){
  153.                     try{
  154.                         labelInfo.setText(s[3]);
  155.                         SLEEP=5000;
  156.                     }catch(Exception ex){
  157.                         ex.printStackTrace();
  158.                     }    
  159.                 }
  160.             };
  161.         }
  162.  
  163.  
  164.  
  165.         return null;
  166.     } 
  167.  
  168.  
  169. /**
  170. *     @author Final Heaven
  171. */
  172.     public void startTrain() { 
  173.         Thread    t    = new Thread(new Runnable()
  174.  
  175.  {
  176.             public void run()  {
  177.                 for(int i=INDEX_START; START; i++){                        
  178.                     street[line[(i%14)]].setIcon(imagesTrain[(i%14)]); 
  179.                     try{
  180.                         Thread.currentThread().sleep(SLEEP);
  181.                     }
  182.                     catch(Exception ee){
  183.                         ee.printStackTrace();
  184.                     }
  185.                     INDEX_START=i;
  186.                     if(START)street[line[(i%14)]].setIcon(images[line[(i%14)]]);
  187.  
  188.                 }
  189.  
  190.                }                   
  191.  
  192.  
  193.         });
  194.         t.start();
  195.     }
  196.  
  197.  
  198.     public static void main(String[]args){
  199.         MoveCar c= new MoveCar ();
  200.         c.setTitle("Train");
  201.         c.setSize(421,550);
  202.         c.setVisible(true);
  203.         c.addWindowListener (
  204.         new WindowAdapter (){
  205.              public void windowClosing(WindowEvent e ){
  206.                   System.exit(0); 
  207.              }
  208.         });
  209.     }
  210. }


Thanks :)
Apr 19 '07 #3
r035198x
13,262 MVP
ok sir Thanks to comment
this new code but not use Theard

i need Theard


Expand|Select|Wrap|Line Numbers
  1. import java.awt.*;
  2. import java.awt.event.*;
  3. import javax.swing.*;
  4.  
  5.  
  6. public class MoveCar extends JFrame{
  7.  
  8. static boolean START=false;
  9. static boolean Check=false;
  10.     static int SLEEP = 1000;
  11. static int INDEX_START=0;
  12. JPanel screen, area , controlroom;
  13. JButton[] street , keybord;
  14. String s[] = {"Start","Stop","Fast","Slow" ,"Rest","Check"};
  15.  
  16. ImageIcon images[] =new ImageIcon[] { 
  17. new ImageIcon("images/UpRight.jpg"),
  18. new ImageIcon("images/RightDown.jpg"),
  19. new ImageIcon("images/NoTrack.jpg"),
  20. new ImageIcon("images/NoTrack.jpg"),
  21. new ImageIcon("images/NoTrack.jpg"),
  22.  
  23. new ImageIcon("images/Vert.jpg"),
  24. new ImageIcon("images/DownRight.jpg"),
  25. new ImageIcon("images/Horiz.jpg"),
  26. new ImageIcon("images/RightDown.jpg"),
  27. new ImageIcon("images/NoTrack.jpg"),
  28.  
  29. new ImageIcon("images/Vert.jpg"),
  30. new ImageIcon("images/NoTrack.jpg"),
  31. new ImageIcon("images/NoTrack.jpg"),
  32. new ImageIcon("images/Vert.jpg"),
  33. new ImageIcon("images/NoTrack.jpg"), 
  34.  
  35. new ImageIcon("images/Vert.jpg"),
  36. new ImageIcon("images/UpRight.jpg"),
  37. new ImageIcon("images/Horiz.jpg"),
  38. new ImageIcon("images/RightUp.jpg"),
  39. new ImageIcon("images/NoTrack.jpg"), 
  40.  
  41.  
  42. new ImageIcon("images/DownRight.jpg"),
  43. new ImageIcon("images/RightUp.jpg"),
  44. new ImageIcon("images/NoTrack.jpg"), 
  45. new ImageIcon("images/NoTrack.jpg"), 
  46. new ImageIcon("images/NoTrack.jpg") 
  47. };
  48.  
  49.  
  50.  
  51. ImageIcon[]imagesTrain=new ImageIcon[]{ 
  52. new ImageIcon("images/TrainDown.jpg"),
  53. new ImageIcon("images/TrainDown.jpg"),
  54. new ImageIcon("images/TrainLeft.jpg"),
  55. new ImageIcon("images/TrainLeft.jpg"),
  56. new ImageIcon("images/TrainDown.jpg"),
  57. new ImageIcon("images/TrainLeft.jpg"),
  58. new ImageIcon("images/TrainUp.jpg"),
  59. new ImageIcon("images/TrainUp.jpg"),
  60. new ImageIcon("images/TrainUp.jpg"),
  61. new ImageIcon("images/TrainUp.jpg"),
  62. new ImageIcon("images/TrainRight.jpg"),
  63. new ImageIcon("images/TrainDown.jpg"),
  64. new ImageIcon("images/TrainRight.jpg"),
  65. new ImageIcon("images/TrainRight.jpg")
  66. };
  67.  
  68.  
  69.  
  70.  
  71.  
  72. int[]line={13, 18,17,16,21,20,15,10,5,0,1,6,7,8}; 
  73.  
  74.  
  75. ImageIcon icon;
  76.  
  77. JLabel labelInfo;
  78.  
  79.  
  80. public MoveCar () { 
  81. screen = new JPanel(new GridLayout(1,1));
  82. Font f =new Font ("Sanserif",Font.BOLD,18);
  83. labelInfo = new JLabel("WELCOM" ,JLabel.CENTER);
  84. labelInfo.setFont(f);
  85.  
  86. screen.setBackground(Color.red);
  87. screen.add(labelInfo);
  88. getContentPane().add(BorderLayout.NORTH,screen );
  89.  
  90. street = new JButton[images.length];
  91. area = new JPanel (new GridLayout(5,5));
  92.  
  93. for(int i=0;i<images.length;i++){
  94. street[i] = new JButton("", images[i]);
  95. area.add(street[i]);
  96. getContentPane().add(BorderLayout.CENTER,area ); 
  97. keybord = new JButton[6];
  98. controlroom = new JPanel (new GridLayout(3,3)); 
  99. for (int i=0; i <6; i++)
  100. {
  101. keybord[i] = new JButton(s[i]);
  102. keybord[i].addActionListener(getAction(s[i]));
  103. controlroom.add(keybord[i]);
  104.  
  105. getContentPane().add(BorderLayout.SOUTH,controlroom );
  106. }
  107.  
  108. private ActionListener getAction(String nameAction){
  109. if(nameAction.equalsIgnoreCase("Start")){ return new ActionListener(){
  110. public void actionPerformed(ActionEvent e){
  111. try{
  112. labelInfo.setText(s[0]);
  113. keybord[0].setEnabled(START);
  114. START = true; 
  115. startTrain();
  116. }catch(Exception ex){
  117. ex.printStackTrace();
  118. }
  119. };
  120. }
  121. if(nameAction.equalsIgnoreCase("Stop")){ return new ActionListener(){
  122. public void actionPerformed(ActionEvent e){
  123. try{
  124. labelInfo.setText(s[1]);
  125. keybord[0].setEnabled(START);
  126. START=false;
  127.                         keybord[5].setEnabled(Check);
  128. Check=false;
  129. }catch(Exception ex){
  130. ex.printStackTrace();
  131. }
  132. };
  133. }
  134. if(nameAction.equalsIgnoreCase("Fast")){
  135. return new ActionListener(){
  136. public void actionPerformed(ActionEvent e){
  137. try{
  138. labelInfo.setText(s[2]);
  139. SLEEP=500;
  140. }catch(Exception ex){
  141. ex.printStackTrace();
  142. }
  143. };
  144. }
  145. if(nameAction.equalsIgnoreCase("Slow")){
  146. return new ActionListener(){
  147. public void actionPerformed(ActionEvent e){
  148. try{
  149. labelInfo.setText(s[3]);
  150. SLEEP=5000;
  151. }catch(Exception ex){
  152. ex.printStackTrace();
  153. }
  154. };
  155. }
  156.  
  157.  
  158.  
  159. return null;
  160.  
  161.  
  162. /**
  163. * @author Final Heaven
  164. */
  165. public void startTrain() { 
  166. Thread t = new Thread(new Runnable()
  167.  
  168. {
  169. public void run() {
  170. for(int i=INDEX_START; START; i++){ 
  171. street[line[(i%14)]].setIcon(imagesTrain[(i%14)]); 
  172. try{
  173. Thread.currentThread().sleep(SLEEP);
  174. }
  175. catch(Exception ee){
  176. ee.printStackTrace();
  177. }
  178. INDEX_START=i;
  179. if(START)street[line[(i%14)]].setIcon(images[line[(i%14)]]);
  180.  
  181. }
  182.  
  183.          } 
  184.  
  185.  
  186. });
  187. t.start();
  188. }
  189.  
  190.  
  191. public static void main(String[]args){
  192. MoveCar c= new MoveCar ();
  193. c.setTitle("Train");
  194. c.setSize(421,550);
  195. c.setVisible(true);
  196. c.addWindowListener (
  197. new WindowAdapter (){
  198. public void windowClosing(WindowEvent e ){
  199. System.exit(0); 
  200. }
  201. });
  202. }
  203. }


Thanks :)
Have you gone through a Threads tutorial yet?
Apr 19 '07 #4
ra7l
11 New Member
Have you gone through a Threads tutorial yet?

yes more search but dont to know more Threads

Thanks :)
Apr 19 '07 #5
r035198x
13,262 MVP
yes more search but dont to know more Threads

Thanks :)
Did you read the sun tutorial?
Apr 19 '07 #6
ra7l
11 New Member
Did you read the sun tutorial?
Hi admin The Link is Error
Thanks to reply :)
Apr 20 '07 #7
r035198x
13,262 MVP
Hi admin The Link is Error
Thanks to reply :)
That's funny. It was opening fine yesterday.
Apr 20 '07 #8
ra7l
11 New Member
That's funny. It was opening fine yesterday.
very funny :)

ok admin in fine give me correct cods :)

and more Thanks
Apr 20 '07 #9
ra7l
11 New Member
i am wait for replay :(
Apr 21 '07 #10
r035198x
13,262 MVP
i am wait for replay :(
I'm sure if you go through a decent threads tutorial you will be able to write the codes yourself.
Apr 23 '07 #11
teddarr
143 New Member
Jos...he's right about the link, I couldn't get it to open either.

Ra71...Here's the URL.

http://java.sun.com/docs/books/tutorial/essential/concurrency/
Apr 23 '07 #12
r035198x
13,262 MVP
Jos...he's right about the link, I couldn't get it to open either.

Ra71...Here's the URL.

http://java.sun.com/docs/books/tutor...l/concurrency/
It's not Jos' fault. I posted the broken link and was surprised later to find that it doesn't open correctly.
Apr 23 '07 #13
ra7l
11 New Member
Thanks tedder Thanks admin r035198x

The Linke very good Tody

Thanks All :)
Apr 26 '07 #14
r035198x
13,262 MVP
Thanks tedder Thanks admin r035198x

The Linke very good Tody

Thanks All :)
I edited the link yesterday. I had posted it wrong the first time.
Apr 26 '07 #15

Sign in to post your reply or Sign up for a free account.

Similar topics

5
4854
by: Frithiof Andreas Jensen | last post by:
Hi All, I am tinkering with a stock-market analysis program that needs to have (at least one) a worker thread for processing real-time data and a GUI where one can control/monitor the function...
14
4982
by: Bruce M | last post by:
OK, IBM, why are these tools prone to hang-ups, brown screens, and just overall inadequate performance? I've got a standard PC with 1/2 gig of memory but DB2 CC just comes-up with a big brown...
11
4237
by: Nenad Dobrilovic | last post by:
Hi, I have big problem. I made generic form which can be rendered, and as a result of that action, I get System.Windows.Forms.Form object. Rendering must be done in GUI thread (one which has...
0
1481
by: Flack | last post by:
Hey guys, I'm trying to read a file and add some nodes to a treee view control. I would like the GUI to remain interactive and have a progress bar and text box be updated with info as the file...
3
1691
by: Abubakar | last post by:
Hi, I created 2 functions which run in seperate threads. what they do simply is that thread1 starts and does something while the thread 2 waits for it. Then after thread1 is done, it resumes the...
2
1877
by: hc0605 | last post by:
Hi everyone, I am a newbie to GUI application, and I need help in understanding some concepts: For a Windows-based GUI application, the system maintains a single system message queue. Mouse...
8
2206
by: John K Masters | last post by:
Can someone point me in the direction of a good tutorial on programming python with a GUI? I'm just starting out with python and have written a few scripts successfully but would like to add a...
0
1099
by: Kate77 | last post by:
Hi, I have another question, I try to make my threads updating the form, it works fine, for the first thread , but afterwards its not updating the labels on the form anymore not from inside...
10
5374
by: bobido | last post by:
Hi there, Iam trying to make an app that has about 14 different threads which have to access the GUI and update some of the labels. Now if i do that, after a little whil it kinda hangs, I think...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7361
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.