Search:

Type: Posts; User: copeg

Page 1 of 20 1 2 3 4

Search: Search took 0.33 seconds; generated 51 minute(s) ago.

  1. 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...
  2. Replies
    4
    Views
    62

    [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 )
  3. Replies
    11
    Views
    145

    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.
  4. 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:
  5. 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...
  6. Re: switch program problem check my program and help how to fix

    Thread moved from What's Wrong With My Code?
  7. Replies
    3
    Views
    83

    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...
  8. Replies
    11
    Views
    192

    [SOLVED] Re: Algorithym to remove unnecessary points

    Unfortunately not feasible. From the API for Line2D.contains:
  9. Replies
    11
    Views
    192

    [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...
  10. [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
  11. Replies
    4
    Views
    80

    [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...
  12. [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...
  13. Replies
    1
    Views
    95

    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)
  14. Replies
    2
    Views
    215

    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.
  15. Replies
    11
    Views
    200

    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...
  16. Replies
    1
    Views
    129

    Re: servlet question on cookies

    You must have mistook this forum for a code service. You first...What have you tried?
  17. 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...
  18. 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...
  19. 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)
  20. Replies
    11
    Views
    200

    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...
  21. Replies
    11
    Views
    200

    Re: easy prob, just not for me

    Welcome to the forums. Please see Forum Guidelines for instructions on how to preserve code formatting.

    I'm not sure I know what the question is. Does it compile? Are there exceptions? Does it...
  22. Re: How to find whether a number is palindrome or not?

    @Azizur, welcome to the forums. Please read:
    Forum Guidelines
    http://www.javaprogrammingforums.com/cafe/9544-problem-spoon-feeding.html
  23. Re: No Session found for current Thread (Hibernate 4/Spring3)

    Thread closed in lieu of http://www.javaprogrammingforums.com/whats-wrong-my-code/38886-no-session-found-current-thread-hibernate-4-spring3.html
  24. Thread: JDBC drivers

    by copeg
    Replies
    2
    Views
    82

    Re: JDBC drivers

    Suggested reading: JDBC driver - Wikipedia, the free encyclopedia
  25. Replies
    2
    Views
    49

    Re: EclipseLink Derby database problem

    Could be any number number of things, from connecting to the database, to querying, to displaying the data. Perhaps someone else can come along and somehow guide you, but from where I sit the lack of...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4