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

Search:

Type: Posts; User: jcaccia

Page 1 of 13 1 2 3 4

Search: Search took 0.77 seconds.

  1. Replies
    21
    Views
    2,995

    Re: jtable column blues

    Ok, this is not exactly the same asor your other post with a sample of what you wanted as a table with apparently just 2 columns.

    So, starting with this table:
    | Col 0 | Col 1 | Col 2 | Col 3 |...
  2. Replies
    21
    Views
    2,995

    Re: jtable column blues

    I thought you have 7 columns and want to remove columns 2 to 6. That means leaving the first and last columns, which is what you should get with my code sample. But now you say it is not removing the...
  3. Replies
    21
    Views
    2,995

    Re: jtable column blues

    but it didn't work, and there were a couple of versions with different starting values for col and the argument for .getColumn. According to your post #11 you "got rid of the 2nd column,but can’t get...
  4. Replies
    21
    Views
    2,995

    Re: jtable column blues

    Can you post the code you have now?
  5. Replies
    21
    Views
    2,995

    Re: jtable column blues

    The column indexes are 0 based, so the 2nd column would be column 1.
  6. Replies
    21
    Views
    2,995

    Re: jtable column blues

    Is it the original column #2 that is not deleted or a column that shows now in the second position after deleting them?
    The correct code should be:

    for (int col = 1; col < 6; col++) {
    ...
  7. Replies
    4
    Views
    1,073

    Re: Code malfunction

    By the way, that code prints a solid rectangle. To print a hollow rectangle as required you should first print the top line (all *), then a series of lines consisting of an * at each end and spaces...
  8. Re: Java JSP - using if()-else() inside scriptlets

    The if does not have a string as its only statement. It has two statements, both setting session attributes (balance and formattedBal). The error complains about the use of = (assignment) instead of...
  9. Replies
    7
    Views
    2,698

    Re: Servlet handling its own outputted HTML form

    You keep the balance in an instance variable, so every time the servlet is instanciated a new variable is created (and initialised to 0.0).

    If you changed the balance to a static variable then all...
  10. Replies
    2
    Views
    790

    Re: Java Swing: Menu Bar

    Where are you adding the menu options (File, Book, etc) in MyMenuBar?

    Please follow the Java naming conventions more consistently (variable/method names start in a lowercase letter).
  11. Re: RegEx problems, trying to force decimal point and 2 digits on a numeric filter.

    Have you considered using JFormattedTextField instead of JTextField? You can forget about filtering and formatting. Have a look at the Java Tutorial (I wanted to post the link, but it errors every...
  12. Re: strange loop issue after .read()

    Think of what the program is reading. You type a single letter and then the enter/return key. The program sees two additional characters after the letter you typed corresponding to the enter key...
  13. Replies
    2
    Views
    855

    Re: Illegal Escape Character Error! Pls Help!

    Strings[] args? Didn't you mean String[] args?
  14. Replies
    5
    Views
    2,066

    Re: Making a int read multiple ints (Scanners)?

    This might sound like a stupid question but, what version of Java are you using? Scanner was introduced in 1.5.
  15. Replies
    8
    Views
    4,125

    Re: How to add strings to this Code?

    When comparing objects (Strings in particular) == tests for identity (ie, if the references compared refer to the same object); to test equality use the equals method. In this case you can also use...
  16. Re: Javac is not compiling correctly ... Please help

    Java is a case sensitive language, so String is not the same as string (also notice it's System, not system).

    The convention is to capitalise class names (Hello instead of hello), and use...
  17. Replies
    4
    Views
    1,591

    Re: How can I submit data into an iFrame?

    This is still Javascript, not Java. Please use the appropriate forum (scripting).
  18. Replies
    1
    Views
    1,402

    Re: Code does nothing :(

    This is a Java forum. Java is not the same as javascript. Please use a scripting forum.
  19. Replies
    2
    Views
    2,156

    Re: MS SQL Server Trigger

    Or why not using the more suitable and standard ISO codes? (see ISO 3366 and ISO 4217)
  20. Re: any help would be apreciated with arrays, exception in thread

    You call the split method to divide the string in portions (words) separated by a space character, which will produce an array of strings. The number of elements in this array depends on the number...
  21. Re: any help would be apreciated with arrays, exception in thread

    The exception is thrown in this line:

    String lname = details[1];
    because you are assuming that details will have (at least) two elements. I guess you expect the string read from the scanner three...
  22. Replies
    8
    Views
    4,842

    Re: Finding if a Palindrom - Please review

    I would just use a for loop, going from 0 to half the length of the string, using it as an offset from both ends of the string and compare the characters in those positions. You can stop when the...
  23. Replies
    1
    Views
    2,301

    Re: Battleship program- need help

    In line 13 of the Grid class (where the exception is thrown) you are invoking the setValue method on an element of the playerBoard array, but the elements in this array are not initialised before...
  24. Re: Write a java program that contains a shell script

    If you are running your program in Windows you need to use cmd for the shell instead of ksh. You also need to pass /C as an option to cmd so it runs the command (ie your shell script) and terminates,...
  25. Thread: GPA Program

    by jcaccia
    Replies
    4
    Views
    4,598

    Re: GPA Program

    You need to save the values in variables in the enum using an appropriate constructor. For instance, if you wanted to have an enum for the grades with their corresponding points you could do...
Results 1 to 25 of 309
Page 1 of 13 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)