Search:

Type: Posts; User: Sunil Raghuvanshi

Search: Search took 0.10 seconds.

  1. Replies
    2
    Views
    1,079

    Re: Hello Everyone

    Most Welcome
  2. Re: Using navigation menus to display dynamic content.

    Hi I am not so sure but as per your problem you can solve it as follows

    Look at your Main.jsp page It should contains Different HTML or JSP Tags

    What you have to do is simply devide your JSP...
  3. Replies
    1
    Views
    2,251

    Re: Custom GUI in j2me

    Hi,
    If you realy want to make your own input box then it is very simple, you just need to follow the concepts of j2me Canvas.

    1. Create a InputBox class.
    2. Draw a rectangle onto it...
  4. Re: Problems in connecting to a SQL Server 2008 database "Student"

    In the URL you are not providing the port number for MySQL Database server i.e 3306 is default, make sure your URL is correct
  5. Re: Cannot Open Socket on Specific Address/Port

    Hi,
    Contact me at sunil1raghu@gmail.com I will provide you a socket connection ebook for java. I hope that will clear your all socket related concepts
  6. Re: should i pass arrays or bytebuffers?

    Hi,
    If you will try to passing array or buffer both means passing a object to a function and both will take same time. but if you will convert an array to buffer and send it and again get the...
  7. make USB Connection with a finger print device

    Hi to all
    I have to use a Sagem Smart morpho finger print device to take finger print in my project, I have installed its driver too on my system. Now to make a USB connection with the...
  8. Replies
    1
    Views
    1,596

    Re: Prince

    Hi dear I have worked on a Network Spy Project using C# .NET and I used RMI as follows
    1. Create an Class RemoteObject Class which contains a shutdown() method
    2. Now create an RMI server...
  9. Replies
    2
    Views
    1,699

    Re: Help to translate from C to java

    Hi dear, this could approx be like this-



    public class tPacket
    {
    public short size;
    public short opcode;
    public byte securityCount;
    public byte securityCRC;
  10. Replies
    1
    Views
    7,386

    Re: ASCII Triangle

    Hi dear I have modified your code try this. It will work now



    public class Main {
    public static void main(String[] args) {
    Main obj=new Main();
    obj.printTriangle(5);
    ...
  11. Replies
    1
    Views
    2,787

    Re: TreeNode vs. Node

    Hi Dear,
    There is no difference between tree node and node. if you are going for a double ended link list then you will need a node which is same as like a tree node.
    The main...
  12. Replies
    1
    Views
    1,830

    Re: Java sockets help

    Hi Dear, Try this
    Bind your server on a particular MainPort say 5000,
    now the client will request on this port and in the response client will get a new port say 5001-Here you will have to do two...
  13. Replies
    1
    Views
    2,049

    Re: Need help for my java game

    hi dear, Please follo this link to know how reading and writing text file
    Java Practices -> Reading and writing text files

    adding help menu is same as you have added file menu


    Menu m2=new...
  14. Replies
    1
    Views
    4,417

    Re: Simple game in Java

    Use the following


    String inputValue = JOptionPane.showInputDialog("Please input a value");

    and pasrse the input if you want any int or any other type

    you can also use System.in.read() as...
  15. Replies
    1
    Views
    9,935

    Re: Implementing Semaphores

    Many processors have an atomic test-and-set machine language instruction. Those that do not can still implement an atomic test-and-set using an atomic swap (as shown below) or some other atomic...
  16. Re: problem in getting scrollbar in Jlist

    Hi dear, You will not get the scroll bars until you have enough data in the list, to scroll

    please sufficient code for solving this problem
  17. Replies
    1
    Views
    1,977

    Re: Urgent Doubts

    Hi Dear,
    I am not understanding your problem properly but if you want to count all method calls then try this



    public class CountCalls
    {
    public static int count=0;
    }
  18. Replies
    2
    Views
    2,113

    Am I right (urgent, please reply)

    Hi I have done some thing for the beginners in the programming field

    Please visit my site and suggest me whether I am right or wrong

    I also need your expert suggestions to do it better:-*
    ...
  19. Re: Help. Multi Threading with sockets in client/server environment

    Study this code and use it as the base for your server This code is working properly
    Contact me if you have any query at sunil1raghu@gmail.com



    import java.net.*;
    import java.io.*;
    /**
    *
    ...
  20. Re: Exception in thread "main" java.util.IllegalFormatWidthException: 13

    public static void main(String[] args) {
    try{
    int res1, res2;
    System.out.printf("i "+ " power(2,i) "+ "power(3,i) \n");
    System.out.printf("%-4s %-13s...
  21. Replies
    2
    Views
    1,610

    Re: problem in my code

    Hay look at this


    String add(mcmLength L2)
    {
    temp=(this.m+L2.m)*1000 + (this.cm+L2.cm)*10 + (this.mm +L2.mm);
    m=temp/1000; // The Problem is here, m is the variable of...
  22. Replies
    1
    Views
    4,540

    J2ME-Show RMS data in tabular form

    Hay,
    I am working on a j2me project. I am not able to find how can I display data, which is retrieved from the RMS, in tabular form

    :o
  23. Replies
    4
    Views
    3,604

    [SOLVED] Re: Questions About Threads

    if you r using sleep() means you have to stop the thread for a particular time period given in neno seconds and the thread automaticaly resumes after that time but wait() is used to stop a thread...
  24. Replies
    1
    Views
    2,355

    problem in j2me

    public Student[] getStudents()
    {
    Student[] student=null;
    try
    {
    int pin=0;String name=null;
    byte[] byteInputData = new byte[100];
    ...
Results 1 to 24 of 24