Search:

Type: Posts; User: Karthik Prabhu

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,586

    Re: what's wrong with this function?

    What is the error?
  2. Replies
    6
    Views
    1,203

    Re: Do while loop help

    Your logic was correct but you have made an error in your program.
    The statement,i = in.nextInt();should be inside the do-while loop.


    import java.util.Scanner;

    public class twelve{
    public...
  3. Re: add a default constructor in abstract class

    //Abstract Subclass of Fish

    abstract class FreshWaterFish extends Fish{

    public FreshWaterFish()
    {
    System.out.println("FreshWaterFish");
    ...
  4. Replies
    5
    Views
    1,539

    Re: What is wrong with my code?

    While writing the "-" operator did u use the one on the numpad or the other one near the "0" ?
    Because, when i wrote the program in eclipse,it ran perfectly well.
  5. Replies
    5
    Views
    1,539

    Re: What is wrong with my code?

    What error is it showing? Or is the output ,you did not expect,is coming?
  6. Replies
    2
    Views
    19,979

    Emulator not working

    When i hit the run button,the emulator screen comes up and the console shows the things below...
    [2012-06-30 19:21:53 - xdasdk] ------------------------------
    [2012-06-30 19:21:53 - xdasdk] Android...
  7. Replies
    14
    Views
    1,539

    Re: Frame not becoming invisible

    See,2 frames are being created because u have created 2 objects-app and jftMainFrame
  8. Replies
    2
    Views
    1,466

    Re: JScrollPane Difficulty. Help Please

    Just study this piece of code and try if u can figure something out. This is a simple example of a ScrollPane.

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;...
  9. Replies
    5
    Views
    1,760

    Re: MouseListener

    The code,which i think,should print a message on the frame that the "Mouse is clicked",when the mouse is clicked. The repaint() will get called when the mouse is clicked.
  10. Replies
    5
    Views
    1,760

    MouseListener

    import java.awt.Graphics;
    import java.awt.event.MouseListener;
    import java.awt.event.MouseMotionListener;

    import javax.swing.JFrame;



    public class MouseEvent implements...
  11. Replies
    4
    Views
    1,704

    Re: JFileChooser

    Thank u very much....It has worked.
  12. Replies
    2
    Views
    1,790

    Re: advance Jframe operation

    Just write f.setVisible(false) and try adding this actionlistener to the frame itself.Try if u can do that.
  13. Replies
    4
    Views
    1,704

    Re: JFileChooser

    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JMenuItem cannot be cast to javax.swing.JFileChooser
    at Notepad$2.actionPerformed(Notepad.java:70)
    at...
  14. Replies
    4
    Views
    1,704

    JFileChooser

    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;

    import javax.swing.*;


    public class...
  15. Replies
    7
    Views
    1,673

    Re: JTextField

    what is the highlights tag?
  16. Replies
    7
    Views
    1,673

    Re: JTextField

    ok fine .i will send u the code tommorrow and then u can check and tell me whats wrong with it. Is that fine?
  17. Replies
    7
    Views
    1,673

    Re: JTextField

    See my logic is this....
    First i created a textfield and then i tried to pass the text string into an array using toChar().Then i wrote an if-else statement(that is,it should print a dialog box when...
  18. Replies
    7
    Views
    1,673

    JTextField

    Hello,
    Can anybody give me the code for this.........
    I want the compiler to read the text entered by the user in the textfield and i want the compiler to show a message in a dialogue box if the...
  19. Re: Java for loops to count vowels/consonants usinf the logic of the main

    Just try using && instead of || in the second for loop.I think that should solve a major part of the problem.
  20. Replies
    0
    Views
    971

    Introduction

    Hello,i am now learning java swing.I will complete it in a month.So,do you think i will be able to design a good software after learning swing.Or do i need something more than that?
Results 1 to 20 of 20