Thread: Music player applet, unlike any others seen.

Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11  
    Super Donator


    Join Date
    Jun 2007
    Age
    28
    Posts
    2,158
    Thanks given
    316
    Thanks received
    282
    Discord
    View profile
    Rep Power
    779
    Quote Originally Posted by (K_2da_0) View Post
    ? this will be embeded into an applet and nowhere else. there for ile leave it as it is.
    No it won't... If you look at how the RS client does it, client extends an applet, so when it's on a website, the <applet> tags will call init() instead of main(String[] args) like the JVM calls when ran through the command line. A simple way to allow both would be: inside main, instantiate a JFrame, and your own player, and add the player instance to the content pane of the frame.



    Example:

    Code:
    public class Player extends Applet {
    
       public void init() {
          //init your player n stuff here
       }
    
    
       public static void main(String[] args) {
          Player player = new Player();
          player.init(); //Someone confirm if this is actually needed?
                              // or does the Applet constructor already call it
          JFrame frame = new JFrame("A KULIO MUSIC PLAYER");
          frame.setSize(WIDTH, HIEGHT);
          frame.getContentPane().add(player);
          frame.setVisible(true);
       }
    }

    Something as simple as the above would be a nice way... Not only do you learn how applets work, you don't use Jagex's bulky way of doing certain things
    Reply With Quote  
     

  2. #12  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Just use itunes.
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  3. #13  
    Banned

    Join Date
    Oct 2009
    Age
    26
    Posts
    1,579
    Thanks given
    4
    Thanks received
    23
    Rep Power
    0
    Quote Originally Posted by Tyler View Post
    Just use itunes.
    Lol irl.
    Reply With Quote  
     

  4. #14  
    :doge:

    Join Date
    Jan 2009
    Posts
    3,759
    Thanks given
    221
    Thanks received
    816
    Rep Power
    2113
    i c wut u did dere. will it be released? looks sexy
    Reply With Quote  
     

  5. #15  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by HcoJustin View Post
    No it won't... If you look at how the RS client does it, client extends an applet, so when it's on a website, the <applet> tags will call init() instead of main(String[] args) like the JVM calls when ran through the command line. A simple way to allow both would be: inside main, instantiate a JFrame, and your own player, and add the player instance to the content pane of the frame.



    Example:

    Code:
    public class Player extends Applet {
    
       public void init() {
          //init your player n stuff here
       }
    
    
       public static void main(String[] args) {
          Player player = new Player();
          player.init(); //Someone confirm if this is actually needed?
                              // or does the Applet constructor already call it
          JFrame frame = new JFrame("A KULIO MUSIC PLAYER");
          frame.setSize(WIDTH, HIEGHT);
          frame.getContentPane().add(player);
          frame.setVisible(true);
       }
    }

    Something as simple as the above would be a nice way... Not only do you learn how applets work, you don't use Jagex's bulky way of doing certain things
    umm yes it will...as thats all im doing...i DONT want to use a jframe now as i cba so...
    ILY Stewie.
    Reply With Quote  
     

  6. #16  
    Registered Member

    Join Date
    Feb 2007
    Posts
    994
    Thanks given
    25
    Thanks received
    47
    Rep Power
    604
    Quote Originally Posted by (K_2da_0) View Post
    umm yes it will...as thats all im doing...i DONT want to use a jframe now as i cba so...
    Wut 2 mins of work to make it work on and off a webpage if u 2 lazy for that then i hate see the outcome.
    Reply With Quote  
     

  7. #17  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by bluurr View Post
    Wut 2 mins of work to make it work on and off a webpage if u 2 lazy for that then i hate see the outcome.
    why would i want to make it work off a webpage? its purpose is for the webpage...and if i was to make it work off the webpage i think people would rather us windows media player...and quit franktly i dont give a fuck if u hate to see the outcome...and idc what you think either.
    ILY Stewie.
    Reply With Quote  
     

  8. #18  
    Banned

    Join Date
    Jan 2008
    Posts
    427
    Thanks given
    22
    Thanks received
    4
    Rep Power
    0
    Pretty kinky way of starting the project. Good luck, good work.
    Reply With Quote  
     

  9. #19  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Quote Originally Posted by (K_2da_0) View Post
    why would i want to make it work off a webpage? its purpose is for the webpage...and if i was to make it work off the webpage i think people would rather us windows media player...and quit franktly i dont give a fuck if u hate to see the outcome...and idc what you think either.
    If you didn't care what people thought then you wouldn't be showing off your work and what you're doing, you'd just keep it to yourself.
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #20  
    Member Market Banned Market Banned

    Robin Spud's Avatar
    Join Date
    Aug 2008
    Age
    28
    Posts
    2,338
    Thanks given
    46
    Thanks received
    73
    Rep Power
    1068
    Quote Originally Posted by Tyler View Post
    If you didn't care what people thought then you wouldn't be showing off your work and what you're doing, you'd just keep it to yourself.
    i never said idc what people think...i said idc what bluurr thinks...as i was quoting him and clearly said YOU in the quote...l2read?
    ILY Stewie.
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •