Search:

Type: Posts; User: keepStriving

Page 1 of 7 1 2 3 4

Search: Search took 0.53 seconds.

  1. Replies
    6
    Views
    129

    [SOLVED] Re: Sorting with a comparator

    It works, it's not the actual source code it's just shows the template I used. getField() refers to any getter method. Object refers to the Object type the list stores.
  2. Sorting lowercase strings before uppercase strings

    I can sort strings in a collection by uppercase and then lowercase though I was wondering if there is any way of doing it in reverse, sorting by lowercase then by uppercase.
  3. Replies
    6
    Views
    129

    [SOLVED] Re: Sorting with a comparator

    Forgive the late response, just saw your post now, I did the following:



    Collections.sort(myList,
    new Comparator<Object>()
    {
    public int...
  4. Replies
    6
    Views
    129

    [SOLVED] Re: Sorting with a comparator

    The objects hold fields, I want the arraylist to sort the objects based on a certain field.
  5. Replies
    6
    Views
    129

    [SOLVED] Sorting with a comparator

    I am trying to sort an ArrayList of objects with the comparator as I want to sort based on a certain value for each object. I understand I would need to override compareTo() in the objects class, is...
  6. Replies
    7
    Views
    178

    Re: Alternatives to JFrame

    Thanks anyway, I'll continue to use JFrame.
  7. Replies
    7
    Views
    178

    Re: Alternatives to JFrame

    It says Frame parent as the first parameter, JFrame is one type of Frame that would satisfy this condition I was wondering if there would be anything else.
  8. Replies
    7
    Views
    178

    Re: Alternatives to JFrame

    There is no problem just wondering if there is an alternative, I want it to act as the parent for the FileDialog.
  9. Replies
    7
    Views
    178

    Alternatives to JFrame

    Are there any alternatives to JFrame that can be used as a parent Frame?
  10. Replies
    0
    Views
    126

    tomcat eclipse error 404 servlets

    I have got tomcat to work on eclipse when creating a html page and get access to tomcat when I do localhost:8080 though I get error 404 when creating a simple servlet. I have copied two different...
  11. Replies
    2
    Views
    176

    JSP and servlets

    I have some experience in HTML and now want to go about learning how to build web apps so I need to learn about JSP and servlets, I have an understanding of what they do though struggling to find...
  12. Replies
    2
    Views
    236

    Re: Application Design

    I mean things like shadows, animation etc.
    I'll check out the books, thanks.
  13. Replies
    2
    Views
    236

    Application Design

    I have created a couple of applications and they all have a 80's style static user interface, I want my interfaces to be more dynamic and interactive similar to modern day apps and websites. What can...
  14. Replies
    1
    Views
    220

    Java email error

    I am trying to send a mail message though get the following error after the "Transport.send(message)" command.



    com.sun.mail.util.MailConnectException: Couldn't connect to host, port:...
  15. Replies
    3
    Views
    147

    Re: Shares Tracker

    Thanks guys really appreciate your help.
  16. Replies
    3
    Views
    147

    Shares Tracker

    As a practice project I want to create a program that can give real time feedback of a certain stocks shares on my own GUI, would I need to connect to a website or something else and how could I go...
  17. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    I am such an idiot!!!!!!!!!!!!!
  18. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    In second code:
    The new thread and run method is meant to allow multithreading which it does as I can do sysTrayCreator() and connectSocket() though I slow down sysTrayCreator() so exception can be...
  19. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    Which is why I used multithreading. It seems to work or am I going wrong somewhere again?
  20. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    Turn out shutdown hook does not work for forceful exits, though I managed to get it to work for graceful exits ad understand it now.
    I have managed to do the task with sockets here is the code,...
  21. Replies
    3
    Views
    144

    Re: Hello from a new programmer

    Keep trying, the first steps are always the hardest.
  22. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    I still can't get the display, though also get mixed results with the file still not being deleted. I have changed the code from my last attempt. The program does not stop and keeps running.


    ...
  23. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    I have moved what you mentioned from run method though file does not delete upon forceful exit of program though recognises to shut program if another program is already running. Also icon still not...
  24. Replies
    3
    Views
    183

    Re: Interacting with OS

    Interesting, I suppose should I want to go that way in my application I should learn C++.
  25. Replies
    25
    Views
    490

    [SOLVED] Re: Check if system tray already exists

    I've tried it though I get an illegal state exception though the program continues running, this is how I implemented it.


    import java.awt.AWTException;
    import java.awt.Image;
    import...
Results 1 to 25 of 161
Page 1 of 7 1 2 3 4