Search:

Type: Posts; User: copeg

Page 1 of 20 1 2 3 4

Search: Search took 0.70 seconds.

  1. Re: How To Make JCreator Output in a Command Window

    Welcome to the forums. Please read the Forum Guidelines for useful information.

    You post has been moved from its original location:...
  2. Thread: JOptionPane

    by copeg
    Replies
    4
    Views
    83

    Re: JOptionPane

    Welcome to the forums. Please read the Forum Guidelines for useful information, including how to wrap your code in the code tags to preserve formatting.



    I would recommend that you avoid...
  3. Thread: TreeMap:

    by copeg
    Replies
    5
    Views
    92

    Re: TreeMap:

    You must define how each 'node' object is compared to another - the TreeMap then uses this definition to maintain order. See post #2:



    You implement this interface to define how each object...
  4. Re: how best to run external process and control it

    Valuable information can be found at When Runtime.exec() won't | JavaWorld

    As Kevin mentioned, for more complex command calls ProcessBuilder might help. Redirects and pipes directly within the...
  5. Re: How to manually put data into an InputStream?

    Perhaps I misunderstand, but an InputStream is for reading data...if you wish to call a command on the remote ssh box, use the OutputStream to write out to the ssh connection Also, have a look at the...
  6. Re: Using FileOutputStream to save array of bytes

    As norm pointed out, using the toString() method of array will use the default toString() method - see Object (Java Platform SE 7 )
    Loop over the array and write each value as a String using the...
  7. Replies
    4
    Views
    84

    [SOLVED] Re: File and PrintWriter objects

    I don't think I understand your question: they are not methods, they are classes.
    File (Java Platform SE 7 )
    PrintWriter (Java Platform SE 7 )
  8. Replies
    11
    Views
    180

    Re: Help me please with this

    I recommend you post your updated code, and ask a specific question about it. We can often only guess what you mean by 'I can't make it work' unless you state the problem explicitly.
  9. Re: Using FileOutputStream to save array of bytes

    The data is being saved as binary - try writing in text form (eg convert the byte to a String). As suggested in the API for FileOutputStream:
  10. Re: Using FileOutputStream to save array of bytes

    It is unclear, at least to me, how you 'see' the file contents. Do you display the file contents elsewhere? How are you reading the file? How do you know this is a writing problem rather than a...
  11. Re: switch program problem check my program and help how to fix

    Thread moved from What's Wrong With My Code?
  12. Replies
    3
    Views
    97

    Re: Stale Object exception

    Did you read the API for that exception?
    NonUniqueResultException (Java EE 5 SDK)
    The query you are using returns more than one result. Change the data to reflect your query (eg make it a single...
  13. Replies
    11
    Views
    299

    [SOLVED] Re: Algorithym to remove unnecessary points

    Unfortunately not feasible. From the API for Line2D.contains:
  14. Replies
    11
    Views
    299

    [SOLVED] Re: Algorithym to remove unnecessary points

    More than one way to skin a cat. Here's a more mathematical way to look at it: be it a straight line or a curve, the line/curve between two points can be specified by a math function (for a line this...
  15. [SOLVED] Re: Java runtime get result output from prompt problem with a larger output in type

    Suggested reading: http://www.javaprogrammingforums.com/cafe/6776-problems-cross-posting.html
  16. Replies
    4
    Views
    101

    [SOLVED] Re: algoritm of Convert hex to floating point

    Search the internet, search the java API (for instance: Double (Java Platform SE 7 ) ), and make an attempt. This forum is not a substitute for doing your own research, but is useful if you get stuck...
  17. [SOLVED] Re: Java runtime get result output from prompt problem with a larger output in type

    First, please wrap all code in the code tags to preserve formatting as explained here: Forum Guidelines

    Second, I would recommend reading When Runtime.exec() won't | JavaWorld

    Lastly, it seems...
  18. Replies
    1
    Views
    116

    Re: Issue with JOptionPane showMessageDialog

    See the steps outlined in the following (specifically step 2):
    How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
  19. Replies
    3
    Views
    372

    Re: Can this possibly done?

    Have the java program accept parameters, either via command line input (eg main(String[] args) ), a GUI (Swing?), or a config file.
  20. Replies
    11
    Views
    212

    Re: easy prob, just not for me

    This is the reason for my statement above in post #6 - even the API for this library does not indicate what the default behavior is of 'GRect'.
    Generated Documentation (Untitled)
    Based upon...
  21. Replies
    1
    Views
    140

    Re: servlet question on cookies

    You must have mistook this forum for a code service. You first...What have you tried?
  22. Re: How to find whether changes made in the checkbox or not which is inside a combobox?

    Are you asking how to listen for when the JCheckBox gets checked/unchecked? See the following: How to Use Buttons, Check Boxes, and Radio Buttons (The Java™ Tutorials > Creating a GUI With JFC/Swing...
  23. Re: How to call the executable jars using Jbutton

    1) add an action listener to the JButton
    2) in the ActionListener implementation
    a) Create a process using ProcessBuilder or Runtime.exec or and get the results
    b) Read in the jar contents...
  24. Re: colors in java.. what would be most easy to start with for a beginner?

    See Lesson: Working with Images (The Java™ Tutorials > 2D Graphics)
  25. Replies
    11
    Views
    212

    Re: easy prob, just not for me

    The description by the OP sounds like a runtime problem rather than a compile time problem. That being said I think you're on the right track in that one must configure the GRect object appropriately...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4