Search:

Type: Posts; User: Skywola

Search: Search took 0.24 seconds.

  1. Replies
    4
    Views
    152

    Re: Embedding an image in textbox

    It looks like you are correct on that Norm . . .
    How to Use Editor Panes and Text Panes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)
    Thanks, that really appears...
  2. Replies
    4
    Views
    152

    Re: Embedding an image in textbox

    Microsoft word is an example of what you can do - drag-drop an image into it, and the image itself
    shows up within the text. That is what I would like to be able to do. I have been able to do...
  3. Replies
    4
    Views
    152

    Embedding an image in textbox

    Is this even possible? I would like to make it so I can drag drop an image into a textbox . . .
    does anyone know of any tutorials or example code for this? Thanks in advance.
  4. Replies
    3
    Views
    120

    Re: Java user input

    I created a project similar to what you are talking about. ArrayList works good for it, but you will want to create a class for the questions and answers. Creating a class and passing it to the...
  5. Replies
    3
    Views
    120

    Re: Java user input

    You say "Okay im trying to get when a user inputs a question the java program will output a pre written answer."

    Are you only expecting one question?

    Also . . . change



    username =...
  6. Replies
    1
    Views
    223

    Re: No Input, Windows 7 64-bit, Netbeans 7.4

    I found the problem . . . . it is disgusting! :(|) NetBeans uses UTF-8, as it should be . . .
    Eclipse uses ANSI! And it is a locked setting, so you cannot change it as far as I know.
    The...
  7. Replies
    1
    Views
    223

    No Input, Windows 7 64-bit, Netbeans 7.4

    I am running Windows 64 bit, Netbeans 7.4, and I can't key command-line
    input. Eclipse, using the exact same code, allows input. I have tried
    all kinds of changes to the settings, but still...
  8. Thread: Typecasting?

    by Skywola
    Replies
    2
    Views
    153

    Re: Typecasting?

    So it appears that they are saying that to use the JComponent features, you need to
    do one of three possible things:

    1. Typecast the return value.

    contentPane1 = (JComponent)...
  9. Replies
    1
    Views
    172

    Re: Making Commands in Java

    A good reference for starting is:

    The Really Big Index

    I am with you, I am learning this too. The method I am using is:
    First import:

    import java.util.Scanner;

    Then in the main part of...
  10. Thread: Typecasting?

    by Skywola
    Replies
    2
    Views
    153

    Typecasting?

    On the Oracle website, at
    Using Top-Level Containers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

    I have this paragraph:


    However, it does not really give a...
  11. Thread: File IO

    by Skywola
    Replies
    5
    Views
    283

    Re: File IO

    I hear you on that . . . . I am currently working through a transcender practice
    test for the first Java 7 exam, and it is no walk in the park, if you do no coding, your
    chances of passing are...
  12. Thread: File IO

    by Skywola
    Replies
    5
    Views
    283

    Re: File IO

    Well, I am really looking for something that expands on this:
    Reading, Writing, and Creating Files (The Java™ Tutorials > Essential Classes > Basic I/O)

    AND any other forms, including nio. ...
  13. Thread: File IO

    by Skywola
    Replies
    5
    Views
    283

    File IO

    File IO is a large subject, and what I really find confusing about
    it is that nearly anywhere you look for information on it, you find
    a morass of different methods listed on how to read or write...
  14. Replies
    3
    Views
    182

    Re: Question about interfaces

    You have drawn the wrong conclusion; I did not paste this in. I use a 42" television
    as my computer monitor . . . . hence the "wideness".
  15. Replies
    3
    Views
    182

    Question about interfaces

    I really just suspect this, but I'm asking to confirm one way or the other.

    In the study books I have read about interfaces, all of the examples I have seen so
    far show the interface being...
  16. Re: Experiment gone wrong . . . exception in class

    That makes sense . . . . I'll give it a whirl. Thanks.

    Later note:
    Just in case anyone wants to see what I cooked up from this:



    public static int[] swapElements(int[] values, int...
  17. Experiment gone wrong . . . exception in class

    Ok, so I was just goofing off, creating a class that allowed you to pass in an array,
    and pass in the two positions that you want to swap, and then return the array,
    it's just a jackass solution,...
  18. Replies
    2
    Views
    315

    Re: BlueJ, Unit testing question

    Thanks for the response . . . I use Eclipse for writing the code, but BlueJ for testing. BlueJ seems to be kind of cool because you can do UML in it too.
  19. Replies
    2
    Views
    315

    BlueJ, Unit testing question

    Do most unit testers use BlueJ? I am wondering what I should learn for unit testing. Also, given that you should unit test all classes, if you are writing a class that produces a ListArray of...
  20. Replies
    3
    Views
    175

    Re: Redirecting output at command line.

    Thanks Greg and Norm . . . your right, I should have mentioned it is for Windows 7 . . . I'll edit the original message, thanks!
    I do not see any OS forums here on this site. I use CentOS too, but...
  21. Replies
    3
    Views
    175

    Redirecting output at command line.

    This should be easy, but it does not seem to be working . . .

    All I want to do is output the help info to a file, and I am attempting to do it on the command line like this:

    javac -help >...
  22. Replies
    1
    Views
    179

    classpath, .jar, and import statements

    I am trying to figure out how to take my .class files, put them in a .jar file, and then
    import the package into a .java file.

    So far, I have been able to create the .jar file, but I am...
  23. Replies
    3
    Views
    168

    Re: Code Experiment - Why the change?

    Ok, I see, said the blind man . . . .




    a = 10;
    System.out.println("a = " + a);
    f = a++ +a;
    System.out.println("a =" + a + " a = " + a);
  24. Replies
    3
    Views
    168

    Code Experiment - Why the change?

    This code is some code that I started out with experimenting, from a bit of code that I
    found in OCA Java SE 7 Certification Guide by Mala Gupta. What puzzles me is the
    output. My question is...
  25. Replies
    1
    Views
    131

    Working on IZO-803

    I'm working on preparing for IZO-803, so I thought it might be helpful to join the forum. [..]
Results 1 to 25 of 25