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

Search:

Type: Posts; User: newkid

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    436

    print problem...

    help ! this print program print nothing . all source code included.
    i am using jdk1.2.2 on win 95 pc.

    if i use a smaller jtable. it will print the jframe. why ? how can i print a big jframe ?

    ...
  2. Replies
    9
    Views
    52,961

    how to do calculations with calender ?

    tfStartDate.setText("30/05/1998");
    tfEndDate.setText("30/03/1999");

    String stryear1 = tfStartDate.getText().substring(6,10) ;
    String strmonth1 =...
  3. Replies
    1
    Views
    2,802

    how to validate a date on a jtextfield ?

    how do i validate a jtextfield which only allow dd/mm/yyyy in it.
    the length must be 10 and any other format will cause an error to pop out.

    any help is much appreciated.


    thanks
    ...
  4. how to prevent a jtextfield from being resized ?

    how can i stop a jtextfield from being resized ?

    when the form is maximized, the jtextfield becomes so blotted and ugly...

    yukk...

    how can i prevent that while allowing the jframe to be...
  5. Replies
    0
    Views
    426

    how to update the table contents

    PLEASE HELP
    ===========

    i am really lost on how to do this.

    how do i update the table contents when the user select another date and click the button.

    i need to update the table (default...
  6. Replies
    9
    Views
    52,961

    Re: how to clear all row in a jtable ?

    i have no idea how to start doing that.

    can you give me some code sampels ?

    thanks a lot.

    http://members.xoom.com/lookads
  7. Replies
    9
    Views
    52,961

    how to clear all row in a jtable ?

    how do i clear all the rows in a jtable so that i can put in new rows as a result of clicking on a button ?

    http://members.xoom.com/lookads
  8. Replies
    0
    Views
    2,643

    how to print a jpanel

    how can i print a jpanel with many components on it ?

    components such as jlabel, jbutton and jtables ?


    the various examples i found only shows how to print the contents of a jtable or a...
  9. Replies
    1
    Views
    26,024

    how to check if an array is null ?

    String cols[][][] = new String[7][2][]; int colcount[] = new int[7];
    int i=0;
    while (rs.next()) {
    cols[0][0][i] = rs.getString(1);
    cols[0][1][i] = rs.getString(2);
    colcount[0] +=...
  10. Replies
    4
    Views
    3,651

    can you give me a short example ?

    can you give me a short example ?

    how do i put html in my jlabel.

    i thought jlabel only displays a single line of code ?

    thanks

    http://members.xoom.com/lookads
  11. Replies
    4
    Views
    3,651

    make a jlabel span multiple lines ?

    can i make a jlabel that span multiple lines ?

    it displays lines on top of other lines.

    that's all.


    thanks in advance.

    http://members.xoom.com/lookads
  12. how to align the cell inside a jtable to left or right ?

    how to align the cell inside a jtable to left or right ?

    is there an easy way where we do not need to extend the cellrenderer ?

    http://members.xoom.com/lookads
  13. easy question : how to create a table with only columns and ...?

    this is just an easy question :
    how do i create a table with only columns and no rows and the table's height is its column height.

    can i specify the table's column width ?

    thanks
    ...
  14. how to add objects to the defaulttable model ?

    how do i add the rows to the jtables.
    using my method, it is not a good way to add it.
    as i need to check j==0 , j==1 ...etc.


    //import java.util.Vector;
    import java.sql.*;
    import OraDB;...
  15. Replies
    4
    Views
    2,084

    how to add another row ?

    import javax.swing.*;
    import java.util.*;

    public class TableEx{
    public static void main( String[] str ){
    JFrame frame = new JFrame();
    Vector columnNames = new Vector();
    ...
  16. Yes. You're right.

    Yes. It works. I did not know that i have to download all the files you specified.

    Previously, i only downloaded 1 file and tried to compile.

    Now, it works.

    Thanks a lot.
    ...
  17. Replies
    4
    Views
    2,084

    Re: populating jtable by using vector .

    tableLabels.addElement("Emp Code");
    tableData.addElement("0181");

    JTable table = new JTable (tableData, tableLabels );


    C:\JavaClass>java demotable
    Exception in thread "main"...
  18. Replies
    4
    Views
    2,084

    populating jtable by using vector .

    below is my code.
    how do i implement adding rows dynamically to the jtable using vector. ( i know it is vector.addElement something... But what is the actual code ? )

    Thanks


    import...
  19. Re: how to create a jtable header that takes up 2 lines ?

    the example is this, as below. it could not compile :-

    http://www2.gol.com/users/tame/swing/examples/src/examples/GroupableHeaderExample.java


    /* (swing1.1beta3)
    *
    *...
  20. Re: how to create a jtable header that takes up 2 lines ?

    cannot compile the source code at
    http://www2.gol.com/users/tame/swing/examples/JTableExamples2.html
    because it imports user defined classes.

    so, how now ?

    http://members.xoom.com/lookads
  21. Re: just need some example on default table model that can add and delete rows ..

    how does the whole file look like . well, i really need to get it fast and could not afford to read up on the java books.

    really appreciated some java code. hopefully a working demo.

    thanks a...
  22. how to create a jtable header that takes up 2 lines ?

    how do i create a jtable header that takes up 2 lines ?

    such as below ?

    | Sex |
    | M | F |



    Thanks again
  23. just need some example on default table model that can add and delete rows ..

    yes. thanks for the code. but, i thought some of you really could come up with some code that can add and delete rows.

    http://members.xoom.com/lookads
  24. really need an example of default table model ...

    Help. I am stuck.
    I want to implement a JTable which can addrows to it.

    From
    http://java.sun.com/products/jfc/swingdoc-api-1.0.3/com/sun/java/swing/table/DefaultTableModel.html

    only contain...
  25. Replies
    1
    Views
    531

    Re: JDBC 2.0 Drivers

    i got one from for oracle called 816classes12.zip
    jdbc driver category 4 - thin client .

    you can download from http://members.xoom.com/goodfreead

    http://members.xoom.com/lookads
Results 1 to 25 of 33
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured