Thread: Changing the colour of Latest updates/anything

Results 1 to 8 of 8
  1. #1 Changing the colour of Latest updates/anything 
    Donator

    Join Date
    Aug 2013
    Posts
    187
    Thanks given
    65
    Thanks received
    10
    Rep Power
    36
    Just need quick help here, new to Java so I'm not good with the stuff, but I hope to be.

    Say I want the colour of 'Latest updates' to change, instead of it being dull and boring white when I log in

    http://puu.sh/4oMQT.png

    Where does the code of the colour, e.g ; <col=800000> , go?

    Because if I have where is it atm, the compiler says this;

    http://puu.sh/4oMWC.png


    I would be so grateful for this quick tip, I know its stupid but once I know it, I know it

    -Jimpy
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2012
    Posts
    378
    Thanks given
    6
    Thanks received
    27
    Rep Power
    18
    The <col> tags should be inside the ""

    String something = "<col=000000>TEXT</col>";
    Attached image
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Sep 2011
    Posts
    432
    Thanks given
    94
    Thanks received
    58
    Rep Power
    44
    Code:
    public static final String Latest_News = "<col=800000>[Latest Update]: VPS Soon!";
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Aug 2013
    Posts
    187
    Thanks given
    65
    Thanks received
    10
    Rep Power
    36
    Quote Originally Posted by Pfl View Post
    Code:
    public static final String Latest_News = "<col=800000>[Latest Update]: VPS Soon!";
    Thank you so much for this, it works
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Aug 2013
    Posts
    187
    Thanks given
    65
    Thanks received
    10
    Rep Power
    36
    Since we're still on topic, another thing I can't seem to figure out

    http://puu.sh/4oNOE.png

    How to get different colours, for different ranks.

    Say if I wanted when I logged in, to be Yellow, I'll get the hex colours etc but I don't know in what file it is, player.java?

    and If I wanted for a moderator to log in, for it to be blue?
    Reply With Quote  
     

  6. #6  
    Donator

    Join Date
    Sep 2011
    Posts
    432
    Thanks given
    94
    Thanks received
    58
    Rep Power
    44
    Quote Originally Posted by Jimpy View Post
    Thank you so much for this, it works
    No problem. Just remember if you want to change the colors, add the color code before what you want to color. Eg, if you wanted to make Latest Update blue and the rest black, you could do this.

    Code:
    public static final String Latest_News = "<col=255>[Latest Update]:</col> VPS Soon!";
    Reply With Quote  
     

  7. #7  
    Chow down on these noodles
    OodlesOfNoodles's Avatar
    Join Date
    May 2011
    Posts
    1,819
    Thanks given
    235
    Thanks received
    91
    Rep Power
    55
    You should have a rightsmanager.java, ranks should be organized in there for color coding etc
    Reply With Quote  
     

  8. #8  
    Donator

    Join Date
    Aug 2013
    Posts
    187
    Thanks given
    65
    Thanks received
    10
    Rep Power
    36
    Quote Originally Posted by Pfl View Post
    No problem. Just remember if you want to change the colors, add the color code before what you want to color. Eg, if you wanted to make Latest Update blue and the rest black, you could do this.

    Code:
    public static final String Latest_News = "<col=255>[Latest Update]:</col> VPS Soon!";
    I see, thank you very much, I'm noting this down
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Changing the colour of Public chat
    By Java in forum Help
    Replies: 3
    Last Post: 09-08-2012, 03:09 AM
  2. how do i change the colour of text?
    By zDemonic Lords in forum Help
    Replies: 6
    Last Post: 01-16-2012, 07:06 AM
  3. Replies: 9
    Last Post: 04-23-2011, 01:27 AM
  4. How do i change the colour of the text
    By poopoohead in forum Help
    Replies: 2
    Last Post: 01-27-2010, 11:15 PM
  5. How to change the bonus of a item.
    By domo9122 in forum Tutorials
    Replies: 8
    Last Post: 06-06-2007, 12:49 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •