How to use Box & Box.Filler class in jdk1.4

hi
i want to know the details about Box & Box.Filler classes in JDK1.4.0 version. can anyone will tel me the place where i will find info.
i am interested in few code samples also.
reply me soon.
thankx in advance

Hi Kodandarami,
                       I had done like that only see here is the code below.here L1 L2 L3 and L4  are paragraph left Justified item's.
so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
=    -
L1   Itm,,Material,,Mat.Desc,,             Batch,,  SLoc,,  Stor.bin        
/*   Stock type                                                             
L3                                 ,,              Counted qty.,,Un         
L    -
=    -
/E   POS_BELZEILE2                                                         
/:   PROTECT                                                               
/:   BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6                
L4   &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,        
=    ,,&ISEG-LGORT&,,&MABDR-LGPBE&                                         
/*   ,&T064B-BTEXT&                                                        
L3        ,,              _______________,,&ISEG-ERFME&                    
/:   ENDPROTECT                                                            
/E   POS_ENDPAGE                                                           
Thanks,
Gopi.

Similar Messages

  • How to use box in Scripts?

    Hi Guys,
                  can anybody tell me how to use Box and purpose of box?
               My req is i have to display 5 columns ina Script thru printer but problem is i am not able to display the columns values in a vertical way i am getting in a jig jag way.so what shall i use ?  is BOX ok ?
    Thanks,
    Gopi.

    Hi Kodandarami,
                           I had done like that only see here is the code below.here L1 L2 L3 and L4  are paragraph left Justified item's.
    so do u think is ther anything wrong with the code Now my doubt is what shall i do to get the Columns Values in staright even if there is not value for some of their previous columns?
    =    -
    L1   Itm,,Material,,Mat.Desc,,             Batch,,  SLoc,,  Stor.bin        
    /*   Stock type                                                             
    L3                                 ,,              Counted qty.,,Un         
    L    -
    =    -
    /E   POS_BELZEILE2                                                         
    /:   PROTECT                                                               
    /:   BOX WIDTH '5.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 6                
    L4   &ISEG-ZEILI&,,&ISEG-MATNR+0(5)&,,&MABDR-MAKTX&,,&ISEG-CHARG&,,        
    =    ,,&ISEG-LGORT&,,&MABDR-LGPBE&                                         
    /*   ,&T064B-BTEXT&                                                        
    L3        ,,              _______________,,&ISEG-ERFME&                    
    /:   ENDPROTECT                                                            
    /E   POS_ENDPAGE                                                           
    Thanks,
    Gopi.

  • How to Use JavaScript in Controller Class...

    Hi All,
    Can any one tell me how to use JavaScript in Controller Class.
    Requirement is:
    I have
    Radio Group(RG1),
    Two Radio Buttons(RB1,RB2),
    Two messageTextInput(MTI1,MTI2),
    if i click RB1 i should Prompt to the end user to "Enter value for MTI1" or
    If i click RB2 i should prompt "Enter value for MTI2" while submitting page.
    Please let me know the steps to use JavaScript and the above client validation...
    Regards
    Alem...

    Using javascript is against the standard. I can tell you a workaround instead of you setting the javascript, check if that would be acceptable.
    You can use PPR and set the required property on the messageTextInput on clicking of the radio button. By doing this you will let UIX generate the javascript for you to handle the client side validation. But the validation will happen only on click of the submit button. The visual indicator is good enough to tell that the value has to be entered to the item.

  • How to use these method of class CL_GUI_PDFVIEWER

    how to use these methods in the class CL_GUI_PDFVIEWER
    1) CREATE_ANNOTATION
    2) GET_ANNOTATION_INFO
    3) SET_ANNOTATION_SETTINGS

    Hi,
       Refer
    https://forums.sdn.sap.com/click.jspa?searchID=10926572&messageID=1803295
    Regards
    Kiran

  • How to use commit work in class cl_bls

    Hi,
    When i have used commit work after email sent,
    it goes into dump.
    Here is the code segment:
      try.
        -------- create persistent send request ------------------------
          send_request = cl_bcs=>create_persistent( ).
        -------- create and set document -------------------------------
          pdf_content = cl_document_bcs=>xstring_to_solix( pdf_tab ).
          document = cl_document_bcs=>create_document(
                i_type    = 'PDF'
                i_hex     = pdf_content
                i_length  = bytecount
                i_subject = sub ).  "#EC NOTEXT
        add document object to send request
          send_request->set_document( document ).
        --------- add recipient (e-mail address) -----------------------
        create recipient object
          recipient = cl_cam_address_bcs=>create_internet_address( recip-recip ).
        add recipient object to send request
          send_request->add_recipient( recipient ).
        ---------- send document ---------------------------------------
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
         commit work.
          if sent_to_all is initial.
            message i500(sbcoms) with recip.
          else.
            message s022(so).
          endif.
      ------------ exception handling ----------------------------------
      replace this rudimentary exception handling with your own one !!!
        catch cx_bcs into bcs_exception.
          message i865(so) with bcs_exception->error_type.
      endtry.
    What could be the reason?
    Is there any way to use commit work in class while sending email as in SO_NEW_DOCUMENT_ATT_SEND_API1 fm?
    Thanks.

    Hi,
    I have used
    submit program.....
    but in update task i have used it.
    "Z_SD_ORDER_UPDATE".    program is a print driver program.
    However error says:
    There is probably an error in the program
    "Z_SD_ORDER_UPDATE".  
    This program is triggered in the update task. There, the
    following ABAP/4 statements are not allowed:
    -  CALL SCREEN
    -  CALL DIALOG
    -  CALL TRANSACTION
    -  SUBMIT
    I used submit as:
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                      WITH output = ' '
                    AND RETURN.
    Instead of submit i want to use commit work but i also get a dump after commit work too.
    How can i use commit work in above code?
    Thanks.

  • How to Use Pattern and Matcher class.

    HI Guys,
    I am just trying to use Pattern and Matcher classes for my requirement.
    My requirement is :- It should allow the numbers from 1-7 followed by a comma(,) again followed by the numbers from
    1-7. For example:- 1,2,3,4,5 or 3,6,1 or 7,1,3 something like that.
    But it should not allow 0,8 and 9. And also it should not allow any Alphabets and special characters except comma(,).
    I have written some thing like..
    Pattern p = Pattern.compile("([1-7])+([\\,])?([1-7])?");
    Is there any problem with this pattern ??
    Please help out..
    I am new to pattern matching concept..
    Thanks and regards
    Sudheer

    ok guys, this is how my code looks like..
    class  PatternTest
         public static void main(String[] args)
              System.out.println("Hello World!");
              String input = args[0];
              Pattern p = Pattern.compile("([1-7]{1},?)+");
              Matcher m = p.matcher(input);
              if(m.find()) {
                   System.out.println("Pattern Found");
              } else {
                   System.out.println("Invalid pattern");
    }if I enter 8,1,3 its accepting and saying Pattern Found..
    Please correct me if I am wrong.
    Actually this is the test code I am presenting here.. I original requirement is..I will be uploading an excel sheets containg 10 columns and n rows.
    In one of my column, I need to test whether the data in that column is between 1-7 or not..If I get a value consisting of numbers other than 1-7..Then I should
    display him the msg..
    Thanks and regards
    Sudheer

  • How to use the opportunity stub classes to retrieve the opportunity objects

    Hello ,
    I have downloaded WSDL file for opportunity and i have created the stub classes by using axis as WSDL to java. Can any body suggest me , how can i use those created stub classes to retrieve the opportunity objects ?.
    Thanks,
    --bdr_09
    Edited by: bdr on Feb 3, 2009 1:54 AM

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63055

  • How too use the string tokeniser class to format date strings

    Using the code below I want to write a method which takes a string as a parameter and process it as follows:
    Input: 21/07/62
    Output: 21st July 62
    I wish to do this using the string tokenizer class. Can anyone help??
    import java.io.*;
    public class Input
    public static void main(String args[]) throws IOException
    String theString;
    BufferedReader stdin = new BufferedReader(
    new InputStreamReader(System.in));
    System.out.println("Enter your string now please");
    theString = stdin.readLine(); // throws IOException
    System.out.println("You entered ***" + theString + "***");
    }

    You can certainly use a StringTokenizer to parse your date into three numbers but I think you should use SimpleDateFormat, which will even help you generate your desired format: http://java.sun.com/j2se/1.4/docs/api/java/text/SimpleDateFormat.html

  • How to obtain instance of Image-Class under JDK1.1

    Hi!
    I got the following problem:
    I want to draw an image (thus drawing on the Grafics-
    Object I got from the Image-Object) and then save
    it to a file via a GifEncoder (needs the Image-Object).
    I don't find an Implementation of the Image-Class
    under JDK1.1. Can I just take the Image-Object
    of a Window/Component? I know there's
    BufferedImage, but unfortunately not in JDK1.1.
    Who can give me a hint on this?
    Valentin

    See Component.createImage(int width, int height).
    You can draw on it using getGraphics as usual, and it's been in since JDK 1.0. :-)

  • How to use Box.glue

    i have a java app using Swing JList
    the problem is that when the person resizes or gridbaglayout interprets the sign in such a way the list expands and covers up the button below it. i don't want the JList to expand and cover up the JButton that was below it. So i'm under the impression I need a glue to keep it in place.
    could someone give some guidance on that
    thanks in advance
    stev

    I am not a fan of Grid Bag Layout. ....It might be Basically Becos u have Kept Both JList and Button in the Same Cell...Try Placing them in Different Cells....Otherwise Use a Combination of BorderLayout and Flaw Layour...That shuld Solve ur Problem
    Cheers,
    Manja

  • How to use a Measurement Studio class in MFC

    I am new to MFC coming over from VB.NET.
    I have created a VISA class to measure something from an instrument and have a simple dialog box with a Button to invoke the measurement and display it to a text box. I changed the ID of the control and made a member variable for the text box and can code the OnButtonClick event to display text in the Text box as a test.
    The problem is I cannot seem to create an object of the Visa Class that I built in the OnBnClickedRun()function. I can code the OnInitDialog() to make this measurement:
    double power;
    CGetBandPower BPower;
    BPower.Run(power);
    but want to do it when I click on the button. I am using VS.NET 2003 with Measurement Studio 7.0.
    Help

    Hello,
    I think the following other discussion forum post contains useful information for you:
    http://forums.ni.com/ni/board/message?board.id=232&message.id=1306&requireLogin=False
    In particular, read the posts by the names in blue... you'll find paths to great examples which should help you use VISA in the .NET environment.
    Repost if you continue to have any problems!
    Thank you,
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • How to use method of one class in other class.

    Hi.I am new to object orient approach .I am developing a project which has a class as application .My class has it state control as another class which is notification class.I want to use my notification class method (init)in my application class method .i have also used read and write accessors vis.But i have broken lines in my code.Please help me correct it. and print screen is attached below.
    Attachments:
    Application.docx ‏143 KB

    On the left, you have wired 2 sources on the same tunnel/wire, so that's 1 broken wire.
    In the For loop, you are trying to wire a "Red" object from the first subVI to the input of the "Green" subVI, so a "Green" object. If Red is not a descendant class of Green (or share a common ancestor), it is not permitted.
    FInally, the output of the For loop, is a 1D array of "Green" objects, which is probably not the same data type as the input of the last subVI on the right (it's probably a "Green" object scalar).
    Overall, you can use the "List Errors" dialog box (Ctrl+L) to debug your code, and make exhaustive use of the contextual help (Ctrl+H) to see what is going on when focusing a broken wire.
    Regards
    Eric M. - Application Engineering Specialist
    Certified LabVIEW Architect
    Certified LabWindows™/CVI Developer

  • How to use user defined exception class

    Hi all
    I just need som help with creating a user defined exception class.
    Im writing a small/simple text editor.
    My exception class looks like this:
    public class myExcp extends Throwable
         private String message;
         public myExcep(String message)
              this.message = message;
         public void display()
              System.out.println(message);
    I would like to use it when a user tries to open a exe-file instead of a txt file.
    Here is some code from the editor:
    if (e.getSource() == open)
    saveOld();
    if (fc.showOpenDialog(null)== JFileChooser.APPROVE_OPTION)
    readFile(fc.getSelectedFile().getAbsolutePath());           
    saveas.setEnabled(true);                
    So, should I use exception here or at the readFile method?
    readfile:
    private void readFile(String fileName)
    try
    String tmp = fileName.substring(fileName.length() -4, fileName.length());
    if (!tmp.equals(".exe"))
    FileReader r = new FileReader(fileName);
    textarea.read(r, null);
    r.close();
    currentFile = fileName;
    label.setText(currentFile);
    changed = false;
    catch (IOException e)
    JOptionPane.showMessageDialog (this, "Cannot find the file " + fileName);
    Where and how do I use my exception class.
    Do I need to create an instance? Where?
    Should the exception class extend Exception instead?
    Thank you in advance /

    Extend Exception, not Throwable. It's a checked exception that way.
    Follow the Sun coding standards and make that exception class name start with a capital letter.
    When you extend Exception, override all four ctors.
    What's that display method you added? Isn't getMessage() good enough?
    You need to create a new instance just before you throw the exception, of course.
    Sounds like a terrible design, by the way. Exceptions shouldn't be used like "go to" for app logic. They should signal unrecoverable conditions. You can easily recover from the situation you've described simply by displaying a pop-up that tells the user to open only text-readable file types. I think that's a better solution.
    %

  • How to use constructer for javafx class

    hi
    when i create an instance of javafx class i do like this :
    var instance = ClassName{
    attribute1 : value1
    attribute2 : value2
    so i have to put all attributes as public ...wich is not respect the OOP rules !!
    how can i avoid this ?
    thx

    to preserve encapsulation you can use the public-init modifier like so
    public-init var foo;This allows initialization from public and read from public but write only from within the same script (file).
    All of the access modifiers are explained here: [http://java.sun.com/javafx/1/tutorials/core/modifiers/|http://java.sun.com/javafx/1/tutorials/core/modifiers/]

  • How to use Common Structure in class!!

    Hi,
    I have 3 different structures being used in the 3 different methods containing one select query and populate the  internal table and exported now i want to use single method and pass the internal table depending on the structure which is receives
    Plz help me how i can achieve.
    Thanks...

    In the class this is how i have declared
    DATA_PACKAGE_STRUCTURE     Instance Attribute     Public     Type     /BIC/CS8E_HNOD     
    Method parameters       SELECT_METHOD                          
    Methods      Exception                                      
    Parameter               Type  Pas       Opt     Typing M     Associated Type
    DATA_PACKAGE            Import                Type          ANY                
    IT_AGRS                          Export               Type          ZTY_AGR_USERS      
    IT_AUTHMAP                   Export               Type          ZTY_ZAGR_AUTH      
    ABORT                             Export               Type         SY-SUBRC           
    i have declared DATA_PACKAGE with type ANY as per ur post let me know how will i create dynamic internal table and
    in attribute declare different structure such as /BIC/CS8E_HNDEL.
    Thanks...

Maybe you are looking for