How to make a modular program in java

hello friends,
i want to know that how i can make my program in a modular way.
Thanks in advance
Rakesh

hello sir,
thanks to notice me.
modular program means, i have a large program which contains about 1500 lines. now i want to subdivide this program in multiple files and after call all files in a single main file . and want to run overall program from a single main file.
regards,
Rakesh

Similar Messages

  • How can I build Instalation Program for java applet?

    I want to build on line internet game based on java applet.
    Uset must instull the game to his computer.And this program mast Connect to the server when user enter
    to this application.Not from explorer,but from my application,like when i enter to ICQ.
    My questions:
    How can i build instalation program in java?
    How can i connect to the server when user enter into my game not from explorer but from game?
    Thanks,Maya.

    Hi Maya
    First of all an Applet does not have to be "installed" as you would with a normal application. The browser handles the install and execution of the applet.
    Check out this URL for more about applets:
    http://web2.java.sun.com/docs/books/tutorial/applet/index.html
    On the subject client/server pairs - see:
    http://web2.java.sun.com/docs/books/tutorial/networking/sockets/index.html
    If you decide to make the game an application instead check out Sun's WebStart - under the products section.
    That's about all the help I can give you.
    Programming a game is a complicated subject - I am doing one too:
    http://hjem.get2net.dk/mhjembaek/armageddon/
    Kind reg,
    Hjembaek

  • How to create a  schedule program in java

    Hello Friends ,
    Can any one provide me with an example how to create a schedule program using java.util.timer etc . I am in need of a program which should run as a schedule job that searches for a file in a directory and read the latest files from that directory in every minute of time as a schedule job .
    Thanks
    mahesh

    I don't feel like writing my own example, but google will be happy to provide you with an example.

  • How to Call abap functn/program from java layer

    Hi all,
        I have to develop a program which has to call abap function/program from java side or how to call a abap program through java ..
    pls send me related links or explanations.. dont send unrelated answers..
    Regards,
    Arivarasu S

    Hi,
    You mean accessing ABAP functions from J2EE perspective, then I think we can do this by using SAP Java Resource Adapter and also through webservices.
    SAP Java Resource Adapter (SAP JRA) can be used as an add-on for the SAP JCo SAP JRA enables the implementation of standard interfaces from diverse J2EE servers to the SAP JCo in the SAP Web AS. The SAP JRA thus simplifies
    communication with ABAP within heterogeneous J2EE landscapes.
    Go through the following links which has Good documentation on how to achieve this
    Accessing BAPIs Using the SAP Java Resource Adapter
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ad09cd07-0a01-0010-93a9-933e247d3ba4]
    Connectivity and Interoperability
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/326d82e5-0601-0010-fca4-9caf27b89c26]
    Finally with WebServices. Accessing SAP Business Functions (ABAP) via Web Services
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06adbf03-0a01-0010-f386-d8e45561a3c4]
    Regards
    Raghu

  • How to make add the program system.out messages to a applet text field?

    How to make add the program system.out messages to a applet text field?
    System.out.println("I wanna displany this message on a applet text field, thanks");

    You may wish to change the output destination to a JTextArea. Please have a look at this link that likely shows what you want:
    [http://forums.sun.com/thread.jspa?forumID=54&threadID=640376|http://forums.sun.com/thread.jspa?forumID=54&threadID=640376]
    If you need other examples, search the forum. I found the search terms -- redirect system out textarea -- very helpful.
    Good luck

  • How Hard is it to program in Java.Swing

    Hi
    I wanted to program using java.swing component but i don't have any idea where i should start.
    I have been programming in java using java.Awt
    and i can do simple array programing.
    So how hard is it, and Where should i start learning java.swing. Ps I don't know anything about Swing, I don't even know what it is.
    Thanks you

    Hi
    As the previous guy said it is quite easy, and that link should teach you the basics. What I want to remind you of is that Swing uses up more memory when run. But it also have a few nicer extra goodies that make coding a little bit easier. Have fun with it.
    Here are a few more sites
    <http://manning.spindoczine.com/sbe/>
    <http://java.sun.com/docs/books/tutorial/uiswing/>
    Ciao

  • How To Make A File Splitter In Java

    Hey everyone...is it possible to make a file splitter program in java swing?what API do you think should be used in creating that application and how does it work? Assume that the application will be ran on windows desktop. Thanks to all...

    * FileSplitter.java
    import java.util.*;
    public class FileSplitter {
        ArrayList list = new ArrayList();{
            list.add("test 01");
            list.add("test 02");
            list.add("test 03");
            list.add("test 04");
            list.add("test 05");
            list.add("test 06");
            list.add("test 07");
            list.add("test 08");
            list.add("test 09");
            list.add("test 10");
            list.add("test 11");
            list.add("test 12");
            list.add("test 13");
            list.add("test 14");
            list.add("test 15");
            list.add("test 16");
            list.add("test 17");
            list.add("test 18");
            list.add("test 19");
            list.add("test 20");
            list.add("test 21");
            list.add("test 22");
            list.add("test 23");
            list.add("test 24");
            list.add("test 25");
            list.add("test 26");
            list.add("test 27");
            list.add("test 28");
            list.add("test 29");
            list.add("test 30");
        public FileSplitter() {
            testAlgorithm();
        private void testAlgorithm(){
            final int randNo = list.size()/2;//=number of input records / 2
            Random r = new Random();         //creates a new random number generator
            List newlist = new ArrayList();  //constructs a new empty list
            while(list.size()> randNo) {//returns true if the number of elements in the list is greater than randNo
                //(half of the input records are splitted)
                int index = r.nextInt(list.size());//returns a random between 0 (inclusive)
                //and the number of elements in the list (exclusive)
                newlist.add(list.get(index));//returns the element at the specified position in the list
                //and appends it to the end of newlist
                list.remove(index);//removes the element at the specified position in the list
                //and shifts any subsequent elements to the left
            System.out.println("newlist: "+newlist);//one part of the file
            System.out.println("list: "+list);//the other part of throws file
        public static void main(String[] args) {
            new FileSplitter();
    }

  • How to make a oval shape in java

    how to make an oval shape in java

    here's a simple example:
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.Color;
    /* <applet code="OvalTest" width=83 height=43></applet> */
    public class OvalTest extends Applet {
         public void init() {
              setBackground(Color.white);
         public void paint(Graphics g) {
              g.setColor(Color.blue);
              g.fillOval(1,1,80,40);
    }

  • How to make a simple program in numbers that i can use on my iphone

    how can i make a touchable program in numbers that i can trasfer to my iphone and use out in the field of work? i am pretty good at excel sheets,but am still new with my macbook.

    Excel can't make an iPhone application, it can only make a spreadsheet. You would need an iPhone app capable of reading a spreadsheet produced by Excel.

  • How to make an ABAP program run for a specified number of times ?

    assalamoalikum all!!!
    Can some 1 plz tell me that How can I make my ABAP program run ONLY for 2 times (after it went in production etc)
    AND when the program runs for 2 times It then gets hanged/Locked foreever.
    Suppose my program is:
    REPORT twice002.
    write ' I will run only twice bye bye'.

    Well, I guess the only full proof way is to create a custom "Z" table which will hold the counter, in your program you would update this table every time the program runs. In this same program before updating the counter, you would retrieve the counter and check if it is = 2, if so, then write a message and RETURN.
    Regards,
    Rich Heilman

  • How to creat a Dialer Program in Java

    Help me in creating a Dialer program which dials to a specifie ISP.It should work like the Dialer provided in windows.Help!! Can we code such a program in JAVA.If yes, HOW!!!!
    Abhishek([email protected])

    Get the Java Communications package - javax.comm (comm.jar)
    This will give you access to Windows/Solaris serial (and parallel) ports from Java.
    You then need some simple modem handling to perform the dial and initial handshake.
    Steve

  • How can I open a program using Java and then perform certain tasks with it?

    For example, and this is just an example, I want to write a Java program that opens MS Paint and then manipulates that program. This can be useful to automate certain tasks.
    My question is whether this can be done writing Java code and if so how? If not possible, would I need to use a scripting language instead?

    write a Java program that opens MS Paint and then
    manipulates that program. This can be useful to
    automate certain tasks."manipulates" is a too wide term. Let me narrow down:
    1. If you want to open (run) the program and then shut (kill) it down it is possible and fairly trivial to do in java. Look up Runtime and Process classes in java.lang package
    2. If you want to open the program and edit some image/document in the opened program. It is very difficult in java. May be possible... using some Java/COM bridge, assuming your native program is COM/Active-x compliant. Note: these things go beyond the boundary of JVM and needs to interact with host OS and involves shared memory, ipc and all "low level" stuffs.
    If you want to be able to play around with these COM/Activex apps- choose .NET instead :-)
    3) You can open the program from java and pass it some command line arg as in (1) above and then the program will load that document/image at startup automatically. You may then edit the doc/image thru that program itself. However, Java is not doing anything for you here, other than just starting off your native mspaint.exe ot notepad.exe.
    -BJ
    Message was edited by:
    Bimalesh

  • How to make a .exe from a java .class

    Hi All,
    I want to write a scheduler program in Java and that class file I want to install as a service in windows scheduler. So for that purposr I need an executale right?
    How can I convert a java class to a .exe program.
    Thanks and Regards
    KK

    No need to create exe file. U can covert into .bat file. With help of windows scheduler u can run the file as per ur required.

  • How to make a net browser using java

    We want to make an MultiLingual Explorer in JAVA .So please help me in the case thatfirst i want to do the coding of the basic interface as the menu option like open,save,save As etc.So how can i start it in java.Is their any builtin support or what is the best possible ways.I sahll appreciate the cooperation....
    Kindly help me out....
    (As i am a student and new in java so plz guide me thoroughly)
    Thanx

    There have been java browsers that have been developed + this is well-documented (at least in one or two texts i've read, i assume on-line too), but they're quite complex + i doubt if someone new to java would be able to customise it without a brain haemorrhage. Tough call!

  • How to make in a program periodical​ly switched relay.

    I have a FP-1000(rs 232 controlled) with FP-DO-400 module.
    I need to switch it on(off) periodically. Something like switching it on every 30 seconds for 1 second.
    I just do not know how to make using LabView 7.0. I can control it switching manually but I'd like to make it automatically. Can someone give a couple of hints how to do it?
    Thanks.

    Hi,
    Thanks for posting your question on the NI forem.
    I have attached an example to make switching a simple boolean led on every 10 seconds for 1 "Minute"
    Essentially you would need a while loop, ever 10 sec the virtual led lights up in front panel the select vi resets the shift register every 10 sec and the loop exist after 60 sec (minute)
    Hope this helps!
    Thanks,
    Kurt App.Eng.
    Attachments:
    226838.vi ‏19 KB

Maybe you are looking for

  • How do I move audio files from song list?

    I have some audio MP3 files in iTunes, but they show up under the Songs List. Can I move them so they don't show up in the Music songs list, e.g. move them to podcasts?

  • OSB 11g: Can I create an Alert Destination to call another webservice?

    Hi All, We would like to send Alert message via SMS to speified person. As we have already a web service to send SMS, can we just create an Alert Destination to call this web service to do that? Thanks for your help! Edited by: FrankieHuang on May 2,

  • Change multiple folder icons

    Is there an apple script to change all my folder icons at once? I like the folder icons available for download from Apple's website, but don't want to go through the process of pasting the new icons in for every single folder. Thanks

  • I subscribe to CC - Dreamweaver is 12.0 - build 5861 - Help- updates show I'm current

    I have CS6, then subscribed to CC.  All applications show up to date - but Dreamwesver is clearly not.  Any suggestions? I really don't want to uninstall - I have a lot of addins and customizing, and it will take hours to reinstall, etc. Rick Drew

  • Problema al enviar dinero por encima de los 100

    Estoy tratando de hacer un pago de un monto de  480. El problema es que cuando intento darle a continuar me presenta este error, "Lo sentimos, pero no podemos enviar su pago en este momento"  luego de comunicarme con ellos y con el banco termine poni