CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Norm

Page 1 of 80 1 2 3 4

Search: Search took 0.08 seconds.

  1. Re: How to make call to a package location in a code

    Look at the Desktop and Runtime classes. You can call OS commands with methods in those classes.
  2. Thread: Java AVL bug

    by Norm
    Replies
    2
    Views
    1,742

    Re: Java AVL bug

    Please edit your post and wrap your code in code tags for better displaying.
  3. Thread: draw Rectangle

    by Norm
    Replies
    2
    Views
    980

    Re: draw Rectangle

    For each method you need to have code that writes some * on a line.
    The method for the filled one writes the same number on each line.
    The method for the outline only writes a full line of * for...
  4. Replies
    1
    Views
    1,093

    Re: Download file - get REAL filename

    Have you looked in the Response Header?
  5. Replies
    3
    Views
    1,282

    Re: Small Student Program; using a grid

    Try calling repaint() after you change the GUI's contents.
  6. Replies
    1
    Views
    823

    Re: Develop an application like JConsole

    how to go about linking these two
    Define some methods in the class that has the data that the GUI class can call to do what it needs to do. The GUI class would need a reference to the class with...
  7. Replies
    19
    Views
    2,406

    Re: Java tutorial *help*

    java.lang.NullPointerException
    at Test.rightPlace(Test.java:30)

    You have seen this type of error before. YOU should know by now how to solve it. see post#15

    Look at line 30 and see...
  8. Replies
    19
    Views
    2,406

    Re: Java tutorial *help*

    Read into a variable:
    String theLine = br.readLine();
  9. Replies
    19
    Views
    2,406

    Re: Java tutorial *help*

    What variable is null on line 28? Backtrack in your code to find out why that variable does not have a valid value.

    For example this code assumes that the world is perfect:
    ...
  10. Thread: if statement

    by Norm
    Replies
    1
    Views
    605

    Re: if statement

    An if statement can test the current values of variables. Keeping track of values would require an assignment statement.
  11. Thread: class extension

    by Norm
    Replies
    6
    Views
    1,273

    Re: class extension

    This code compiles with no errors:


    public class InheritanceTest {
    class Player {}
    class client extends Player implements Runnable {
    //code here
    public void run(){}
    }
    ...
  12. Thread: class extension

    by Norm
    Replies
    6
    Views
    1,273

    Re: class extension

    You need to post all of the code for all of the classes. Your edited,shortened code samples are useless.
  13. Replies
    4
    Views
    691

    Re: Help with code output please!!

    There are a lot of calls to the println method.
    Are you saying that none of them are executing? Nothing is printed on the screen???

    You need to add some more println statements to show where...
  14. Replies
    4
    Views
    691

    Re: Help with code output please!!

    What does the program output now?

    Please edit your post and wrap the code in code tags: [/code] at the end and [code] at the start
  15. Replies
    3
    Views
    940

    Re: Java Applet with Image Help

    Also The .java extension in the code= tag looks wrong.
  16. Replies
    4
    Views
    815

    Re: How to position widgets

    Have you read the API doc for the JComponent class to see what methods could be useful?
    Are there any that deal with the layout manager or the location and size of the component?
  17. Replies
    19
    Views
    2,406

    Re: Java tutorial *help*

    But is that where the program is looking for it?
    Create a File object for the file and print its absolutePath to see where the program is looking for the file.
  18. Replies
    19
    Views
    2,406

    Re: Java tutorial *help*

    Your code looks like it should be able to read an existing file.
    You need to be sure the file is where the program is looking for it to be.
  19. Replies
    4
    Views
    815

    Re: How to position widgets

    If you don't want to use one of the layout managers, Remove the layout manager and use one or more of the JComponent methods to set the components position.
  20. Thread: main method

    by Norm
    Replies
    5
    Views
    782

    Re: main method

    You need to have the standard main method in any class you try to start by using the java command:

    java ThisClassMustHaveMainMethod
  21. Thread: class extension

    by Norm
    Replies
    6
    Views
    1,273

    Re: class extension

    How are you "calling" a class? Do you mean you are trying to create an instance of the class?
    Or to call a method in a class?
  22. Replies
    1
    Views
    1,100

    Re: Problems with Keyboard.readInt

    Some terminology. I think what you mean by a command is called a method call.
    The expression: Keyboard.readInt()
    is a call to the static readInt() method for the class Keyboard. I say static...
  23. Thread: window icon

    by Norm
    Replies
    9
    Views
    1,060

    Re: window icon

    Try this to see if you know what the absolute path is:
    File file = new File("<Put absolute path here>minilogo.png");
    then test if it exists
  24. Thread: window icon

    by Norm
    Replies
    9
    Views
    1,060

    Re: window icon

    file.getAbsolutePath() is C:\resources\logo.png
    Is that where the file is: C:\resources\
    That is where the JVM is looking for it.
  25. Replies
    1
    Views
    665

    Re: How to open a picture

    What do you mean by "open" for a file? Do you want the OS to select a program(or do it yourself), start that program executing and have that program read the file and display it?

    Look at the...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4



HTML5 Development Center

Click Here to Expand Forum to Full Width