How to give JComboBox JButton effects(urgent)

hi,
After selecting item in the JComboBox,when i perform action on the selected item, i am drawing a rectangle around the JComboBox. I want this rectangle to stay back till the operation is under processing, but i am not able to get it.
i have used the following code for drawing rectangle around the combo
private void drawRectangle(Graphics g,Insets inset,int width,int height)
int top = inset.top;
int bottom = inset.bottom;
int left = inset.left;
int right = inset.right;
width = width - left - right;
height = height - top - bottom;
java.awt.Color col = g.getColor();
g.setColor(java.awt.Color.black);
BasicGraphicsUtils.drawDashedRect(g,2,2,width-20,height-2);
try
java.lang.Thread.currentThread().sleep(400);
catch(InterruptedException ie)
System.out.println("Catching Exception");
g.setColor(col);
}

Don't use drawing, add a border instead

Similar Messages

  • How to store JcomboBox n textfield into textfile? Urgent!!!

    How to store JcomboBox n textfield into textfile?
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.text.DecimalFormat;
    import java.io.*;
    public class RecordMenu extends JPanel implements ActionListener {
        private JComboBox monthSelection;
        private JButton buttonOk;
        double amtToTrack;
        private JTextField amtField;
        private static final String[] Months =
         new String[] {
             "January",
             "February",
             "March",
             "April",
             "May",
             "June",
             "July",
             "August",
             "September",
             "October",
             "November",
             "December"
        public RecordMenu() {      
            JPanel mainPanel = new JPanel();
            mainPanel.setLayout(new GridLayout(4,2));
            mainPanel.setBorder(new TitledBorder("Record Expenses"));
            JLabel monthLabel = new JLabel("Select month");      
            monthSelection = new JComboBox(Months);      
            monthSelection.addActionListener(this);
            JLabel label2 = new JLabel("Amount to track:");       
            JTextField amtField = new JTextField(5);
            amtField.addActionListener(this);
            JLabel nothing1 = new JLabel("nothing");
            nothing1.setVisible(false);
            JLabel nothing2 = new JLabel("nothing");
            nothing2.setVisible(false);
            JLabel nothing3 = new JLabel("nothing");
            nothing3.setVisible(false);
            JLabel nothing4 = new JLabel("nothing");
            nothing4.setVisible(false);
            JLabel nothing5 = new JLabel("nothing");
            nothing5.setVisible(false);
            JLabel nothing6 = new JLabel("nothing");
            nothing6.setVisible(false);
            JLabel nothing7 = new JLabel("nothing");
            nothing7.setVisible(false);
            JLabel nothing8 = new JLabel("nothing");
            nothing8.setVisible(false);
            mainPanel.add(monthLabel);
            mainPanel.add(monthSelection);
            mainPanel.add(nothing1); 
            mainPanel.add(label2);
            mainPanel.add(amtField);
            mainPanel.add(nothing2);
            mainPanel.add(nothing3);
            mainPanel.add(nothing4);
            mainPanel.add(nothing5);
            mainPanel.add(nothing6);
            mainPanel.add(nothing7);
            JButton buttonOk = new JButton("OK");     
            buttonOk.addActionListener(this);
            mainPanel.add(buttonOk);
            add(mainPanel);      
            setSize(400,300);
            setVisible(true);
        public void actionPerformed(ActionEvent e) {                
             if (e.getSource() == buttonOk) {
             double amtToTrack = 0.0;
             try {
             if (!amtField.getText().equals(""))
                   amtToTrack = Double.parseDouble(amtField.getText());
             catch (NumberFormatException numberFormatException) {
                  JOptionPane.showMessageDialog(this, "You must enter numbers","Invalid Number Format", JOptionPane.ERROR_MESSAGE);
                         try{               
                             BufferedWriter out = new BufferedWriter(new FileWriter("mySaved.txt",true));
                             out.write("For Month "+Months);
                             out.newLine();
                             if (!amtField.getText().equals("")) {     
                             amtToTrack = Double.parseDouble(amtField.getText());
                             out.write("Amount to track = "+amtToTrack);   
                             out.newLine();     
                             out.close();
                             JOptionPane.showMessageDialog(this, "Saved!");                         
                            catch(IOException ex) {   
                            ex.printStackTrace(System.err);
        public static void main(String[] args) {
            JPanel p = new RecordMenu();
            JFrame f = new JFrame();
            Container c = f.getContentPane();
            c.add(p);
            f.pack();
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              f.setVisible(true);
    }

    i had save e month at mySavedTotal
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import java.text.DecimalFormat;
    import java.io.*;
    public class RecordMenu extends JPanel implements ActionListener {
        private JComboBox monthSelection;
        private JButton buttonOk;
        double amtToTrack;
        private JTextField amtField;
        private static final String[] Months =
         new String[] {
             "January",
             "February",
             "March",
             "April",
             "May",
             "June",
             "July",
             "August",
             "September",
             "October",
             "November",
             "December"
        public RecordMenu() {      
            JPanel mainPanel = new JPanel();
            mainPanel.setLayout(new GridLayout(4,2));
            mainPanel.setBorder(new TitledBorder("Record Expenses"));
            JLabel monthLabel = new JLabel("Select month");      
            monthSelection = new JComboBox(Months);      
            monthSelection.addActionListener(this);
            JLabel label2 = new JLabel("Amount to track:");       
            amtField = new JTextField(5);
            amtField.addActionListener(this);
            JLabel nothing1 = new JLabel("nothing");
            nothing1.setVisible(false);
            JLabel nothing2 = new JLabel("nothing");
            nothing2.setVisible(false);
            JLabel nothing3 = new JLabel("nothing");
            nothing3.setVisible(false);
            JLabel nothing4 = new JLabel("nothing");
            nothing4.setVisible(false);
            JLabel nothing5 = new JLabel("nothing");
            nothing5.setVisible(false);
            JLabel nothing6 = new JLabel("nothing");
            nothing6.setVisible(false);
            JLabel nothing7 = new JLabel("nothing");
            nothing7.setVisible(false);
            JLabel nothing8 = new JLabel("nothing");
            nothing8.setVisible(false);
            mainPanel.add(monthLabel);
            mainPanel.add(monthSelection);
            mainPanel.add(nothing1); 
            mainPanel.add(label2);
            mainPanel.add(amtField);
            mainPanel.add(nothing2);
            mainPanel.add(nothing3);
            mainPanel.add(nothing4);
            mainPanel.add(nothing5);
            mainPanel.add(nothing6);
            mainPanel.add(nothing7);
            buttonOk = new JButton("OK");     
            buttonOk.addActionListener(this);
            mainPanel.add(buttonOk);
            add(mainPanel);      
            setSize(400,300);
            setVisible(true);
        public void actionPerformed(ActionEvent e) {                
             if (e.getSource() == buttonOk) {
             double amtToTrack = 0.0;
             try {
             if (!amtField.getText().equals(""))
                   amtToTrack = Double.parseDouble(amtField.getText());
             catch (NumberFormatException numberFormatException) {
                  JOptionPane.showMessageDialog(this, "You must enter numbers","Invalid Number Format", JOptionPane.ERROR_MESSAGE);
                         try{               
                             BufferedWriter out = new BufferedWriter(new FileWriter("mySavedTotal.txt",true));
                             out.write("For Month "+monthSelection.getSelectedItem());
                             out.newLine();
                             if (!amtField.getText().equals("")) {     
                             amtToTrack = Double.parseDouble(amtField.getText());
                             out.write("Amount to track = "+amtToTrack);   
                             out.newLine();     
                             out.close();
                             JOptionPane.showMessageDialog(this, "Saved!");
                             JPanel p = new CheckBox();         
                             JFrame f = new JFrame();         
                             Container c = f.getContentPane();         
                             c.add(p);         
                             f.pack();         
                             f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);         
                             f.setVisible(true);                              
                            catch(IOException ex) {   
                            ex.printStackTrace(System.err);
        public static void main(String[] args) {
            JPanel p = new RecordMenu();
            JFrame f = new JFrame();
            Container c = f.getContentPane();
            c.add(p);
            f.pack();
            f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              f.setVisible(true);
    }then i save data from other file in mySavedTotal again
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.text.DecimalFormat;
    import java.io.*;
    public class CheckBox extends JPanel implements ItemListener, ActionListener {
         private JPanel checkPanel, buttonPanel;
         private JCheckBox transport, bills, food, gifts, leisure, others;
         private JTextField transportField, billsField, foodField, giftsField,leisureField,
                        othersField, totalField;
         double transportAmt, billsAmt, foodAmt, giftsAmt, leisureAmt, othersAmt, totalAmt;
         private JButton buttonTotal, saveButton, dontSaveButton;
         private JLabel showTotal;
         public CheckBox() {          
              //create a panel for diaplaying the checkboxs and buttons
              checkPanel = new JPanel();
              checkPanel.setLayout(new GridLayout(7,3));
              //Create the check boxes.
              transport = new JCheckBox("Transport");
              transport.setSelected(false);
              transport.setBounds(10,30,80,30);
              transportField = new JTextField();
              transportField.setEditable(false);
              transportField.setBounds(100,35,45,20);
              bills = new JCheckBox("Bills");
              bills.setSelected(false);
              bills.setBounds(10,60,80,30);
              billsField = new JTextField(5);
              billsField.setEditable(false);
              billsField.setBounds(100,65,45,20);
              food = new JCheckBox("Food");
              food.setSelected(false);
              food.setBounds(10,90,80,30);
              foodField = new JTextField(5);
              foodField.setEditable(false);
              foodField.setBounds(100,95,45,20);
              gifts = new JCheckBox("Gifts");
              gifts.setSelected(false);
              gifts.setBounds(200,30,80,30);
              giftsField = new JTextField(5);
              giftsField.setEditable(false);
              giftsField.setBounds(300,35,45,20);
              leisure = new JCheckBox("Leisure");
              leisure.setSelected(false);
              leisure.setBounds(200,60,80,30);
              leisureField = new JTextField(5);
              leisureField.setEditable(false);
              leisureField.setBounds(300,65,45,20);
              others = new JCheckBox("Others");
              others.setSelected(false);
              others.setBounds(200,90,80,30);
              othersField = new JTextField(5);
              othersField.setEditable(false);
              othersField.setBounds(300,95,45,20);
              JLabel nothing1 = new JLabel("nothing");
            nothing1.setVisible(false);
            JLabel nothing2 = new JLabel("nothing");
            nothing2.setVisible(false);
            JLabel nothing3 = new JLabel("nothing");
            nothing3.setVisible(false);
            JLabel nothing4 = new JLabel("nothing");
            nothing4.setVisible(false);
            JLabel nothing5 = new JLabel("nothing");
            nothing5.setVisible(false);
            JLabel nothing6 = new JLabel("nothing");
            nothing6.setVisible(false);
            JLabel nothing7 = new JLabel("nothing");
            nothing7.setVisible(false);
            JLabel nothing8 = new JLabel("nothing");
            nothing8.setVisible(false);
            JLabel nothing9 = new JLabel("nothing");
            nothing9.setVisible(false);
            JLabel nothing10 = new JLabel("nothing");
            nothing10.setVisible(false);
            JLabel nothing11 = new JLabel("nothing");
            nothing11.setVisible(false);
              //Register a listener for the check boxes.
              transport.addItemListener(this);
              bills.addItemListener(this);
              food.addItemListener(this);
              gifts.addItemListener(this);
              leisure.addItemListener(this);
              others.addItemListener(this);
              transportField.addActionListener(this);
              billsField.addActionListener(this);
              foodField.addActionListener(this);
              giftsField.addActionListener(this);
              leisureField.addActionListener(this);
              othersField.addActionListener(this);
              checkPanel.add(transport);
              checkPanel.add(transportField);
              checkPanel.add(bills);
              checkPanel.add(billsField);
              checkPanel.add(food);
              checkPanel.add(foodField);
              checkPanel.add(gifts);
              checkPanel.add(giftsField);
              checkPanel.add(leisure);
              checkPanel.add(leisureField);
              checkPanel.add(others);
              checkPanel.add(othersField);
              checkPanel.setBounds(1,1,390,180);
              checkPanel.setBorder(new TitledBorder("Check the amount you want to track"));
              buttonTotal = new JButton("Calculate Total");
              buttonTotal.setBounds(150,140,130,30);
              buttonTotal.addActionListener(this);
              showTotal = new JLabel(" = __");
              showTotal.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
              showTotal.setBounds(290,140,100,30);
              checkPanel.add(nothing1);
              checkPanel.add(nothing2);
              checkPanel.add(nothing3);
              checkPanel.add(nothing4);
              checkPanel.add(nothing5);
              checkPanel.add(nothing6);
              checkPanel.add(buttonTotal);
              checkPanel.add(showTotal);
              checkPanel.add(nothing7);
              checkPanel.add(nothing8);
              checkPanel.add(nothing9);
              checkPanel.add(nothing10);
              checkPanel.add(nothing11);
              saveButton = new JButton("Save");
              saveButton.setBounds(90,190,100,30);
              saveButton.addActionListener(this);
              dontSaveButton = new JButton("Don't Save");
              dontSaveButton.setBounds(200,190,100,30);
              dontSaveButton.addActionListener(this);
              checkPanel.add(saveButton);
             checkPanel.add(dontSaveButton);
            add(checkPanel);       
              setSize(400,260);
              setVisible(true);
              /** Listens to the check boxes. */
              public void itemStateChanged(ItemEvent e) {
              if (e.getSource() == transport)
              if (e.getStateChange() == ItemEvent.SELECTED)          
              transportField.setEditable(true);
              else
              transportField.setEditable(false);
              if (e.getSource() == bills)
              if (e.getStateChange() == ItemEvent.SELECTED)
              billsField.setEditable(true);
              else
              billsField.setEditable(false);
              if (e.getSource() == food)
              if (e.getStateChange() == ItemEvent.SELECTED)
              foodField.setEditable(true);
              else
              foodField.setEditable(false);
              if (e.getSource() == gifts)
              if (e.getStateChange() == ItemEvent.SELECTED)
              giftsField.setEditable(true);
              else
              giftsField.setEditable(false);
              if (e.getSource() == leisure)
              if (e.getStateChange() == ItemEvent.SELECTED)
              leisureField.setEditable(true);
              else
              leisureField.setEditable(false);
              if (e.getSource() == others)
              if (e.getStateChange() == ItemEvent.SELECTED)
              othersField.setEditable(true);
              else
              othersField.setEditable(false);
              public void actionPerformed(ActionEvent event) {
              try {     
             if (event.getSource() == buttonTotal) {
                  double transportAmt=0.0, billsAmt=0.0, foodAmt=0.0, giftsAmt=0.0,leisureAmt=0.0, othersAmt=0.0, totalAmt=0.0;
                   if (!transportField.getText().equals(""))
                   transportAmt = Double.parseDouble(transportField.getText());
                   if(!billsField.getText().equals(""))
                   billsAmt = Double.parseDouble(billsField.getText());
                   if(!foodField.getText().equals(""))
                   foodAmt = Double.parseDouble(foodField.getText());
                   if(!giftsField.getText().equals(""))
                   giftsAmt = Double.parseDouble(giftsField.getText());
                   if(!leisureField.getText().equals(""))
                   leisureAmt = Double.parseDouble(leisureField.getText());
                   if(!othersField.getText().equals(""))
                   othersAmt = Double.parseDouble(othersField.getText());
                   totalAmt = transportAmt + billsAmt + foodAmt + giftsAmt + leisureAmt + othersAmt;
                   showTotal.setText("= $" + totalAmt);
              catch (NumberFormatException numberFormatException ) {
                        JOptionPane.showMessageDialog(this, "You must enter numbers!","Invalid Number Format", JOptionPane.ERROR_MESSAGE);
                   if (event.getSource() == dontSaveButton) {
                        System.exit(0);
                        if(event.getSource() ==saveButton){     
                        double transportAmt=0.0, billsAmt=0.0, foodAmt=0.0, giftsAmt=0.0,leisureAmt=0.0, othersAmt=0.0, totalAmt=0.0;      
                        try{
                             BufferedWriter out = new BufferedWriter(new FileWriter("mySavedTotal.txt",true));
                             if (!transportField.getText().equals("")) {     
                             transportAmt = Double.parseDouble(transportField.getText());
                             out.write("Transport = "+transportAmt);   
                             out.newLine();     
                             if(!billsField.getText().equals("")) {     
                             billsAmt = Double.parseDouble(billsField.getText());     
                             out.write("Bills = "+billsAmt);     
                             out.newLine();     
                             if(!foodField.getText().equals("")) {     
                             foodAmt = Double.parseDouble(foodField.getText());     
                             out.write("Food = "+foodAmt);     
                             out.newLine();     
                             if(!giftsField.getText().equals("")){     
                             giftsAmt = Double.parseDouble(giftsField.getText());     
                             out.write("Gifts = "+giftsAmt);     
                             out.newLine();
                             if(!leisureField.getText().equals("")){     
                             leisureAmt = Double.parseDouble(leisureField.getText());     
                             out.write("Leisure = "+leisureAmt);     
                             out.newLine();     
                             if(!othersField.getText().equals("")) {     
                             othersAmt = Double.parseDouble(othersField.getText());     
                             out.write("Others = "+othersAmt);     
                             out.newLine();     
                             out.write("Total amount "+showTotal.getText());
                        out.newLine();                              
                             out.close();
                             JOptionPane.showMessageDialog(this, "Everything is saved!");
                             catch(IOException e){
                                  JOptionPane.showMessageDialog(this, "You must enter integers!","Invalid Number Format",JOptionPane.ERROR_MESSAGE);
                        public static void main(String[] args) {                         
                             JPanel p = new CheckBox();
                        JFrame f = new JFrame();
                        Container c = f.getContentPane();
                        c.add(p);
                        f.pack();
                        f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                          f.setVisible(true);
                        }urgent... how to rerieve saved data? i got try b4 but didnt work out

  • HT1202 I have just bought a new I pad 3 and want to give my I pad 2 to a friend. What will I have to do to clear my info on the old I pad and set it up on my new one? How are apple I D effected and passwords cleared?

    I have just bought a new I pad 3 and want to give my I pad 2 to a friend. What will I have to do to clear my info on the old I pad and set it up on my new one? How are apple I D effected and passwords cleared?
    Any advice welcome.

    To clear to old before passing it on, open the Settings app and tap on General (left hand menu). Scroll down and tap on settings, then tap on Erase All Content and Settings.
    If you have been synching the iPad to iTunes on a computer, you should also have backed it up. If you havn't backed it, you will want to do so before clearing the settings and use the back up to set up your new iPad.
    You may dinf soem of the articles here useful:
    http://www.apple.com/support/ipad/syncing/

  • Title: How to give transparency effect to JFrame?

    Hai,
    we are developing stand alone application using java swing. In our application we need to show an image in JFrame. We draw an image in JPanel using JPanel's paintComponent method. Then we place this JPanel into JFrame. The image is having transparent effect. But we are not able to give transparency effect to JFrame so we couldn't see desktop we are seeing only JFrame's background. *{color:#0000ff}How to give transparency effect to JFrame?*
    *{color}*
    Thanks for your help.

    It's not a commited part of the standard API yet, but as of 1.6_10 you can add transparency effects to a window through the use of
    com.sun.awt.AWTUtilitiesI think this was the original article on the release. If you google, you will find many creative ideas that people have come up with using this particular feature.

  • How to avoid the toggle effect in JButton

    Hi,
    I am displaying the text in JButton and called the properties as follows:
    <jButton>.setText("Welcome");
    <jButton>.setFont(new FOnt("SansSerif"),Font.PLAIN,12);
    <jButton>.setForeground(Color.black);
    <jButton>.setContentAreaFilled(false);
    <jButton>.setBorderPainted(false);
    <jButton>.setFocusPainted(false);
    <jButton>.setOpaque(false);
    <jButton>.setBorder(null);
    But, when i click on the text, there is slight jumping effect(slight toggle effect) in the text. Text goes slightly downwards and come back to its original position.
    Also, i have set the WindowsLookAndFeel.(which is mandotory for us).
    If i remove the WindowsLookAndFeel, it works fine.
    How to avoid this toggle effect.
    Could anyone can help in this regard?
    N.Madhusudhanan

    Your button doesn't look like a button. So does it have to be a button? Why not try using a jLabel with proper event handling?

  • How to give nice effect to band photo?

    I am playing in a coverband (Day Out) and my brother made some really nice photo's of one of our live performances. Before I put the photo's on our website (http://www.dayoutcoverband.nl) I would like to give a nice effect to the photo's.
    I just started using Photoshop and need some help:
    - Can you recommend filters that are useful for this type of photo's?
    - How can I make the photo's more special? Any suggestions for editing?
    - Can you recommend tuturials?
    Please find below some examples of the photo's
    I am lokking forward to you suggestions

    That question is far too broad. It's like asking 'How big is big?' It depends on what you're talking about. Or in this case, what you consider a 'nice effect'.
    Surf the internet. Find some photos that have a look you like -- something similar to what you would want to do with your photos. Then you can at post one or two of those samples here and give us some idea of what you want to do.
    --OB

  • How to give backgound color

    H All :
    I am using collection in my application for textbox
    HTMLDB_ITEM.TEXT(2,null,30,500,''style="background-color: RED"'')
    i am using this which give me the red in color background effect
    i am using
    HTMLDB_ITEM.DISPLAY_AND_SAVE(2,null,30,500)
    how to give a background or a fore ground color this item
    please suggest
    Thanks
    Sudhir

    It's actually quite easy.
    What you have to do is write a custom tree cell renderer which extends DefaultTreeCellRenderer. In that class, your getTreeCellRenderer() method should do something like the following:
    public Component getTreeCellRendererComponent(
        JTree tree, Object value, boolean selected,
        boolean expanded, boolean leaf, int row, boolean hasFocus )
            Component treeCellRenderer =
                  super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
            if (selected) {
                setForeground(Color.WHITE);
                setBackground(BACKGROUND_SELECTION_COLOR);
            } else {
                treeCellRenderer.setForeground(Color.RED);
            return treeCellRenderer;
    Then you'll need to make sure that you call myTree.setCellRenderer(new CustomTreeCellRenderer());
    cheers,
    Greg

  • Cool effect..how can i create this effect on Motion 3?

    that's great.
    Someone please tell me how can i create this effect on motion 3?
    http://www.ayatoweb.com/aetips_e/ae17_mov05e.html
    thanks

    Use the bezier tool to create your shapes, give the shapes an Airbrush outline. Then apply a Write On behavior to each shape. Position the shapes in the timeline so they appear sequentially. To achieve the zooming out effect, you can either scale the whole group, or convert the group to 3D and use the camera to zoom out.

  • How to give manual font path location when document opening?

    Hi,
    I want to know how to give manual path location for fonts when document opening like LinoType FontExplorerX, Font Book, UTS. Please Help me its very urgent
    Thanks

    Hi, I am doing the code likthis,please give the solution.
    SQL> create or replace procedure insProc(xmlDoc IN CLOB, tableName IN VARCHAR2) is
    2 insCtx DBMS_XMLSave.ctxType;
    3 l_ctx dbms_xmlsave.ctxtype;
    4 rows number;
    5 begin
    6 insCtx := DBMS_XMLSave.newContext(tableName); -- get the context handle
    7 rows := DBMS_XMLSave.insertXML(insCtx,xmlDoc); -- this inserts the document
    8 DBMS_XMLSave.closeContext(insCtx); -- this closes the handle
    9 end;
    10 /
    Procedure created.
    SQL> begin
    2 insProc('/usr/tmp/ROWSET.xml', 'emp');
    3 end;
    4 /
    begin
    ERROR at line 1:
    ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException:
    Start of root element expected.
    ORA-06512: at "SYS.DBMS_XMLSAVE", line 65
    ORA-06512: at "SCOTT.INSPROC", line 7
    ORA-06512: at line 2
    Kishore B

  • How to give two spaces after new order in alv

    hi
    my issue is after every new order number they need two blank spaces, i know the procedure of giving new page for every new order but they need only two blank lines. (This is in ALV List format).
    second thing is how to give footer
    thanks

    hi
    use this variant of appendf for inserting blank lines
    Append INITIAL LINE TO ITAB.
    Effect
    Appends a new line to the end of the internal table itab. You can only use this variant with index tables (standard or sorted table).
    If you specify wa TO , the new line is taken from the contents of the explicitly specified work area wa.
    If you use INITIAL LINE TO, a line filled with the correct initial value for the type is added.
    If the part before itab is omitted, the new line is taken from the header line of the internal table itab.
    If you use the ASSIGNING <fs> addition, the field symbol, <wa>, points to the line you have just appended. If you use the REFERENCE INTO ref addition, the data reference, dref, is filled with the reference of the line you have just appended.
    If the target table itab is a SORTED TABLE, it must be sorted correctly after the append, otherwise a runtime error results.
    After the statement has been executed, the system field SY-TABIX is filled with the index of the last line in the table.
    Cheers
    Snehi

  • Photoshop CS3: How to Get This "Retro" Effect!

    OK, I've been seeing this REALLY awesome retro look on images and am not sure how to do it! Any of you know how? Here is a link to a gallery that shows this type of effect: (you'll have to scroll over to image 3)
    http://www.stephcarson.com/wedding/wedding1/
    Go to image number 3 (3/40)
    thank you in advance!

    Hi Jacalyn,
    Here's one way (among many) to accomplish the effect in 2 minutes or less.
    Work from a COPY of your original.
    First, using hue/saturation, reduce the saturation to give a "faded" effect.
    Add a new layer; fill that layer with the color of the "tint" you want to
    apply. Change the blending mode for that layer to "Color" and adjust the
    opacity to suit.
    For the irregular vignette, add another layer and fill it with the dark tone
    you want for the vignette. Add a layer mask filled with white. With a very
    large, soft brush, paint on the mask with black to allow the center to
    become visible.
    When done, flatten & save in whatever format you wish -- or save it with the
    layers intact as a PSD if you think you may want to make more changes.
    As I said, there are other ways to accomplish this. There are always
    multiple ways in Photoshop, but this is quick & dirty.
    Trez

  • How to Rotating the Bulge effect....   Stumped

    I was looking at a tutorial
    http://library.creativecow.net/articles/rabinowitz_aharon/displacement1/video-tutorial.php
    on using the displacement effect.  I started experimenting on my own using the Bulge effect to animate the layer that is to be used as the displacement source.  If you want to follow exactly what I was working with, it was number 4, the Expand Output composition.
    I applied the bulge effecty to the Test Layer with the setting of Horizontal Radius 33; Vertical Radius 167, and a Bulge Height of 4.  I animated the effect by setting keyframes for the Bulge Center.  Then I duplicated the effect and changed the Horizontal Radius to 33 and the Vertical Radius to 167.  What I ended up with was a  + (Plus sign) looking shape that animated over the layer, which is what I wanted.  I precomposed the layer and used it as the displacement map layer.
    But then I wanted the rotate the Plus sign so that it would be like and "X" instead. but there is no way to adjust for that in the Bulge controlls.  So I applied the Transform effect to the Test Layer to rotate it but I rotates the whole layer including the word Test, I got the X shape that I was looking for but I did not want to put the Test on a 45 degree slant.
    Any suggestions on how to rotate the Bulge effect.  I thought that it may have something to do with the Pin All Edges, I didnt see anything change with it on or off.
    Cris

    Unfortunately there is no intuitive way to do this. It's one more time where you will have to pre-compose. Rotatte the footage in teh pre-comp, apply the bulge on top of it using an adjustment layer. Put the pre-comp in teh main comp, then un-rotate it. I believe that will give you the kind of distortion I think you are looking for.
    Mylenium

  • How do I apply special effects to a track when I keep getting error message that "Could not find layout Default Reverb GB"?

    How do I apply special effects to a track in GarageBand when I keep getting error message that says"Could not find layout Default Reverb GB"?

    I go to  Applications to see if
    GarageBand has changed and dthere is no change, still 1.42GB of file size ‹
    no evidence of the 10+ GB that the installer told me I was downloading, no
    evidence in my download folder that I downloded anything, and most
    important, when I click on ³Effects² I¹m back to the same error  message.
    I¹ve been at this now for about 3 hours.
    Downloading the extra content will take a very long time.
    When the download has finished, the prompt for the password will appear and the installer will continue to run in the background.
    Let t run. As long as GarageBand is still installing, it will give a warning, when you try to quit.
    When you can quit GarageBand without a warning, restart your Mac.
    The size of the GarageBand application will not change, but you should be seeing more loops. They are installed in the System Library, and the folder "Library" on your Macintosh HD should by now be 10GB larger.

  • How do you add a effect to a certain part of a track, not the whole track itself, how do you add a effect to a certain part of a track, not the whole track itself, how do you add a effect to a certain part of a track, not the whole track itself

    How can i add echo to vocals only on certain parts of the vocal without it effecting the whole vocal track itself?

    You can only do this in newer versions of Garageband (5 & 6). 
    Here's a brief tutorial::
    http://audio.tutsplus.com/tutorials/production/how-to-give-life-to-garageband-tu nes-with-automation/
    Or, you can simply do an old-fashioned volume cross-fade between identical tracks:
    http://www.thegaragedoor.com/tutorials/automation.html

  • How do I get more effects in my action box?  I am only showing a few, like BOTTOM BORDERS, LOSE WEIGHT AND SPECIAL EFFECTS. That is all. The turotials I've checked into all show a long list of effects in the actions box. If anyone could help, I appreciate

    How do I get more effects in my action box? I am only showing a few, like "Bottom Borders, Losing Weight, Resize and Crop, and Special Effects. And they do not list but a few effects. When I have watched the tutorials, they are showing a long list of effects in the action box. (with a side space bar)  I do not.  When I have clicked on the little arrow at top, and clicked "Load Actions", a box comes up, but it is blank,saying "no items match your search".  I'm lost!  If someone could help, it would be much appreciated!  I would like to start using this.
    Thank you. 

    Apple Computer Customer Relations:
    1-512-674-2500

Maybe you are looking for