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

Search:

Type: Posts; User: kaaj

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    2
    Views
    775

    Re: Nesting of combo boxes or similar one

    Hi,
    Why dont you try having two combo boxes.

    1. Initially populate all values in first combo.
    2. As per the value selected in this combo, populate the items in the second combo.

    Will...
  2. Thread: clone method

    by kaaj
    Replies
    1
    Views
    653

    Re: clone method

    Hi,
    An Object's implementation of Clone method checks to see whether the object on which clone was invoked implements the Cloneable interface.

    If the object does not, the method throws a...
  3. Thread: SCJP - only exam

    by kaaj
    Replies
    4
    Views
    2,136

    Re: SCJP - only exam

    Hi,
    Go to this link
    http://java.boot.by/scjp-tiger/

    Also visit JavaRanch for other exam-writer's experiences.

    I'm also in the way to SCJP 5.0

    Happy learning...
  4. Re: Write/Read Array of BeanObjects using XMLEncoder

    I solved the reading/writing part to the xml.

    But is there a way to make the xml file - well formatted.
  5. Write/Read Array of BeanObjects using XMLEncoder

    Hi,

    This is very urgent. I've designed a feedback Bean.

    import java.io.Serializable ;

    public class FeedbackBean implements Serializable{

    private String assetName;
    private String...
  6. Replies
    3
    Views
    862

    Re: how to use rgb color?

    Hi,

    U can set a color to graphics object as below:

    g2obj.setColor(Color.blue);


    You can also create your own color objects:
  7. Replies
    1
    Views
    772

    Re: run time & compile time

    Hi,

    The following link will clearly explain ur doubtful concepts with samples

    http://www.janeg.ca/scjp/overload/overloadingMethods.html
  8. Re: how to read from database and convert it to an xml file?

    Hi,
    Learn more abt this from the following link :

    http://www.javaolympus.com/J2SE/Database/JDBC/JDBCXML.jsp
  9. Replies
    5
    Views
    6,091

    Re: Granting read FilePermission to an applet

    Hi,

    Go to this link for a clear snapshot on permissions granted to an applet.
    http://java.sun.com/docs/books/tutorial/security1.2/tour1/step1.html
  10. Replies
    2
    Views
    741

    Re: text fields/ text areas

    Hi,
    Hav a good idea in using various layout managers in java.

    They might help u in different screen sizes.

    Check this link...
  11. Thread: Random numbers

    by kaaj
    Replies
    2
    Views
    777

    Re: Random numbers

    The following class generates random numbers within specified limits

    public class RandomNumberBounds {

    private static void generateRandomNumber() {

    int rawNumber;

    ...
  12. Replies
    5
    Views
    2,146

    Re: Add a JChooserColor to a JMenuItem

    Hey,
    I'll come to ur doubt later.

    I've a doubt in the last part of ur code.

    The color returned by the ColorChooser is in variable 'newColor'.

    But while setting the background color, u hav...
  13. Thread: Html

    by kaaj
    Replies
    3
    Views
    763

    Re: Html

    The problem is with the String variable table.

    U haven't used escape sequences for double quotes.

    So the string variable might be truncated.

    This is just a guess.

    Try doing this.
  14. Replies
    2
    Views
    692

    Re: package not found error

    First try to understand the usage of Classpath variable.

    It specifies the compiler about the location of the class files which are either directly or indirectly involved in the current program...
  15. Replies
    4
    Views
    1,147

    Re: How to access Visual source safe from java?

    Hi,
    Instead of using VSS, try out CVS - Concurrent Version System.

    Chk this link
    http://www.jcvs.org/

    Happy versioning!!!!
  16. Thread: PageFormat

    by kaaj
    Replies
    1
    Views
    983

    Re: PageFormat

    hi,
    Follow this link.. U'll get a clear idea..

    http://java.sun.com/docs/books/tutorial/2d/printing/pagesetup.html
  17. Replies
    5
    Views
    2,146

    Re: Add a JChooserColor to a JMenuItem

    Hi,

    your Objective is to bring out a color Palette when u click on a menu item, right!!!


    This can be done in two steps :

    1. Add Actionlistenerto the required MenuItem.
    2.In the...
  18. Replies
    2
    Views
    11,312

    Re: ResultSet and JTable

    Hi,
    Kindly refer the JTable samples that comes along with JDK.
    It contains a simple example of retrieving data from a database and displaying in the JTable depending upon the datatype.

    ...
  19. Replies
    1
    Views
    775

    Re: Accessing executable program in C language

    Of course, u should use the java Native Interface.
    Use the following link :

    http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html
  20. Replies
    1
    Views
    2,157

    Re: JTable cell Editing

    You can edit the table cells in the following way :-

    // Create table
    int rows = 10;
    int cols = 5;
    JTable table = new JTable(rows, cols);

    // Enable the ability to...
  21. Thread: blinking windows

    by kaaj
    Replies
    1
    Views
    1,057

    Re: blinking windows

    Try setting the visible property to false and then dispose the frame.

    Ex :
    frame.setVisible(false);
    frame.dispose();
  22. Replies
    3
    Views
    980

    Re: Help!!! Connecting to a DB

    1. The shortcut to do the above is use the '.'

    set classpath=%classpath%;.;c:\junit3.7\junit.jar;

    where . represents the current working dir

    which may avoid confusion when the folder name...
  23. Thread: JTables

    by kaaj
    Replies
    1
    Views
    1,146

    Re: JTables

    Try out this piece of coding :


    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.print.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import...
  24. Thread: Books

    by kaaj
    Replies
    1
    Views
    1,084

    Re: Books

    hi,

    Dont worry! that is one of my favourite links!!!

    Here it is

    http://vlibrary.h10.ru/java/JDCBook/advprint.html

    Happy learning
  25. Replies
    2
    Views
    2,209

    Re: Custom Modal Dialog Window

    U can use the JDialog constructor as shown below :-

    JDialog(owner, title, isModal)

    Ex:

    JDialog dialog = new JDialog(null, "A Modal Dialog", true)

    If u specify 'true' for the third...
Results 1 to 25 of 33
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured