Search:

Type: Posts; User: Cornix

Page 1 of 20 1 2 3 4

Search: Search took 0.51 seconds.

  1. Replies
    4
    Views
    364

    Re: Can i make Gui on this?

    I would suggest you first read a few tutorials / books on Swing. Creating a good Swing GUI is not that easy and requires quite a bit more then basic java skills.
  2. Replies
    1
    Views
    585

    Re: JavaFX Panel Image

    You are confusing many things in your post. First of all your title says you use JavaFX but then you talk about JPanels from Swing. Second, JPanels do not have a border. What you need is a JFrame.
    ...
  3. Replies
    2
    Views
    390

    Re: how to setup a 'wait' condition

    There are many ways you could do that. I would suggest you keep a message queue for each agent. The queue stores messages in the order of their appearance, first in first out.
    Every time the master...
  4. [SOLVED] Re: Problem with the use of the keyword "instance of" and the method getClass()

    The instanceof Operator only works with constant Class values. The way you do it is impossible.
    What you can do instead is use the isInstance(Object) method of the Class class. Example:


    public...
  5. Re: [ASK]Create 3D Effect JTextField Like Text Box VB

    Almost everything is possible. Doesnt mean it is easy to do.
  6. Replies
    4
    Views
    202

    Re: Receiving multiple UDP packets.

    UDP is not a lossless protocol. There is always the possibility of data being lost when you send it via UDP. There is also the chance that the packets do not reach their destination in the same order...
  7. Replies
    4
    Views
    1,428

    [SOLVED] Re: Beginning Java - from book - Adaptors...

    Besides the uppercase/lowercase error in your KeyListener there is also a problem with focus. A KeyListener will ONLY report events if it is registered at a component that currently holds the focus...
  8. Replies
    5
    Views
    1,590

    Re: Java equivalent to .Net's AnyCPU

    Have you tried to search for this?
    I find the following which seems promising:
    operating system - How can I check the bitness of my OS using Java?? (J2SE, not os.arch) - Stack Overflow
  9. Replies
    10
    Views
    293

    Re: need help with a return - beginner java

    Okay, thats what you want to do, but it is still not a question. What exactly are you having problems with? Are you getting any errors? At which point is your program not doing what you want it to do?
  10. Replies
    2
    Views
    338

    Re: Confused about enums

    Please compare the following two pieces of code, they should be roughly equivalent (some minor details are missing):
    public enum DataType {

    INTEGER,
    BOOLEAN,
    STRING,
    ;

    }
  11. Replies
    14
    Views
    534

    Re: Running 2 canvases simutainously

    1) Methods do not belong to threads.
    2) Objects do not belong to threads.
    3) Variables do not belong to threads.

    If you call Method A while executing Thread B then it will be Thread B that...
  12. Replies
    10
    Views
    293

    Re: need help with a return - beginner java

    What is your problem? What is your question?
  13. Re: Passing coordinates of hyperlink to awt.robot

    Where do you get your data from? Is it a website opened inside a browser or do you display the website inside a Swing GUI?
    If you already have the HTML data so that you can parse it, why do you need...
  14. Re: Convert ArrayList to ArrayList

    There is a constructor in both HashMap and HashTable that take a Map as parameter and copy its contents.

    But anyhow, whatever you try to do seems to be a serious case of bad coding. You should...
  15. Replies
    2
    Views
    295

    Re: Class redundancy

    Can you show us your code to better understand what you are trying to do?
    In general, new objects (instances) are ONLY created when the "new" keyword is used. If there is no "new" keyword anywhere...
  16. Re: convert video to array of images and visa versa

    There certainly is, but it sure wont be simple.
    Search the internet for video decoder / encoder and see if you can find something.
  17. Replies
    2
    Views
    156

    Re: Problem wtih Boolean

    If you want to compare the value of a variable you have to use the "==" operator instead of the "=" operator.
  18. Re: why do i have to enter an integer before program continues?

    Because you try to get an integer before your loop. Look at your code, your 2nd line is this:

    int userNumber = keyboard.nextInt();
    So you already ask for an integer before you print anything.
  19. Replies
    2
    Views
    197

    Re: Using == for Strings?

    The == operator compares two objects for identity. It returns equal ONLY IF those two objects are in fact one and the same object.
    If you do something like this:

    String a = new String("A");...
  20. Re: P2P Connection, Multithreading, Client/Server

    So? Do you have a question?
    I would recommend you read some tutorials / books about multithreading and/or Sockets in java. There are plenty of resources on the internet that show how to create a...
  21. Re: Can I use JavaFX for designing generic file viewer

    Should be possible. JavaFX, just like Swing and AWT, can be used to display graphics of any kind within a window.
  22. Thread: Rolling 3D Cube

    by Cornix
    Replies
    3
    Views
    508

    Re: Rolling 3D Cube

    And you are doing that in Swing?
  23. Replies
    10
    Views
    260

    Re: Why won't this script work in Solaris?

    If what Norm says is right you would need at least JDK 1.7 to compile the code. Check to see what version you are using on your Solaris machine.
  24. Replies
    8
    Views
    531

    Re: Static object creatiion - confused

    As I said, the static keyword makes the variable a static variable that is shared across all object instances of table.
    Without the static keyword each table would have its own Bowl variable called...
  25. Replies
    8
    Views
    531

    Re: Static object creatiion - confused

    The table line defines a variable named "bowl1" of type "Bowl" and initializes with a default value of "new Bowl(1)". So the class Table has a variable of type Bowl which is initialized with a Bowl...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4