Java :Painting Random Shapes on JFrame against Music Played
问题 I am trying to paint JFrame when music is played , these shapes are created on random no calculation and when a there is some music played there pops up a JFrame and these shapes are painted there, problem is that when i run this code there is no musical sound and shapes drawn but just a frame pops up and nothing else , Plase check this code and help me to correct it .. public class MusicBeatsDrawing { static JFrame frame; DrawPanel dp =new DrawPanel(); public static void main(String[] args)