Search:

Type: Posts; User: Bagzli

Search: Search took 0.34 seconds.

  1. Replies
    2
    Views
    2,472

    JTextArea customization

    I was wondering if I could get help in a matter I'm having difficulties in. Basically I have created a program that will display text depending on which index is selected. It all works fine, It saves...
  2. Re: How to change color of JMenuItem when mouse is over it

    Solution:


    UIManager.put("TabbedPane.selected", Color.GREEN);
    UIManager.put("MenuItem.selectionBackground", Color.GREEN);
    UIManager.put("MenuItem.selectionForeground", Color.BLUE);...
  3. Re: How to change color of JMenuItem when mouse is over it

    When mouse hovers over background color and foreground color change. Text becomes black, background becomes very light_blueish. This is the default and I have no idea how to overwrite that. With...
  4. How to change color of JMenuItem when mouse is over it

    Title says it all, I want to change background and foreground color's of JMenuItem so that normal background is blue and when I put my mouse over it, it turns to green. once I move my mouse away it...
  5. Replies
    2
    Views
    792

    Re: FIle Won't Delete

    I found the solution, input was not being closed in another method while reading the file. Thanks for the help, it had me confused for a while.
  6. Replies
    2
    Views
    792

    FIle Won't Delete

    Hello, I"m trying to delete a text file but to no avail.

    Here is the code


    File myFile = new File("test.txt");
    Scanner input = new Scanner(myFile);
    String oldText = "";...
  7. Replies
    1
    Views
    505

    Help me Color in this section

    Hello,

    Basically I have spent bast few hours trying to color in this section on JMenu. There is a color gap at the start and at the end of the Menu section. Right above where it says Add Tab and...
  8. Help please - urgent (Project due and not done) - Easy answer

    Can somebody please teach me how to edit existent files with java? I just need basics like how do you add lines to a file, search lines in a file and delete lines in a file.

    If you guys give me a...
  9. Replies
    7
    Views
    2,007

    Re: Urgent - File exist nor working

    can you explain me what this whole buffered thing is? I used PrintWriter to get my code finished.
  10. Replies
    7
    Views
    2,007

    Re: Urgent - File exist nor working

    thats exactly what i'm looking for except i don't know how to get it to work. I have read the tutorial it does not make any sense to me, its using some buffer. I just need to create a file if it's...
  11. Replies
    7
    Views
    2,007

    Re: Urgent - File exist nor working

    I just realized how wrong I am about what i had written here before. Here is the new question: How do i get Java to create a new text file for me? and what happens when i try to create a file that...
  12. Replies
    7
    Views
    2,007

    Urgent - File exist nor working

    this.fullName = "userlogs/" + this.userLogId;
    if(!File.exists(this.fullName)
    {
    File userLogId = new File("userlogs/" + this.userLogId);
    }

    I want to check if this file exists, if it...
  13. [SOLVED] Re: Begginer Question please help ASAP! (Easy to Answer)

    well nobody answered but thats ok i managed to work it out, feel free to delete this thread mod.
  14. [SOLVED] Begginer Question please help ASAP! (Easy to Answer)

    Hi, first of all i appologise right upfront for not reading your posting rules yet, but i'm in a huge rush atm finishing an assigmnent due tommorow morning and i need a bit of help with a simple...
Results 1 to 14 of 14