Help needed in swing!urgently!

Hi im new to java envirnoment.Im working on a project,i need to design a tutorial page.
How do i write a program for asking user to input values for a matrix form? how to i design the page for this?
How do i invoke a Japplet?Is it the same procedure as a awt applet?For awt applet,a html file is written inorder to invoke the program. so how about Japplets or more generally for swing components?
Is there any reference for new users in the designing of user interface components.I need to bulid a simple one,with buttons,scroll.
Anyone knows how to plot line graphs??

Have a loo at the Java Tutorial:
http://java.sun.com/docs/books/tutorial/
and the Book "Java Look and Feel Design Guidelines":
http://java.sun.com/products/jlf/ed2/book/index.html
-Puce

Similar Messages

  • Urgent help need on swing problem

    Dear friends,
    I met a problem and need urgent help from guru here, I am Swing newbie,
    I have following code and hope to draw lines between any two components at RUN-TIME, not at design time
    Please throw some skeleton code, Thanks so much!!
    code:
    package com.swing.test;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class LongguConnectLineCommponent
        public static void main(String[] args)
            JFrame f = new JFrame("Connecting Lines");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new ConnectionPanel());
            f.setSize(400,300);
            f.setLocation(200,200);
            f.setVisible(true);
    class ConnectionPanel extends JPanel
        JLabel label1, label2, label3, label4;
        JLabel[] labels;
        JLabel selectedLabel;
        int cx, cy;
        public ConnectionPanel()
            setLayout(null);
            addLabels();
            label1.setBounds( 25,  50, 125, 25);
            label2.setBounds(225,  50, 125, 25);
            label3.setBounds( 25, 175, 125, 25);
            label4.setBounds(225, 175, 125, 25);
            determineCenterOfComponents();
            ComponentMover mover = new ComponentMover();
            addMouseListener(mover);
            addMouseMotionListener(mover);
        public void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            Point[] p;
            for(int i = 0; i < labels.length; i++)
                for(int j = i + 1; j < labels.length; j++)
                    p = getEndPoints(labels, labels[j]);
    //g2.draw(new Line2D.Double(p[0], p[1]));
    private Point[] getEndPoints(Component c1, Component c2)
    Point
    p1 = new Point(),
    p2 = new Point();
    Rectangle
    r1 = c1.getBounds(),
    r2 = c2.getBounds();
    int direction = r1.outcode(r2.x, r2.y);
    switch(direction) // r2 located < direction > of r1
    case (Rectangle.OUT_LEFT): // West
    p1.x = r1.x;
    p1.y = r1.y;
    p2.x = r2.x + r2.width;
    p2.y = r2.y;
    if(r1.y > cy)
    p1.y = r1.y + r1.height;
    p2.y = r2.y + r2.height;
    break;
    case (Rectangle.OUT_TOP): // North
    p1.x = r1.x;
    p1.y = r1.y;
    p2.x = r2.x;
    p2.y = r2.y + r2.height;
    if(r1.x > cx && r2.x > cx)
    p1.x = r1.x + r1.width;
    p2.x = r2.x + r2.width;
    break;
    case (Rectangle.OUT_LEFT + Rectangle.OUT_TOP): // NW
    p1.x = r1.x;
    p1.y = r1.y;
    p2.x = r2.x + r2.width;
    p2.y = r2.y;
    if(r1.y > r2.y + r2.height)
    p2.y = r2.y + r2.height;
    break;
    case (Rectangle.OUT_RIGHT): // East
    p1.x = r1.x + r1.width;
    p1.y = r1.y;
    p2.x = r2.x;
    p2.y = r2.y;
    if(r1.y > cy)
    p1.y = r1.y + r1.height;
    p2.y = r2.y + r2.height;
    break;
    case (Rectangle.OUT_TOP + Rectangle.OUT_RIGHT): // NE
    p1.x = r1.x + r1.width;
    p1.y = r1.y;
    p2.x = r2.x;
    p2.y = r2.y;
    if(r1.y > cy)
    p1.y = r1.y + r1.height;
    p2.y = r2.y + r2.height;
    if(r1.y > r2.y + r2.height)
    p1.y = r1.y;
    else
    if(r1.y > r2.y + r2.height)
    p2.y = r2.y + r2.height;
    break;
    case (Rectangle.OUT_BOTTOM): // South
    p1.x = r1.x;
    p1.y = r1.y + r1.height;
    p2.x = r2.x;
    p2.y = r2.y;
    if(r1.x > cx && r2.x > cx)
    p1.x = r1.x + r1.width;
    p2.x = r2.x + r2.width;
    break;
    case (Rectangle.OUT_RIGHT + Rectangle.OUT_BOTTOM): // SE
    p1.x = r1.x + r1.width;
    p1.y = r1.y + r1.height;
    p2.x = r2.x;
    p2.y = r2.y;
    break;
    case (Rectangle.OUT_BOTTOM + Rectangle.OUT_LEFT): // SW
    p1.x = r1.x;
    p1.y = r1.y + r1.height;
    p2.x = r2.x;
    p2.y = r2.y;
    if(r1.x > r2.x + r2.width)
    p2.x = r2.x + r2.width;
    if(r1.x > cx && r2.x > cx)
    p1.x = r1.x + r1.width;
    p2.x = r2.x + r2.width;
    return new Point[] {p1, p2};
    private void determineCenterOfComponents()
    int
    xMin = Integer.MAX_VALUE,
    yMin = Integer.MAX_VALUE,
    xMax = 0,
    yMax = 0;
    for(int i = 0; i < labels.length; i++)
    Rectangle r = labels[i].getBounds();
    if(r.x < xMin)
    xMin = r.x;
    if(r.y < yMin)
    yMin = r.y;
    if(r.x + r.width > xMax)
    xMax = r.x + r.width;
    if(r.y + r.height > yMax)
    yMax = r.y + r.height;
    cx = xMin + (xMax - xMin)/2;
    cy = yMin + (yMax - yMin)/2;
    private class ComponentMover extends MouseInputAdapter
    Point offsetP = new Point();
    boolean dragging;
    public void mousePressed(MouseEvent e)
    Point p = e.getPoint();
    for(int i = 0; i < labels.length; i++)
    Rectangle r = labels[i].getBounds();
    if(r.contains(p))
    selectedLabel = labels[i];
    offsetP.x = p.x - r.x;
    offsetP.y = p.y - r.y;
    dragging = true;
    break;
    public void mouseReleased(MouseEvent e)
    dragging = false;
    public void mouseDragged(MouseEvent e)
    if(dragging)
    Rectangle r = selectedLabel.getBounds();
    r.x = e.getX() - offsetP.x;
    r.y = e.getY() - offsetP.y;
    selectedLabel.setBounds(r.x, r.y, r.width, r.height);
    determineCenterOfComponents();
    repaint();
    private void addLabels()
    label1 = new JLabel("Label 1");
    label2 = new JLabel("Label 2");
    label3 = new JLabel("Label 3");
    label4 = new JLabel("Label 4");
    labels = new JLabel[] {
    label1, label2, label3, label4
    for(int i = 0; i < labels.length; i++)
    labels[i].setHorizontalAlignment(SwingConstants.CENTER);
    labels[i].setBorder(BorderFactory.createEtchedBorder());
    add(labels[i]);

    If you need some help, be respectful of the forum rules and people will help. By using "urgent" in the title and bumping your message every 2 hours you're just asking to be ignored (which is what you ended up with).

  • Help need to script(urgent)

    hai everybody...
    i ahve written a javascript for popup a new
    window...this is my script
    script
    function open()
    if(portal40.wwctx_api.get_user=='JAYANTHAN')
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQUIRY_REP.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_row s&p_arg_values=25','new_page','width=1500,height=550,scrollbars=yes');
    else
    window.open('http://suntechchn:7777/pls/portal40/ATCMIS.ENQ_REPORT.show?p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=25&p_arg_names=_portal_max_rows &p_arg_values=25','new_page','width=1000,height=950,scrollbars=yes');
    open();
    but it doesn't open the new window...
    for this i have created two reports,the above links are the report links...if it satisfy the condition then the first link lead to the
    first report if not then second report
    please help need ....
    thansk in advance
    leena
    null

    This example will read and put the Authors name to the ESTK console and write the new details back to the document.
    #target bridge
    loadXMPLibrary();
    var thumb = app.document.selections[0];
    if(thumb.hasMetadata){
            var selectedFile = thumb.spec;
      var myXmpFile = new XMPFile( selectedFile.fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE);
      var myXmp = myXmpFile.getXMP();   
      var arrItem='';
      var items = myXmp.countArrayItems(XMPConst.NS_DC, "creator");
       for(var i = 1;i <= items;i++){
    arrItem += myXmp.getArrayItem(XMPConst.NS_DC,  "creator", i);          
        $.writeln(arrItem);
    var Author = "This is my new Author";
    myXmp.deleteProperty(XMPConst.NS_DC, "creator");
    myXmp.appendArrayItem(XMPConst.NS_DC, "creator", Author, 0,XMPConst.ARRAY_IS_ORDERED);
    if (myXmpFile.canPutXMP(myXmp)) {
        myXmpFile.putXMP(myXmp);
             myXmpFile.closeFile(XMPConst.CLOSE_UPDATE_SAFELY);
    unloadXMPLibrary();
    function loadXMPLib(){
    if (ExternalObject.AdobeXMPScript == undefined) {
        ExternalObject.AdobeXMPScript = new ExternalObject("lib:AdobeXMPScript");
    function unloadXMPLib(){
       if( ExternalObject.AdobeXMPScript ) {
          try{
             ExternalObject.AdobeXMPScript.unload();
             ExternalObject.AdobeXMPScript = undefined;
          }catch (e){ }

  • Help needed in swing

    HI friends,
    I have a GUI with 4 paem nels .On one panel ..i have a menu item
    called "Create" when i click it an oval will be drawn on a canvas.
    And i have the Buttons on the other panel .
    I need to drag these buttons and drop them into the ovals.
    Can any one help me wih the drag and drop functionality using swing.
    Thanks in avance

    Did you know there is a Swing forum where you can post Swing questions?
    http://forum.java.sun.com/forum.jspa?forumID=57
    If you do repost this there, please put a link in this thread to direct interested people to the new post.
    I don't know anything about how to do drag-and-drop in Swing, so I can't help you directly with that. Good luck!

  • Help Needed on report Urgent

    Hi Experts
    my requirement is to combine the standard selection screens of T-CODE IW39 & IW59 as a one selection screen.
    i tried  a lot but i'm unable to do it.
    in these selection screens some blocks are called by dynamically through ldb. if i copied standard prog of T-CODE IW39 as zprogram it dispalying the whole selection screen but at that time i'm unable to merge IW59 selection screen code with this caode.
    can any help me urgent .plz

    hi
    chk this out
    SELECTION-SCREEN: Special Variant for Logical Databases
    You may only use these variants in the INCLUDE program DBldbSEL of logical database ldb.
    Variants:
    1.SELECTION-SCREEN BEGIN OF VERSION vers TEXT-xxx.
    2. SELECTION-SCREEN END OF VERSION vers.
    3. SELECTION-SCREEN EXCLUDE ... .
    4.SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab.
    5.SELECTION-SCREEN FIELD SELECTION FOR TABLE dbtab.
    6.SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE node.
    7.SELECTION-SCREEN FIELD SELECTION FOR NODE node.
    Variant 1
    SELECTION-SCREEN BEGIN OF VERSION vers TEXT-xxx.
    Variant 2
    SELECTION-SCREEN END OF VERSION vers.
    Variant 3
    SELECTION-SCREEN EXCLUDE ... .
    Effect
    Defines a selection screen version (three character name vers). Between BEGIN OF VERSION and END OF VERSION , you can exclude selection screen objects from version vers using SELECTION-SCREEN EXCLUDE. This allows you to reduce the database-specific part of the standard selection screen to those objects relevant to the report in question without having to sacrifice important selection criteria in other reports.
    You activate a selection screen version for a report by entering it in the report attributes. If the database access program SAPDBldb itself has a selection screen version in its attributes, this applies to all reports that use the logical database and for which you have not declared a particular selection screen variant.
    The function of the text symbol TEXT-xxx is to enable users to choose a selection screen variant using F4 help on the program attributes screen.
    Extras:
    (for SELECTION-SCREEN EXCLUDE) 1. ... PARAMETERS par 2. ... SELECT-OPTIONS sel
    3. ... RADIOBUTTON GROUPS radi
    4. ... BLOCKS block
    5. ... IDS id
    Effect
    Excludes selection screen objects between SELECTION-SCREEN BEGIN and END OF VERSION. You can also exclude individual parameters, select-options, and radiobutton groups, within SELECTION-SCREEN BEGIN/END OF BLOCK blocks, and other SELECTION-SCREEN objects such as comments and underlines using the ID id addition.
    Notes
    You can only exclude objects of the DS:ABEN.SELECTION_SCREEN>standard selection screen 1000, not any that belong to a screen defined using SELECTION-SCREEN BEGIN OF SCREEN ... AS SUBSCREEN. If the standard selection screen includes objects from other screens ( SELECTION-SCREEN INCLUDE ... ID ...), you can use SELECTOIN-SCREEN EXCLUDE IDS ... to exclude them from the screen.
    The database program SAPDBldb can use the function module RS_SELSCREEN_VERSION to use the active version of the selection screen for the current report.
    Example
    TABLES SPFLI.
    NODES CHARLY.                  " with structure SFLIGHT
    PARAMETERS PAR_1 LIKE SPFLI-CARRID FOR TABLE SPFLI.
    SELECT-OPTIONS SEL_1 FOR SPFLI-CONNID.
    SELECT-OPTIONS SEL_2 FOR CHARLY-FLDATE.
    SELECT-OPTIONS SEL_3 FOR SPFLI-CITYFROM.
    SELECTION-SCREEN COMMENT /10(20) TEXT-100 FOR TABLE SFLIGHT ID 001.
    SELECTION-SCREEN COMMENT /8(30) TEXT-200 FOR NODE CHARLY ID 002.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN NO INTERVALS.
      SELECTION-SCREEN BEGIN OF BLOCK B100 WITH FRAME TITLE TEXT_001.
        PARAMETERS P100_1 TYPE SFLIGHT-SEATSMAX FOR NODE CHARLY.
      SELECTION-SCREEN END OF BLOCK B100.
    SELECTION-SCREEN END OF SCREEN 100.
    PARAMETERS PAR_2 LIKE SY-SUBRC FOR TABLE SFLIGHT.
    PARAMETERS PAR_3 LIKE CHARLY-PLANETYPE FOR NODE CHARLY.
    SELECTION-SCREEN BEGIN OF VERSION ABC TEXT-008.
      SELECTION-SCREEN EXCLUDE PARAMETERS: PAR_1, PAR_3.
      SELECTION-SCREEN EXCLUDE SELECT-OPTIONS SEL_2.
      SELECTION-SCREEN EXCLUDE IDS 001.
    SELECTION-SCREEN END   OF VERSION ABC.
    SELECTION-SCREEN BEGIN OF VERSION XYZ TEXT-XYZ.
      SELECTION-SCREEN EXCLUDE IDS 100.
    SELECTION-SCREEN END OF VERSION XYZ.
    If the report attributes (or the attributes of database program SAPDBldb) contain the selection screen version ABC, the parameters PAR_1 and PAR_3, the select-option SEL_2 and the comment with text number 100 (ID 001) do not appear on the selection screen. Text symbol 008 of SAPDBldb is displayed if you choose F4 help for the 'Selection screen version' field.
    If the program attributes (or the attributes of the database program SAPDBldb) contain the selection screen version XYZ, the block B100 containing the parameter P100_1 does not appear on the standard selection screen 1000, but it does appear on the subscreen 100..
    Variant 4
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR TABLE dbtab.
    Variant 6
    SELECTION-SCREEN DYNAMIC SELECTIONS FOR NODE
    node.
    Extras:
    ... ID id
    Effect
    This statement returns the tables or nodes of the logical database for which additional selections are supported. If one of these tables or nodes is active in the report (declared using TABLES or NODES, or in the path from the database hierarchy root to a table declared using TABLES or NODES), the 'Free selections' pushbutton appears on the selection screen. If the user chooses this function, the system branches to a dialog in which the user can enter selections for the relevant fields of the appropriate tables. There are two ways to set the fields for which users can make free selections:
    Using a selection view created for that purpose:
    You maintain selection views within logical database maintenance. They consist of a set of fields from tables in the logical database that are divided into groups. You can also preselect fields here. Customers may overlay the selection view (that is, the system searches first for a customer-specific selection view. Only if one does not exist will the system display the SAP selection view).
    If you have already made a preselection in the selection view, the user sees the selection screen for the preselected fields on which to enter his or her selections. If no fields have been preselected, the user must first select some.
    Using all fields of all tables
    In this case, the user must choose the table and then the fields for which he or she wants to define additional selections. Having selected these, he or she then passes to the selection screen for entering the free selections.
    The database access program SAPDBldb takes on the form of a complex data object DYN_SEL consisting of WHERE clauses generated by the user input for dynamic database access.
    Note
    You cannot use free selections for nodes with type C (complex data objects).
    Note
    The precise definition of the object DYN_SEL is stored in TYPE-POOL RSDS and reads:
    TYPES: BEGIN OF RSDS_WHERE,
             TABLENAME LIKE RSDSTABS-PRIM_TAB,
             WHERE_TAB LIKE RSDSWHERE OCCURS 5,
           END OF RSDS_WHERE.
    TYPES: BEGIN OF RSDS_TYPE,
             CLAUSES TYPE RSDS_WHERE OCCURS 5,
             TEXPR   TYPE RSDS_TEXPR,
             TRANGE  TYPE RSDS_TRANGE,
           END   OF RSDS_TYPE.
    DATA DYN_SEL TYPE RSDS_TYPE.
    The object DYN_SEL contains (amongst other elements) a component (CLAUSES), which is an internal table. Each line in the internal table contains a table name (TABLENAME) and a further internal table (WHERE_TAB), that contains the WHERE clauses for table (TABLENAME).
    The structure of the two other components is contained in type pool RSDS.
    TEXPR contains the selections in a storeable format that you can use for the 'freely callable' function modules used to enter free selections ( FREE_SELECTIONS_INIT, FREE_SELECTIONS_DIALOG). TRANGE contains the selections in the form of RANGES tables , that you can use with the IN operator in the SELECT, CHECK and IF statements.
    Note
    Neither the TYPE-POOL RSDS nor the declaration of DYN_SEL need to be written into the database program: both are automatically included by the system.
    In the database program SAPDBldb, an access to a table XXXX might look like this:
    FORM PUT_XXXX.
      DATA L_DS_CLAUSES TYPE RSDS_WHERE.
      MOVE 'XXXX' TO L_DS_CLAUSES-TABLENAME.
      READ TABLE DYN_SEL-CLAUSES WITH KEY L_DS_CLAUSES-TABLENAME
                                 INTO L_DS_CLAUSES.
      SELECT * FROM XXXX
               WHERE field1 IN ...
               AND   field2 ....
               AND (L_DS_CLAUSES-WHERE_TAB).
          PUT XXXX.
      ENDSELECT.
    ENDFORM.
    Note
    If the table L_DS_CLAUSES-WHERE_TAB is empty (in other words, there are no free selections for table XXXX), the system ignores the addition ... AND (L_DS_CLAUSES-WHERE_TAB) in the SELECT statement.
    Variant 5
    SELECTION-SCREEN FIELD SELECTION FOR TABLE dbtab.
    Variant 7
    SELECTION-SCREEN FIELD SELECTION FOR NODE node.
    Extras:
    ... ID id
    Effect
    This statement returns the tables and nodes of the logical database for which field selections are supported.
    If required by the report, not all fields of these tables and nodes are filled from the database, but only those that the report needs. You declare these fields in the report using GET dbtab FIELDS f1 ... fn or GET dbtab LATE FIELDS f1 ... fn (the field list is then completed by the system, using the key fields of table dbtab).
    You can improve performance considerably by restricting the fields used to those that are really necessary.
    The database access program SAPDBldb receives the fields for the dynamic field selection in the form of an internal table SELECT_FIELDS.
    Note
    You cannot use this addition for nodes with type C (complex data objects).
    Note
    The exact definition of the object SELECT_FIELDS is stored in TYPE-POOL RSFS and reads:
    TYPES: BEGIN OF RSFS_TAB_FIELDS,
             TABLENAME LIKE RSDSTABS-PRIM_TAB,
             FIELDS LIKE RSFS_STRUC OCCURS 10,
           END OF RSFS_TAB_FIELDS.
    TYPES: RSFS_FIELDS TYPE RSFS_TAB_FIELDS OCCURS 10.
    DATA SELECT_FIELDS TYPE RSFS_FIELDS.
    SELECT_FIELDS is an internal table. Each line of the internal table contains a table name (TABLENAME) and a further internal table (FIELDS) containing the fields of table (TABLENAME).
    Note
    You do not need to declare the TYPE-POOL RSFS or SELECT_FIELDS in the database program, since both are included automatically by the system. Unlike the objects linked using the DYNAMIC SELECTIONS addition, SELECT_FIELDS is also available in the report.
    In the database program SAPDBldb, an access to table XXXX might look like this:
    FORM PUT_XXXX.
      DATA L_TAB_FIELDS TYPE RSFS_TAB_FIELDS.
      MOVE 'XXXX' TO L_TAB_FIELDS-TABLENAME.
      READ TABLE SELECT_FIELDS WITH KEY L_TAB_FIELDS-TABLENAME
                               INTO L_TAB_FIELDS.
      SELECT (L_TAB_FIELDS-FIELDS)
                 INTO CORRESPONDING FIELDS OF XXXX
                 FROM XXXX
             WHERE field1 IN ...
             AND   field2 ....
          PUT XXXX.
      ENDSELECT.
    ENDFORM.
    Notes
    If table L_TAB_FIELDS is empty (in other words, the report for table XXXX does not require any field selection), SELECT (L_TAB_FIELDS) ... behaves like SELECT * ..., that is, all fields of table XXXX are filled.
    The internal table SELECT_FIELDS is filled when the INIT routine runs in the database program or when the INITIALIZATION runs in the report. The program can access it if the logical database requires extra fields.

  • Srw.run_report problem. Help needed...Urgent

    Hi,
    I am very new to Oracle Reports. I need some help in using the srw.run_report
    I am having two reports. Rep_A and Rep_B
    I will always invoke the Rep_A first...Rep_B should always be invoked in Rep_A
    In Rep_A, i need to check a parameter P_Param1 and based upon the value i need to proceed as follows
    If P_Param1 = 1 then
    --Rep_A should be generated and returned as stream(cache)
    --Rep_B shouldnt be invoked
    If P_Param1 = 2 then
    --Rep_B should be generated and returned as stream.
    --Rep_A should not be generated
    If P_Param1 = 3 then
    --Rep_A and Rep_B should be generated and returned as stream
    --(Rep_A followed by Rep_B)
    If P_Param1 = 4 then
    --Rep_A and Rep_B should be generated and saved as files in a specified location.(this location is in another machine)
    This is my requirement. I hope I am clear with my requirement.
    How can we achieve these.
    Are there any technical issues?
    Please guide me
    thanks...
    siva

    Hi all,
    just to keep this thread active.
    can anyone help me in using srw.run_report.
    its an urgent requirement.
    thanks...
    siva

  • Help needed with swings for socket Programming

    Im working on a Project for my MScIT on Distributed Computing...which involves socket programming(UDP)....im working on some algorithms like Token Ring, Message Passing interface, Byzantine, Clock Syncronisation...i hav almost finished working on these algorithms...but now i wanna give a good look to my programs..using swings but im very new to swings...so can anyone help me with some examples involving swings with socket programming...any reference...any help would be appreciated...please help im running out of time..
    thanking u in advance
    anDy

    hi im Anand(AnDY),
    i hav lost my AnDY account..plz reply to this topic keeping me in mind :p

  • Help Needed Regarding Messaging URGENT

    hello everyone, i am new to this discussion ...can any one help me? i want a nokia handset with the message memory of 20 thousand sms.... because i recieve lots of messages and i dont want to delete them.. kindly help me out...
    thanks
    regards
    UNIMAN

    Keeping so many messages is going to cause a phone to be very slow and potentially unstable whilst using the messaging app.
    The only nokia's that have a chance of doing it are recent smartphones like the N82, N95, N78, N79, N85, N96, E51, E63, E66, E71 & E90. You will need to set the phone to store the messages on a memory card, not the phone memory.
    The only limitation I can see is that you are limited to 999 for the number of sent messages that you can keep. Received is unlimited if you have a lot of free space from what i've seen.
    The most sensible option would be to transfer your messages to a PC for permanent storage & archiving.

  • Help Needed !! Urgent. Read .txt using j2me.

    Hi,
    I need to read this field;
    Server IP Address = 192.122.139.16*
    BT Addr & Port No. = 000B0D182EDA:1*
    Help IP Address = 192.168.0.100:3334*
    is there any easy coding which can help me to read all the fields above using j2me?
    I am using BufferedReader and i am having abit of a problem..

    here's my coding.
    import java.io.*;
    import javax.microedition.lcdui.CommandListener;
    import javax.microedition.midlet.MIDlet;
    public class Settings {
         public Settings()
              BufferedReader br = new BufferedReader(new FileReader("Settings.txt"));
              int a = 2000;
              String [] sets = new String [a];
              for (int i = 0; i < 2; i ++)
                        sets[i] = br.readLine();
                        System.out.println ("" +sets);
    the errors come from the BufferedReader. " BufferedReader cannot be resolved to a type".
    Do help me out with this.. thanks!
    Edited by: remi17 on Feb 18, 2008 8:02 PM

  • Small help needed in Swing

    I have written a small hellow world code in swing....
    *import javax.swing.JFrame;*
    *import javax.swing.JLabel;*
    *public class HelloWorldSwing {*
      *public static void main(String[] args) {*
        *JFrame frame = new JFrame("HelloWorldSwing");*
        *final JLabel label = new JLabel("Hello World");*
        *frame.getContentPane().add(label);*
        *frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);*
        *frame.pack();*
        *frame.setVisible(true);*
    I've compiled this in a remote server, with the help of this site....
    http://www.innovation.ch/java/java_compile.html
    I have only JRE1.6.0_03 installed in my machine.....
    when I am trying to execute the program by.....
    F:>java HelloWorldSwing
    it is saying....
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldSwing
    Then I tried to run it othe way by html file....
    *<html>*
    *<applet class="HelloWorldSwing.class" height=200 width=200>*
    *</html>*
    can any one suggest....what to do to get it running?

    um.... how about get the JDK?
    Also, please don't try to use a non-applet program as if it were an applet. It won't work.
    Also, please go through the Sun Java tutorials, especially the first ones about getting started.
    Edited by: Encephalopathic on Feb 26, 2008 9:56 PM

  • Help needed with swing

    hi,
    Hi, .
    I have created a Jmenu called " Menu System Test window " and it contains toplevel menu item "File" and File Menu contains subitems "Product Evaluation" and "Exit".
    When i click File->Product Evaluation it displays a new Frame named "ProductEvaluationMeasurementTool" with some check boxes ,radiobuttons, buttons . Everything is ok with my code.
    My question is now i want to convert my application into applet ( at present it is written using swing and AWT).
    Can anyone tell me is it possible to converty my code into applet so that i can place it in a web page
    i am sending my code..
    Thanks in advance
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Component;
    import java.awt.Checkbox;
    import javax.swing.*;
    import java.text.DecimalFormat;
    // Make a main window with a top-level menu: File
    public class MainWindow extends JFrame {
      public MainWindow() {
        super("Menu System Test Window");
        setSize(500, 500);
        // make a top level File menu
        FileMenu fileMenu = new FileMenu(this);
        // make a menu bar for this frame
        // and add top level menus File and Menu
        JMenuBar mb = new JMenuBar();
        mb.add(fileMenu);
        setJMenuBar(mb);
        addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent e) {
            exit();
      public void exit() {
        setVisible(false); // hide the Frame
        dispose(); // tell windowing system to free resources
        System.exit(0); // exit
      public static void main(String args[]) {
        MainWindow w = new MainWindow();
        w.setVisible(true);
    private static MainWindow w ;
    // Encapsulate the look and behavior of the File menu
    class FileMenu extends JMenu implements ActionListener {
        private MainWindow mw; // who owns us?
      private JMenuItem itmPE   = new JMenuItem("ProductEvaluation");
      private JMenuItem itmExit = new JMenuItem("Exit");
      public FileMenu(MainWindow main)
        super("File");
        this.mw = main;
        this.itmPE.addActionListener(this);
        this.itmExit.addActionListener(this);
        this.add(this.itmPE);
        this.add(this.itmExit);
      // respond to the Exit menu choice
      public void actionPerformed(ActionEvent e)
        if (e.getSource() == this.itmPE)
         Frame f1 = new Frame("ProductMeasurementEvaluationTool");
         f1.setSize(1290,1290);
         f1.setLayout(null);
         Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
         l1.setBounds(380, 50, 380, 20);
         f1.add(l1);
         Label l2 = new Label("Architecture Metrics");
         l2.setBounds(170, 100, 110, 20);
         f1.add(l2);
         Label l3 = new Label("RunTime Metrics");
         l3.setBounds(500, 100, 110, 20);
         f1.add(l3);
         Label l4 = new Label("Documentation Metrics");
         l4.setBounds(840, 100, 130, 20);
         f1.add(l4);
         JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
         rb1.setBounds(190, 140, 133, 20);
         f1.add(rb1);
         JRadioButton rb2 = new JRadioButton("Task Metrics",false);
         rb2.setBounds(540, 140, 95, 20);
         f1.add(rb2);
         JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
         rb3.setBounds(870, 140, 108, 20);
         f1.add(rb3);
         JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
         rb4.setBounds(190, 270, 142, 20);
         f1.add(rb4);
         JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
         rb6.setBounds(540, 270, 142, 20);
         f1.add(rb6);
         JRadioButton rb8 = new JRadioButton("Development Metrics",false);
         rb8.setBounds(870, 270, 141, 20);
         f1.add(rb8);
         Checkbox  c10 = new Checkbox("Size");
         c10.setBounds(220, 170, 49, 20);
         f1.add(c10);
         Checkbox c11 = new Checkbox("Structure");
         c11.setBounds(220, 190, 75, 20);
         f1.add(c11);
         Checkbox c12 = new Checkbox("Complexity");
         c12.setBounds(220, 210, 86, 20);
         f1.add(c12);
         Checkbox c13 = new Checkbox("Size");
         c13.setBounds(220, 300, 49, 20);
         f1.add(c13);
         Checkbox c14 = new Checkbox("Structure");
         c14.setBounds(220, 320, 75, 20);
         f1.add(c14);
         Checkbox c15 = new Checkbox("Complexity");
         c15.setBounds(220, 340, 86, 20);
         f1.add(c15);
         Checkbox c19 = new Checkbox("Size");
         c19.setBounds(580, 170, 49, 20);
         f1.add(c19);
         Checkbox c20 = new Checkbox("Structure");
         c20.setBounds(580, 190, 75, 20);
         f1.add(c20);
         Checkbox c21 = new Checkbox("Complexity");
         c21.setBounds(580, 210, 86, 20);
         f1.add(c21);
         Checkbox c22 = new Checkbox("Size");
         c22.setBounds(580, 300, 49, 20);
         f1.add(c22);
         Checkbox c23 = new Checkbox("Structure");
         c23.setBounds(580, 320, 75, 20);
         f1.add(c23);
         Checkbox c24 = new Checkbox("Complexity");
         c24.setBounds(580, 340, 86, 20);
         f1.add(c24);
         Checkbox c28 = new Checkbox("Size");
         c28.setBounds(920, 170, 49, 20);
         f1.add(c28);
         Checkbox c29 = new Checkbox("Structure");
         c29.setBounds(920, 190, 75, 20);
         f1.add(c29);
         Checkbox c30 = new Checkbox("Complexity");
         c30.setBounds(920, 210, 86, 20);
         f1.add(c30);
         Checkbox c31 = new Checkbox("Size");
         c31.setBounds(920, 300, 49, 20);
         f1.add(c31);
         Checkbox c32 = new Checkbox("Structure");
         c32.setBounds(920, 320, 75, 20);
         f1.add(c32);
         Checkbox c33 = new Checkbox("Complexity");
         c33.setBounds(920, 340, 86, 20);
         f1.add(c33);
         JButton b1  = new JButton("Button1");
         b1.setBounds(230, 600, 120, 24);
         f1.add(b1);
         JButton b2  = new JButton("Button2");
         b2.setBounds(430, 600, 120, 24);
         f1.add(b2);
         JButton b3  = new JButton("Button3");
         b3.setBounds(630, 600, 120, 24);
         f1.add(b3);
         JButton b4  = new JButton("Button4");
         b4.setBounds(840, 600, 120, 24);
         f1.add(b4);
               f1.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e)
              System.exit(0);
         f1.setVisible(true);
        else
       { mw.exit();}

    The other thinks you needed depends upon your application
    i changed ur code to an applet program(a 2 min. job)
    please try it:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.Component;
    import java.awt.Checkbox;
    import javax.swing.*;
    import java.text.DecimalFormat;
    //<APPLET CODE="MainWindow3.class" WIDTH=625 HEIGHT=500></APPLET>
    // Make a main window with a top-level menu: File
    public class MainWindow3 extends JApplet {
    public void init() {
    //setSize(500, 500);
    // make a top level File menu
    FileMenu fileMenu = new FileMenu(this);
    // make a menu bar for this frame
    // and add top level menus File and Menu
    JMenuBar mb = new JMenuBar();
    mb.add(fileMenu);
    setJMenuBar(mb);
    setVisible(true);
    /*addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    exit();
    public void exit() {
    setVisible(false); // hide the Frame
    //dispose(); // tell windowing system to free resources
    stop();
    setVisible(false);
    destroy();
    //System.exit(0); // exit
    /* public static void main(String args[]) {
    MainWindow3 w = new M();
    w.setVisible(true);
    private static MainWindow3 w ;
    // Encapsulate the look and behavior of the File menu
    class FileMenu extends JMenu implements ActionListener {
    private MainWindow3 mw; // who owns us?
    private JMenuItem itmPE = new JMenuItem("ProductEvaluation");
    private JMenuItem itmExit = new JMenuItem("Exit");
    public FileMenu(MainWindow3 main)
    super("File");
    this.mw = main;
    this.itmPE.addActionListener(this);
    this.itmExit.addActionListener(this);
    this.add(this.itmPE);
    this.add(this.itmExit);
    // respond to the Exit menu choice
    public void actionPerformed(ActionEvent e)
    if (e.getSource() == this.itmPE)
    JFrame f1 = new JFrame("ProductMeasurementEvaluationTool");
    f1.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    f1.setSize(1290,1290);
    f1.setLayout(null);
    Label l1 = new Label("Select the appropriate metrics for Measurement Process Evaluation");
    l1.setBounds(380, 50, 380, 20);
    f1.add(l1);
    Label l2 = new Label("Architecture Metrics");
    l2.setBounds(170, 100, 110, 20);
    f1.add(l2);
    Label l3 = new Label("RunTime Metrics");
    l3.setBounds(500, 100, 110, 20);
    f1.add(l3);
    Label l4 = new Label("Documentation Metrics");
    l4.setBounds(840, 100, 130, 20);
    f1.add(l4);
    JRadioButton rb1 = new JRadioButton("Componenent Metrics",false);
    rb1.setBounds(190, 140, 133, 20);
    f1.add(rb1);
    JRadioButton rb2 = new JRadioButton("Task Metrics",false);
    rb2.setBounds(540, 140, 95, 20);
    f1.add(rb2);
    JRadioButton rb3 = new JRadioButton("Manual Metrics",false);
    rb3.setBounds(870, 140, 108, 20);
    f1.add(rb3);
    JRadioButton rb4 = new JRadioButton("Configuration Metrics",false);
    rb4.setBounds(190, 270, 142, 20);
    f1.add(rb4);
    JRadioButton rb6 = new JRadioButton("DataHandling Metrics",false);
    rb6.setBounds(540, 270, 142, 20);
    f1.add(rb6);
    JRadioButton rb8 = new JRadioButton("Development Metrics",false);
    rb8.setBounds(870, 270, 141, 20);
    f1.add(rb8);
    Checkbox c10 = new Checkbox("Size");
    c10.setBounds(220, 170, 49, 20);
    f1.add(c10);
    Checkbox c11 = new Checkbox("Structure");
    c11.setBounds(220, 190, 75, 20);
    f1.add(c11);
    Checkbox c12 = new Checkbox("Complexity");
    c12.setBounds(220, 210, 86, 20);
    f1.add(c12);
    Checkbox c13 = new Checkbox("Size");
    c13.setBounds(220, 300, 49, 20);
    f1.add(c13);
    Checkbox c14 = new Checkbox("Structure");
    c14.setBounds(220, 320, 75, 20);
    f1.add(c14);
    Checkbox c15 = new Checkbox("Complexity");
    c15.setBounds(220, 340, 86, 20);
    f1.add(c15);
    Checkbox c19 = new Checkbox("Size");
    c19.setBounds(580, 170, 49, 20);
    f1.add(c19);
    Checkbox c20 = new Checkbox("Structure");
    c20.setBounds(580, 190, 75, 20);
    f1.add(c20);
    Checkbox c21 = new Checkbox("Complexity");
    c21.setBounds(580, 210, 86, 20);
    f1.add(c21);
    Checkbox c22 = new Checkbox("Size");
    c22.setBounds(580, 300, 49, 20);
    f1.add(c22);
    Checkbox c23 = new Checkbox("Structure");
    c23.setBounds(580, 320, 75, 20);
    f1.add(c23);
    Checkbox c24 = new Checkbox("Complexity");
    c24.setBounds(580, 340, 86, 20);
    f1.add(c24);
    Checkbox c28 = new Checkbox("Size");
    c28.setBounds(920, 170, 49, 20);
    f1.add(c28);
    Checkbox c29 = new Checkbox("Structure");
    c29.setBounds(920, 190, 75, 20);
    f1.add(c29);
    Checkbox c30 = new Checkbox("Complexity");
    c30.setBounds(920, 210, 86, 20);
    f1.add(c30);
    Checkbox c31 = new Checkbox("Size");
    c31.setBounds(920, 300, 49, 20);
    f1.add(c31);
    Checkbox c32 = new Checkbox("Structure");
    c32.setBounds(920, 320, 75, 20);
    f1.add(c32);
    Checkbox c33 = new Checkbox("Complexity");
    c33.setBounds(920, 340, 86, 20);
    f1.add(c33);
    JButton b1 = new JButton("Button1");
    b1.setBounds(230, 600, 120, 24);
    f1.add(b1);
    JButton b2 = new JButton("Button2");
    b2.setBounds(430, 600, 120, 24);
    f1.add(b2);
    JButton b3 = new JButton("Button3");
    b3.setBounds(630, 600, 120, 24);
    f1.add(b3);
    JButton b4 = new JButton("Button4");
    b4.setBounds(840, 600, 120, 24);
    f1.add(b4);
    f1.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e)
    { mw.destroy();
    //System.exit(1);
    f1.setVisible(true);
    else
    { mw.exit();}
    If this program is a demo one then, no problem if it is a live & more important one. It is not OK!. It need more professional............

  • HELP NEEDED: FIRST SWING AT ECOMMERCE

    Im doing a site for a catering company and I need to get my
    hands on some tools that would be useful for building the ecommerce
    part. I havnt really done that much with ecommerce and the company
    wants nothing to do with paypal. They want orders to be sent via
    email to both the company and the customer as well (basically as a
    confirmation) . Any help getting pointed in the right direction
    would be amazing!
    thanks

    I second the nomination for cartweaver
    In addition to ease of customization and good company
    support,
    there is a fairly active newgroup-based user community as
    well.
    "JetCityKid(WA)" <[email protected]> wrote
    in message
    news:fnmo5l$a81$[email protected]..
    > Im doing a site for a catering company and I need to get
    my hands on some
    > tools
    > that would be useful for building the ecommerce part. I
    havnt really done
    > that
    > much with ecommerce and the company wants nothing to do
    with paypal. They
    > want
    > orders to be sent via email to both the company and the
    customer as well
    > (basically as a confirmation) . Any help getting pointed
    in the right
    > direction
    > would be amazing!
    >
    > thanks
    >

  • Help needed regarding swing

    i have a frame which contains a number of internal frames these internal frames contains jtable .my probem is that i need to update the cell data of on jtable upon pop action and then display that data upon another internal frames jtable .

    my actual problem is that i have a frame which contains may internal frames these internal frames contains jtable.now what i wans to do is suppose i do popup ipon any internal frames jtables cell then a popup menu comes which has a textbox and a ok button when i click ok then that integer values goes into the databse and at the same time this particular value get dis[layed upon another internal frames jtable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Transfer Routine Help Needed!! Urgent!!

    Helllo Gurus,
                  I am running a report on Infoset and some of the fields has no data. when I report executed, the fields with no data shows "Not assigned" in the report. If I manually enter "Blank" space in the master data, it is displaying "Empty Space" in the report. But we are loading Master data everyday using process chains. How can I write in transfer rules that if one field is empty then it shud pass "Blank" for that field.
    How can achieve this????
    Any Help is appreciated with points.
    Regards,
    PNK.

    Hi Sam, Thanks for quick reply and your solution worked perfectly fine. I showed the solution to my manager, he is happy as of now. if the same solution is work in Quality and Production, do I have to transport this infoobjects to Quality and Prod or do I have to manually enter "Blank" space for the first record?????
    and during the refresh, we delete all the records from the master data and we reload. during this, do we have to do that again???
    Regards,
    PNK

  • Help needed-regarding swing component and linux

    Hi
    I am trying to run java program on Linux machine which doesn't have GUI support. Due to that following exception is throwing,
    java.awt.HeadlessException:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
    at java.awt.Window.<init>(Unknown Source)
    at java.awt.Frame.<init>(Unknown Source)
    at javax.swing.JFrame.<init>(Unknown Source)
    at org.jfree.ui.ApplicationFrame.<init>(ApplicationFrame.java:66)
    at ismschart.AbstractIsmsChart.<init>(AbstractIsmsChart.java:82)
    at ismschart.CHART_DAILY_PEAK_ACTIVITY.<init>(CHART_DAILY_PEAK_ACTIVITY.java:56)
    at ismschart.jChartTbl.createIsmsChart(jChartTbl.java:197)
    at ismschart.jChartTbl.main(jChartTbl.java:98)
    Can any one tell me, How to overcome this?
    Is there any tool which provides UI support for Linux?
    Thnaks
    -Ravi

    cut and paste from API
    Thrown when code that is dependent on a keyboard, display, or mouse is called in an environment that does not support a keyboard, display, or mouse.
    environment issue

Maybe you are looking for

  • Check in Page customization

    Hi I want to add multi select check boxes for one of the metadata field on the check in page, can some one tell me the steps to do it.

  • Excel export in crystal report

    Post Author: aravinthkula CA Forum: Crystal Reports           I have a requirement to open a new window from one of the reportviewer report columns, I know we have to use Navigation->Hyperlink Action->Jump To Url->="BLOCKED SCRIPTvoid(window.open('ht

  • How can I permanently delete numbers from my iPhone without them having to show up under messages!

    Okay so I've deleted numbers from my contacts list and whenever I go to my messages and tap on the icon to write and message to someone that I do have on my phone the people numbers I deleted from my contacts list still show up is there anyway I can'

  • How get update for Reader to work?

    WHen I try to update Reader 10, the installation aborts.   I get an error message as follows, "Error has occurred in script on this page 'Retrievng Install' Line: 1 Char: 12948 Err: object expected Code: 0 URL: http://127.0.0.1.1908/app/_js/adobe.js"

  • So 5.1.1 is out... Will it finally support GY-HD101E 720p 24fps footage ?

    Been waiting almost 1 year for compatability with my JVC HD101 at 24 fps, will this 5.1.1 version finally support it ? At the moment im running version FCP 5.0.4, I have the Studio package... so do i have to pay to get upgraded to 5.1.1 ?