Search:

Type: Posts; User: KevinWorkman

Page 1 of 20 1 2 3 4

Search: Search took 0.39 seconds.

  1. Replies
    9
    Views
    10

    Re: 'new' instantiating command ??

    I'm not sure what you mean by "has access to" in this context. Since your myAnimal variable is of type Animal, yes, you'll only be able to call functions that exist in the Animal class. However, if...
  2. Re: Is it possible to create a child window in Processing?

    To be fair, Processing is built on top of Java, and it can be used as a Java library. In fact, the solution (which I gave OP in his post to StackOverflow, and which he seems to be ignoring) is to...
  3. Replies
    9
    Views
    10

    Re: 'new' instantiating command ??

    You've got a variable named obj. That variable can point at anything that is an Object. The example code points it at an instance of MountainBike. You could also point it at a String or an ArrayList...
  4. Replies
    9
    Views
    10

    Re: 'new' instantiating command ??

    Recommended reading: Inheritance (The Java™ Tutorials > Learning the Java Language > Interfaces and Inheritance)
  5. Replies
    2
    Views
    3

    Re: Help With ActionListener

    The String only has to be final because you're trying to do everything from the main method. Split this up into a more reasonable organization of your data: for example, you could create an instance...
  6. Re: Is it possible to create a child window in Processing?

    Crossposted: user interface - Is it possible to create a child window in Processing? - Stack Overflow
  7. Replies
    5
    Views
    6

    Re: JComboBox Issue

    Here is an example:


    final JButton button = new JButton("Click me");

    button.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent e){
    button.setText("You...
  8. Replies
    5
    Views
    6

    Re: JComboBox Issue

    Read the tutorial on anonymous classes: Anonymous Classes (The Java™ Tutorials > Learning the Java Language > Classes and Objects)

    How would you use those variables normally? Do the same thing in...
  9. Replies
    5
    Views
    6

    Re: JComboBox Issue

    Look at these two lines:


    JComboBox comboDest1 = (JComboBox) event.getSource();
    JComboBox comboAccom1 =(JComboBox) event.getSource();


    That's not going to work. The getSource() function...
  10. Re: Custom Component in JTable with Customer Renderer and Cell Editor Help.

    If you want help, you'll have to provide an MCVE that demonstrates the problem. Note that this shouldn't be your whole project, just enough code that we can copy and paste to run ourselves.
  11. Re: image enhancement project for java beginner?

    What exactly does "image enhancement" mean? What reading and research have you done so far?

    We can't really tell you whether it's feasible for you to do something, especially when you haven't told...
  12. Replies
    11
    Views
    12

    Re: Making a web site in Java

    Then honestly, it might be better to just start with static html and css. It doesn't sound like you have any use for a server (other than to host your files), and all you really need is a collection...
  13. Replies
    11
    Views
    12

    Re: Making a web site in Java

    Not really. Flash is on its way out, and html5, css, and javascript are the standard frontend "languages" as they have the most cross-platform support (think mobile devices here).

    What exactly is...
  14. Replies
    11
    Views
    12

    Re: Making a web site in Java

    The word "dynamic" is one of those words that's thrown around so much that it doesn't have any actual meaning anymore.

    One use of the word (and the way I took it) when referring to a "dynamic...
  15. Replies
    11
    Views
    12

    Re: Making a web site in Java

    Nope.
  16. Replies
    11
    Views
    12

    Re: Making a web site in Java

    There are two sides to a website:

    The front-end: This is the html, css, and javascript that you see.

    The server-side: This is the code that runs on the server that does stuff like connect to...
  17. Replies
    4
    Views
    5

    re: Help needed with loan calculator

    You don't have to post yet another duplicate. You can just edit this post.

    What happened when you googled "netbeans debugger"? What happened when you simply added some print statements?
    ...
  18. Replies
    4
    Views
    5

    re: Help needed with loan calculator

    Please don't post multiple copies of the same question in different subforums. I've deleted your duplicate post.

    When posting code, please use the highlight tags to preserve formatting. Code you...
  19. Re: why the command prompt does not recognize java as a command?

    What happened when you googled that error?

    It means you don't have your PATH setup correctly. Recommended reading: Lesson: Common Problems (and Their Solutions) (The Java™ Tutorials > Getting...
  20. Replies
    1
    Views
    2

    Re: Password hashing & Salts

    Recommended reading: cryptography - Do any security experts recommend bcrypt for password storage? - Information Security Stack Exchange
  21. Re: cannot find symbol:getSystemCpuLoad()

    You need to post an MCVE that demonstrates exactly what you're doing. This works fine for me:


    import java.lang.management.ManagementFactory;
    import com.sun.management.OperatingSystemMXBean;
    ...
  22. Re: cannot find symbol:getSystemCpuLoad()

    Are you sure the type of osBean is com.sun.management and not java.lang.management?
  23. Replies
    13
    Views
    14

    Re: nary tree from string

    Well, if you're getting errors it's obviously not correct. What exact line is the error on? What index are you trying to access? How many indexes does the array on that line have? What caused the...
  24. Re: cannot find symbol:getSystemCpuLoad()

    Surely you must know this isn't how you ask questions by now.

    You tell us. What is the exact text of the error? What type is osBean? What functions does that type have?
  25. Replies
    5
    Views
    6

    [SOLVED] Re: cannoot find symbol

    It does. This is why you should always use curly brackets with if statements and for loops.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4