Search:

Type: Posts; User: copeg

Page 1 of 20 1 2 3 4

Search: Search took 1.07 seconds.

  1. Re: Simple but Strange situation in my Java Code.

    I don't need the full project - the issue is contained within the code you posted (but not an easy thing to spot). Like I said, inspect that you are passing what you expect the isPalindrome method -...
  2. Replies
    2
    Views
    3

    Re: having trouble with my code

    An application needs an entry point. Suggested reading: Lesson: A Closer Look at the "Hello World!" Application (The Java™ Tutorials > Getting Started)
  3. Re: Simple but Strange situation in my Java Code.

    Both Greg and I posted SSCCE's that demonstrate the method (as posted) works as expected with the test input. So my advice would be to backup and have a hard look at the input for this method...is...
  4. Re: Simple but Strange situation in my Java Code.

    I asked for an SSCCE that demonstrates the problem - see my signature for a full description of what that is, posting the full project will result in a lot of code unrelated to the problem (and code...
  5. Re: Simple but Strange situation in my Java Code.

    Post exactly what you ran, and the result. If you ran the code I posted above, the output should be identical. Without knowing what you ran, as well as the context, we are only left to guess.
  6. Re: Simple but Strange situation in my Java Code.

    And how are you calling the method? When you run that code, what does it print? More information is often better (removes the guesswork) - here's an example of an SSCCE, using your code above plus a...
  7. Re: Simple but Strange situation in my Java Code.

    You did not state clearly how you know this. Did you add println's in there to see? Are you relying on the string returned from the method? Are you relying on a debugger? Whichever way, if you read...
  8. Re: Simple but Strange situation in my Java Code.

    How do you know it evaluates to false? The code you posted does not contain any way to test this...it is always best to post an SSCCE that shows all the code necessary to reproduce the problem
  9. Thread: SEO Section

    by copeg
    Replies
    5
    Views
    6

    Re: SEO Section

    In my years moderating this forum, I don't recall ever seeing a legitimate post related to search engine optimization - the most likely reason is because it is completely unrelated to the subject of...
  10. Thread: Java Printing

    by copeg
    Replies
    3
    Views
    4

    Re: Java Printing

    Have you read the tutorials from the 'source' (aka Oracle)?
    Lesson: Printing (The Java™ Tutorials > 2D Graphics)
  11. Re: my program for calculating the circumference and area isn't working

    See https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/windows_dos_copy.mspx?mfr=true
  12. Re: my program for calculating the circumference and area isn't working

    Where do you print the circumference? Perhaps read the API for this method...
    PrintStream (Java Platform SE 7 )
    ...or use System.out.print to print out the value.
  13. Replies
    28
    Views
    29

    Re: How to set a button event trigger?

    Suggested reading:
    How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
  14. Thread: JDialog

    by copeg
    Replies
    6
    Views
    7

    Re: JDialog

    I presume Ada is referring to the setLocation method of JComponent - this will not work with most layout managers. The default LayoutManager of the JDialog content pane is BorderLayout - google this...
  15. Replies
    3
    Views
    4

    Re: Open up a dialog on MYSQL

    Sorry, but to be brutally honest this statement alone suggests a fundamental lack of understanding of a what a database truly does. Normalization, primary and foreign keys, indexing, transactions,...
  16. Replies
    1
    Views
    2

    Re: subclassing DefaultMutableTreeNode Class

    Class cast each child to the appropriate class
  17. Re: Help me validate or break my conceptions of web technology

    Perhaps read up upon HTTP (S)
    Hypertext Transfer Protocol - Wikipedia, the free encyclopedia
    HTTP Secure - Wikipedia, the free encyclopedia
  18. [SOLVED] Re: Hi, Can Someone please confirm if what am trying to do with Graphics is possible...if it is, then how? Thanks

    Not sure why you need an alternative to drawing two rectangles, if that's the result you wish to achieve. This being said, have a look at the GradientPaint class
    GradientPaint (Java Platform SE 7 )...
  19. Re: JLabel as part of JTabbedPane tab component overwrites background color

    That's what I meant. Try doing so for the Tab object as well as the JLabel it contains. If what you try doesn't achieve the desired result, post the updated code.
  20. Re: JLabel as part of JTabbedPane tab component overwrites background color

    Set the opacity of the component to false.
  21. Replies
    3
    Views
    4

    Re: IM Program Client Side Problems

    public void actionPerformed(ActionEvent e1)
    {

    ip = JOptionPane.showInputDialog("Enter server IP address.");
    startIM();
    }


    Swing is single threaded, running all it's...
  22. Re: Function to Retrieve data from database using Jquery and ajax according to the value in the textfield in jsp

    Not sure what this has to do with Java, so thread moved to Other Programming Languages unless more info is give to suggest a more appropriate subforum
  23. Replies
    15
    Views
    16

    Re: JApplet (java runtime permissions)

    An applet is embedded within the html of a webpage, and ran on the client (browser). I could be wrong, but that exception suggests you are trying to run the jar file on the server, which your web...
  24. Re: How to read the mbr-sector ( sector zero of /dev/sda ) and print-out the partition table?

    Java is big endian, regardless of the machine it runs on. Thus little endian data will be read incorrectly when using the readInt, readLong, etc...of DataInputStream. If you believe this to be an...
  25. Re: How to read the mbr-sector ( sector zero of /dev/sda ) and print-out the partition table?

    You can read binary files using either RandomAccessFile or InputStream (eg DataInputStream). Just read (or seek) to the place you want and read in the bytes, mapping them to your data model manually....
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4