473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Help needed playing wav files (please)

Hi, i am just about out of time to produce a working jukebox which has to perform these functions: to play music files when a track is chosen from a list which when the user presses the change genre button the list is populated with a list of that genre.

I have got the interface done to satisfaction, my problem is that when i press the change genre button nothing happens and when i select a track to play from the list which is setvisible and press the play button nothing happens. I have been at this now for the last 28 hours without a break and i really do not know what else to do.
my operating system is xp pro, i use jcreator v4 as my compiler.
here is my code i would be very grateful if anyone can help me, i must add i have only been programming for 3 months so forgive me if i have posted incorrectly

/
Expand|Select|Wrap|Line Numbers
  1. * @(#)Help.java
  2.  *
  3.  * Help application
  4.  *
  5.  * @author 
  6.  * @version 1.00 2006/12/30
  7.  */
  8. import java.applet.Applet;
  9. import java.applet.AudioClip;
  10. import java.awt.BorderLayout;
  11. import java.awt.Button;
  12. import java.awt.Canvas;
  13. import java.awt.Checkbox;
  14. import java.awt.CheckboxGroup;
  15. import java.awt.Color;
  16. import java.awt.FlowLayout;
  17. import java.awt.Font;
  18. import java.awt.Frame;
  19. import java.awt.Graphics;
  20. import java.awt.List;
  21. import java.awt.Panel;
  22. import java.awt.event.ActionEvent;
  23. import java.awt.event.ActionListener;
  24. import java.awt.event.WindowAdapter;
  25. import java.awt.event.WindowEvent;
  26. import java.net.URL;
  27. public class Help extends Frame {
Expand|Select|Wrap|Line Numbers
  1.  private Panel         controlPanel;
  2.   private Panel         drawPanel;
  3.   private Panel         topPanel;
  4.   private Panel         rPanel;
  5.   private CheckboxGroup genre;
  6.   private Checkbox      rock;
  7.   private Checkbox      pop;
  8.   private Button        play;
  9.   private Button        stop;
  10.   private Button        changegenre;
  11.   private List          rockChoice, popChoice;
  12.   private DrawingCanvas DrawingCanvas;
  13.   private String        poplist[];
  14.   private String        rocklist[];
  15.   private URL           url1;
  16.   private URL           url2;
  17.   private URL           url3;
  18.   private URL           url4;
  19.   private URL           url5;
  20.   private URL           url6;
  21.   private AudioClip[]   rockMusic;
  22.   private URL           url7;
  23.   private URL           url8;
  24.   private URL           url9;
  25.   private URL           url10;
  26.   private URL           url11;
  27.   private AudioClip[]   popMusic;
  28.   private AudioClip     current;
Expand|Select|Wrap|Line Numbers
  1. public Help()//costructor
  2.   {
  3.     rockMusic = new AudioClip[6];
  4.    try
  5.    {
  6. rockMusic[0] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  7. rockMusic[1] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  8. rockMusic[2] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  9. rockMusic[3] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  10. rockMusic[4] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  11. rockMusic[5] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  12. }
  13. catch (Exception exception) {}
  14. popMusic = new AudioClip[5];
  15. try
  16. {
  17. popMusic[0] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  18. popMusic[1] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  19. popMusic[2] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  20. popMusic[3] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  21. popMusic[4] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  22. }
  23. catch (Exception ex) {}
  24.     setLayout(new BorderLayout());
  25.     drawPanel = new Panel();
  26.     drawPanel.setLayout(new BorderLayout());
  27.     drawPanel.setBackground(Color.black);
  28.     DrawingCanvas drawingCanvas = new DrawingCanvas();
  29.     drawPanel.add(drawingCanvas, "Center");
  30.     add(drawPanel, "North");
  31.     stop = new Button("STOP");
  32.     stop.setBackground(Color.blue);
  33.     play = new Button("PLAY");
  34.     play.setBackground(Color.blue);
  35.     changegenre = new Button("CHANGE GENRE");
  36.     changegenre.setBackground(Color.blue);
  37.     controlPanel = new Panel();
  38.     controlPanel.setBackground(Color.red);
  39.     controlPanel.setLayout(new FlowLayout());
  40.     controlPanel.add(play);
  41.     play.addActionListener(new ButtonListener());
  42.     controlPanel.add(stop);
  43.     stop.addActionListener(new ButtonListener());
  44.     controlPanel.add(changegenre);
  45.     changegenre.addActionListener(new ButtonListener());
  46.     add(controlPanel, "South");
  47.     genre = new CheckboxGroup();
  48.     rock = new Checkbox("ROCK", genre, true);
  49.     pop = new Checkbox("POP", genre, false);
  50.     topPanel = new Panel();
  51.     topPanel.setLayout(new FlowLayout());
  52.     topPanel.setBackground(Color.yellow);
  53.     topPanel.add(rock);
  54.     topPanel.add(pop);
  55.     rocklist = new String[]{
  56.  "Select Rock Song", "Turn Up The Sun", "Mucky Fingers", "LYLA", "Love Like A Bomb", "A Bell Will Ring", "Let There BE Love"
  57.     };
  58.     rockChoice = new List();
  59.     for (int i = 0; i < rocklist.length; i++)
  60.       rockChoice.add(rocklist[i]);
  61. poplist = new String[]{"Select Pop Song","The Importance Of Being Idle","The Meaning Of Soul","Guess God Thinks I Am Able","Part Of TheQueue","Keep The Dream Alive"};
  62.     popChoice = new List();
  63.     for (int i = 0; i < poplist.length; i++)
  64.       popChoice.add(poplist[i]);
  65.     topPanel.add(rockChoice);
  66.     rockChoice.setVisible(true);
  67.     rockChoice.addActionListener(new ListListener());
  68.     topPanel.add(popChoice);
  69.     popChoice.setVisible(false);
  70.     popChoice.addActionListener(new ListListener());
  71.     add(topPanel, "Center");
  72.     addWindowListener(new WindowAdapter() { 
  73.       public void windowClosing(WindowEvent e) {
  74.         dispose();
  75.         System.exit(0);
  76.       }
  77.     });
  78.   }
Expand|Select|Wrap|Line Numbers
  1.  public static void main(String[] args) {
  2.     Help mainFrame = new Help();
  3.     mainFrame.setSize(800, 600);
  4.     mainFrame.setTitle("Glenn's Java Jukebox");
  5.     mainFrame.setVisible(true);
  6.   } 
Expand|Select|Wrap|Line Numbers
  1.  private class DrawingCanvas extends Canvas {
  2.  
  3.     private DrawingCanvas() {
  4.       setSize(100, 400);
  5.     }
  6.  
Expand|Select|Wrap|Line Numbers
  1. public void paint(Graphics g) {
  2.       // do all the drawing of the jukebox in the 
  3.       g.drawString("please work", 50, 50);
  4.       g.setColor(Color.yellow);
  5.       g.fillRect(700, 105, 30, 450);
  6.       g.fillRect(80, 105, 30, 450);
  7.  
  8.       g.setColor(Color.yellow);
  9.       g.fillArc(80, 10, 650, 200, -180, -180);
  10.       g.setColor(Color.white);
  11.       g.fillOval(150, 60, 20, 20);
  12.       g.fillOval(210, 60, 20, 20);
  13.       g.fillOval(270, 60, 20, 20);
  14.       g.fillOval(330, 60, 20, 20);
  15.       g.fillOval(390, 60, 20, 20);
  16.       g.fillOval(630, 60, 20, 20);
  17.       g.fillOval(450, 60, 20, 20);
  18.       g.fillOval(510, 60, 20, 20);
  19.       g.fillOval(570, 60, 20, 20);
  20.       g.setColor(Color.black);
  21.       g.fillOval(180, 60, 20, 20);
  22.       g.fillOval(240, 60, 20, 20);
  23.       g.fillOval(300, 60, 20, 20);
  24.       g.fillOval(360, 60, 20, 20);
  25.       g.fillOval(420, 60, 20, 20);
  26.       g.fillOval(480, 60, 20, 20);
  27.       g.fillOval(540, 60, 20, 20);
  28.       g.fillOval(200, 80, 15, 15);
  29.       g.fillOval(380, 80, 15, 15);
  30.       g.fillOval(260, 80, 15, 15);
  31.       g.fillOval(320, 80, 15, 15);
  32.       g.fillOval(380, 80, 15, 15);
  33.       g.fillOval(440, 80, 15, 15);
  34.       g.fillOval(500, 80, 15, 15);
  35.       g.fillOval(560, 80, 15, 15);
  36.       g.fillOval(620, 80, 15, 15);
  37.       g.fillOval(680, 80, 15, 15);
  38.       g.fillOval(140, 80, 15, 15);
  39.       g.fillOval(600, 60, 20, 20);
  40.       g.fillOval(660, 60, 20, 20);
  41.       g.setColor(Color.red);
  42.       g.fillOval(110, 80, 15, 15);
  43.       g.fillOval(170, 80, 15, 15);
  44.       g.fillOval(230, 80, 15, 15);
  45.       g.fillOval(290, 80, 15, 15);
  46.       g.fillOval(350, 80, 15, 15);
  47.       g.fillOval(410, 80, 15, 15);
  48.       g.fillOval(470, 80, 15, 15);
  49.       g.fillOval(530, 80, 15, 15);
  50.       g.fillOval(590, 80, 15, 15);
  51.       g.fillOval(650, 80, 15, 15);
  52.       g.setColor(Color.white);
  53.       g.fillRect(110, 100, 600, 500);
  54.       g.setColor(Color.magenta);
  55.       g.setFont(new Font("TimesRoman", Font.ITALIC, 48));
  56.       g.drawString(" Swurlitzer Jukebox", 230, 160);
  57.       g.setColor(Color.black);
  58.       g.setFont(new Font("Helvetica", Font.PLAIN, 18));
  59.       g.drawString(" 1.50 For 4 Plays", 140, 380);
  60.       g.drawString("Please Select Your Genre", 400, 380);
  61.       g.setFont(new Font("Helvetica", Font.ITALIC, 18));
  62.       g.drawString("Glenn Proudly Presents", 290, 40);
  63.       g.setColor(Color.yellow);
  64.       g.fillRect(690,100,20,450);
  65.     }
  66.   }//end DrawingCanvas
Expand|Select|Wrap|Line Numbers
  1. private class ListListener implements ActionListener {
  2.  
  3.     public void actionPerformed(ActionEvent e) {
  4.       if (current != null)
  5.         current.stop();
  6.       Checkbox chk = genre.getSelectedCheckbox();
  7.       if ("rock".equals(chk.getLabel()))
  8.         current = rockMusic[rockChoice.getSelectedIndex()];
  9.       else if ("pop".equals(chk.getLabel()))
  10.         current = popMusic[popChoice.getSelectedIndex()]; //213x1
  11.     }
  12.   }
Expand|Select|Wrap|Line Numbers
  1. private class ButtonListener implements ActionListener {
  2.  
  3.     public void actionPerformed(ActionEvent event) {
  4.       if (current != null)
  5.         current.stop();
  6.       if (event.getSource() == play)
  7.         if (current != null)
  8.           current.play();
  9.       if (event.getSource() == changegenre)
  10.         changeGenre();
  11.     }
  12.   }//end ButtonListener
Expand|Select|Wrap|Line Numbers
  1. private void changeGenre() //line 229
  2.   {
  3.     Checkbox c = genre.getSelectedCheckbox();
  4.     if (c.getLabel() == "rock") //line 232
  5.     {
  6.       popChoice.setVisible(false);
  7.       rockChoice.setVisible(true); //line235 
  8.     } //236 
  9.     else if (c.getLabel() == "pop") {
  10.       //etc for other genres..
  11.       repaint();
  12.     }//end changeGenre() //line 241
  13.  
  14.  
  15.   }
  16. }
Dec 31 '06 #1
1 2264
horace1
1,510 Expert 1GB
added ItemListener for your ROCK and POP CheckBoxes
- if you select from the list, then click ROCK then PLAY it shows it is picking up an AppletAudioClip

think you listeners need a lot more sorting out but this may help get you started

Expand|Select|Wrap|Line Numbers
  1. /* @(#)Help.java
  2.  *
  3.  * Help application
  4.  *
  5.  * @author 
  6.  * @version 1.00 2006/12/30
  7.  */
  8. import java.applet.Applet;
  9. import java.applet.AudioClip;
  10. import java.awt.BorderLayout;
  11. import java.awt.Button;
  12. import java.awt.Canvas;
  13. import java.awt.Checkbox;
  14. import java.awt.CheckboxGroup;
  15. import java.awt.Color;
  16. import java.awt.FlowLayout;
  17. import java.awt.Font;
  18. import java.awt.Frame;
  19. import java.awt.Graphics;
  20. import java.awt.List;
  21. import java.awt.Panel;
  22. import java.awt.event.*;
  23. import java.net.URL;
  24. public class Help extends Frame {
  25. private Panel         controlPanel;
  26.   private Panel         drawPanel;
  27.   private Panel         topPanel;
  28.   private Panel         rPanel;
  29.   private CheckboxGroup genre;
  30.   private Checkbox      rock;
  31.   private Checkbox      pop;
  32.   private Button        play;
  33.   private Button        stop;
  34.   private Button        changegenre;
  35.   private List          rockChoice, popChoice;
  36.   private DrawingCanvas DrawingCanvas;
  37.   private String        poplist[];
  38.   private String        rocklist[];
  39.   private URL           url1;
  40.   private URL           url2;
  41.   private URL           url3;
  42.   private URL           url4;
  43.   private URL           url5;
  44.   private URL           url6;
  45.   private AudioClip[]   rockMusic;
  46.   private URL           url7;
  47.   private URL           url8;
  48.   private URL           url9;
  49.   private URL           url10;
  50.   private URL           url11;
  51.   private AudioClip[]   popMusic;
  52.   private AudioClip     current;
  53. public Help()//costructor
  54.   {
  55.     rockMusic = new AudioClip[6];
  56.    try
  57.    {
  58. rockMusic[0] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  59. rockMusic[1] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  60. rockMusic[2] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  61. rockMusic[3] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  62. rockMusic[4] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  63. rockMusic[5] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  64. }
  65. catch (Exception exception) {}
  66. popMusic = new AudioClip[5];
  67. try
  68. {
  69. popMusic[0] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  70. popMusic[1] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  71. popMusic[2] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  72. popMusic[3] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  73. popMusic[4] = Applet.newAudioClip(new java.net.URL("file:song7.wav"));
  74. }
  75. catch (Exception ex) {}
  76.     setLayout(new BorderLayout());
  77.     drawPanel = new Panel();
  78.     drawPanel.setLayout(new BorderLayout());
  79.     drawPanel.setBackground(Color.black);
  80.     DrawingCanvas drawingCanvas = new DrawingCanvas();
  81.     drawPanel.add(drawingCanvas, "Center");
  82.     add(drawPanel, "North");
  83.     stop = new Button("STOP");
  84.     stop.setBackground(Color.blue);
  85.     play = new Button("PLAY");
  86.     play.setBackground(Color.blue);
  87.     changegenre = new Button("CHANGE GENRE");
  88.     changegenre.setBackground(Color.blue);
  89.     controlPanel = new Panel();
  90.     controlPanel.setBackground(Color.red);
  91.     controlPanel.setLayout(new FlowLayout());
  92.     controlPanel.add(play);
  93.     play.addActionListener(new ButtonListener());
  94.     controlPanel.add(stop);
  95.     stop.addActionListener(new ButtonListener());
  96.     controlPanel.add(changegenre);
  97.     changegenre.addActionListener(new ButtonListener());
  98.     add(controlPanel, "South");
  99.     genre = new CheckboxGroup();
  100.     rock = new Checkbox("ROCK", genre, false);
  101.     rock.addItemListener(new MyItemListener());  // *** added
  102.     pop = new Checkbox("POP", genre, true);
  103.     pop.addItemListener(new MyItemListener());  // *** added
  104.     topPanel = new Panel();
  105.     topPanel.setLayout(new FlowLayout());
  106.     topPanel.setBackground(Color.yellow);
  107.     topPanel.add(rock);
  108.     topPanel.add(pop);
  109.     rocklist = new String[]{
  110.  "Select Rock Song", "Turn Up The Sun", "Mucky Fingers", "LYLA", "Love Like A Bomb", "A Bell Will Ring", "Let There BE Love"
  111.     };
  112.     rockChoice = new List();
  113.     for (int i = 0; i < rocklist.length; i++)
  114.       rockChoice.add(rocklist[i]);
  115. poplist = new String[]{"Select Pop Song","The Importance Of Being Idle","The Meaning Of Soul","Guess God Thinks I Am Able","Part Of TheQueue","Keep The Dream Alive"};
  116.     popChoice = new List();
  117.     for (int i = 0; i < poplist.length; i++)
  118.       popChoice.add(poplist[i]);
  119.     topPanel.add(rockChoice);
  120.     rockChoice.setVisible(true);
  121.     rockChoice.addActionListener(new ListListener());
  122.     topPanel.add(popChoice);
  123.     popChoice.setVisible(false);
  124.     popChoice.addActionListener(new ListListener());
  125.     add(topPanel, "Center");
  126.     addWindowListener(new WindowAdapter() { 
  127.       public void windowClosing(WindowEvent e) {
  128.         dispose();
  129.         System.exit(0);
  130.       }
  131.     });
  132.   }
  133.  public static void main(String[] args) {
  134.     Help mainFrame = new Help();
  135.     mainFrame.setSize(800, 600);
  136.     mainFrame.setTitle("Glenn's Java Jukebox");
  137.     mainFrame.setVisible(true);
  138.   } 
  139. private class DrawingCanvas extends Canvas {
  140.  
  141.     private DrawingCanvas() {
  142.       setSize(100, 400);
  143.     }
  144. public void paint(Graphics g) {
  145.       // do all the drawing of the jukebox in the 
  146.       g.drawString("please work", 50, 50);
  147.       g.setColor(Color.yellow);
  148.       g.fillRect(700, 105, 30, 450);
  149.       g.fillRect(80, 105, 30, 450);
  150.  
  151.       g.setColor(Color.yellow);
  152.       g.fillArc(80, 10, 650, 200, -180, -180);
  153.       g.setColor(Color.white);
  154.       g.fillOval(150, 60, 20, 20);
  155.       g.fillOval(210, 60, 20, 20);
  156.       g.fillOval(270, 60, 20, 20);
  157.       g.fillOval(330, 60, 20, 20);
  158.       g.fillOval(390, 60, 20, 20);
  159.       g.fillOval(630, 60, 20, 20);
  160.       g.fillOval(450, 60, 20, 20);
  161.       g.fillOval(510, 60, 20, 20);
  162.       g.fillOval(570, 60, 20, 20);
  163.       g.setColor(Color.black);
  164.       g.fillOval(180, 60, 20, 20);
  165.       g.fillOval(240, 60, 20, 20);
  166.       g.fillOval(300, 60, 20, 20);
  167.       g.fillOval(360, 60, 20, 20);
  168.       g.fillOval(420, 60, 20, 20);
  169.       g.fillOval(480, 60, 20, 20);
  170.       g.fillOval(540, 60, 20, 20);
  171.       g.fillOval(200, 80, 15, 15);
  172.       g.fillOval(380, 80, 15, 15);
  173.       g.fillOval(260, 80, 15, 15);
  174.       g.fillOval(320, 80, 15, 15);
  175.       g.fillOval(380, 80, 15, 15);
  176.       g.fillOval(440, 80, 15, 15);
  177.       g.fillOval(500, 80, 15, 15);
  178.       g.fillOval(560, 80, 15, 15);
  179.       g.fillOval(620, 80, 15, 15);
  180.       g.fillOval(680, 80, 15, 15);
  181.       g.fillOval(140, 80, 15, 15);
  182.       g.fillOval(600, 60, 20, 20);
  183.       g.fillOval(660, 60, 20, 20);
  184.       g.setColor(Color.red);
  185.       g.fillOval(110, 80, 15, 15);
  186.       g.fillOval(170, 80, 15, 15);
  187.       g.fillOval(230, 80, 15, 15);
  188.       g.fillOval(290, 80, 15, 15);
  189.       g.fillOval(350, 80, 15, 15);
  190.       g.fillOval(410, 80, 15, 15);
  191.       g.fillOval(470, 80, 15, 15);
  192.       g.fillOval(530, 80, 15, 15);
  193.       g.fillOval(590, 80, 15, 15);
  194.       g.fillOval(650, 80, 15, 15);
  195.       g.setColor(Color.white);
  196.       g.fillRect(110, 100, 600, 500);
  197.       g.setColor(Color.magenta);
  198.       g.setFont(new Font("TimesRoman", Font.ITALIC, 48));
  199.       g.drawString(" Swurlitzer Jukebox", 230, 160);
  200.       g.setColor(Color.black);
  201.       g.setFont(new Font("Helvetica", Font.PLAIN, 18));
  202.       g.drawString(" 1.50 For 4 Plays", 140, 380);
  203.       g.drawString("Please Select Your Genre", 400, 380);
  204.       g.setFont(new Font("Helvetica", Font.ITALIC, 18));
  205.       g.drawString("Glenn Proudly Presents", 290, 40);
  206.       g.setColor(Color.yellow);
  207.       g.fillRect(690,100,20,450);
  208.     }
  209.   }//end DrawingCanvas
  210. private class ListListener implements ActionListener {
  211.  
  212.     public void actionPerformed(ActionEvent e) {
  213.     System.out.println("ListListener ");
  214.        if (current != null)
  215.         current.stop();
  216.       Checkbox chk = genre.getSelectedCheckbox();
  217.       if ("rock".equals(chk.getLabel()))
  218.         current = rockMusic[rockChoice.getSelectedIndex()];
  219.       else if ("pop".equals(chk.getLabel()))
  220.         current = popMusic[popChoice.getSelectedIndex()]; //213x1
  221.     }
  222.   }
  223.  
  224.  
  225. private class MyItemListener implements ItemListener {   // ****  added this
  226.  
  227.     public void itemStateChanged(ItemEvent e) {
  228.     System.out.println("MyItemListener " + e);
  229.        if (current != null)
  230.         current.stop();
  231.       Checkbox chk = genre.getSelectedCheckbox();
  232.     System.out.println("checkbox " + chk + "\ncurrent " + current);
  233.       if ("ROCK".equals(chk.getLabel()))   // *** 
  234.         current = rockMusic[rockChoice.getSelectedIndex()];
  235.       else if ("POP".equals(chk.getLabel())) // ***
  236.         current = popMusic[popChoice.getSelectedIndex()]; //213x1
  237.     }
  238.   }
  239. private class ButtonListener implements ActionListener {
  240.  
  241.     public void actionPerformed(ActionEvent event) {
  242.     System.out.println("ButtonListener " + event  + "\ncurrent " + current);
  243.       if (current != null)
  244.         current.stop();
  245.       if (event.getSource() == play)
  246.         if (current != null)
  247.           current.play();
  248.       if (event.getSource() == changegenre)
  249.         changeGenre();
  250.     }
  251.   }//end ButtonListener
  252. private void changeGenre() //line 229
  253.   {
  254.     Checkbox c = genre.getSelectedCheckbox();
  255.     System.out.println("changeGenre()");
  256.     if (c.getLabel() == "rock") //line 232
  257.     {
  258.       popChoice.setVisible(false);
  259.       rockChoice.setVisible(true); //line235 
  260.     } //236 
  261.     else if (c.getLabel() == "pop") {
  262.       //etc for other genres..
  263.       repaint();
  264.     }//end changeGenre() //line 241
  265.  
  266.  
  267.   }
  268. }
  269.  
Dec 31 '06 #2

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
2
by: James | last post by:
I have a problem using VS .NET 2003. When compiliing my application (a Content Management Server) I get the following error: "Satellite build for culture 'en-US' failed. Assembly linker could...
2
by: newbievn | last post by:
The code below is from Microsoft MSDN example for DirectShow: CODE #include <dshow.h> void main(void) { IGraphBuilder *pGraph = NULL; IMediaControl *pControl = NULL;
8
by: kp87 | last post by:
I am a little bit stuck .... I want to play a bunch of soundfiles randomly, but i want to give each soundfile a rating (say 0-100) and have the likelihood that the file be chosen be tied to its...
5
by: skumar434 | last post by:
Hi everybody, I am faceing problem with strings. The code is given bellow .In this program i am tring to copy data from a file into structure . I am able to copy the data ,but the dat is...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
1
by: oops | last post by:
I've had no luck getting 2 sound files to start at the same time. the second one to start is delayed by about 3/4 of a second. Also would also prefer to start another clip a given point when one of...
8
by: inFocus | last post by:
Hello, I am new to python and wanted to write something for myself where after inputing two words it would search entire drive and when finding both names in files name would either copy or move...
2
by: abdiphp | last post by:
Hi every one, I need help to get the this going, Itried whatever I can but could not get the right xpath to this xml I need to get the value of this node (IMAGE_FILE) and this is not...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.