Please give me your advice

please explain the concept of  in administration>general settings> inventory planning> backward, forward concept
can we do the ratio anlaysis  in sap b1 .if we can , please
explain procedure how we can do it.

During MRP run system takes into consideration the setting made in administration for inventory planning. Backward planning is general used when - Customer gives you the date of delivery. In such case, you need to plan your activities backward from the date of delivery. Whereas in case of forward planning, you plan when the material can be delivered.
SAP provides a reporting tool called XL Reporter. Where in you can perform all such activities. Pls go thru the material available on service.sap.com
Thanks,
Srikanth

Similar Messages

  • IPhoto and Aperture organization please give me your advice

    Well, decided to set up my account here as I see this forum is very helpful.
    I had all my photos organized in Iphoto, but because I bought a camera that shoots Raw decided to get a Aperture to edit my RAW pictures.
    But now I don't know what to do, because I don't want to end up with two libraries to take care, would like something more practical, and also would save space on my
    HD, anyone have any suggestions, how do you organize yourself if you have both?
    Thank you !

    Simply: Use Aperture. It will do just about everything that iPhoto will do, plus has much more powerful editing and organising tools. It is an excellent tool for working with RAWs, whereas iPhoto’s RAW support is pretty much tacked on.
    Then if there is something that iPhoto does that you want, you can share your Aperture Previews into iPhoto (File -> Show Aperture Library) and just darg the pics over.
    Regards
    TD

  • I'm trying to downgrade my storage on my ipod but when I chose my new storage i'm not able to complete the choice because the 'done' button doesn't do anything. can someone please give me some advice?

    I'm trying to downgrade my storage on my ipod but when I chose my new storage i'm not able to complete the choice because the 'done' button doesn't do anything. can someone please give me some advice?

    Are you choosing a different plan before tapping Done?
    To downgrade, you should be doing the following:
    Go to Settings > iCloud > Storage & Backup.
    Tap Change Storage Plan.
    Tap Downgrade Options and enter your Apple ID password.
    Choose a different plan to use when your current storage plan expires.
    Tap Done.

  • I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Question:
    I can not read any contents in my yahoo inbox messages? It is blank when i opened my message. Are there any setting or updated that i missed? Please give me some advices? Thank you. Phuong

    Hi AM_Kidd.
    Thanks for your reply.
    I have done a complete uninstall and re install of iTunes and all related apple programs from my laptop through control panel, add remove programs and also by going through program files and deleting all tracers of any left over folders remove programs may have missed.
    My apologies for forgetting to add this in my original post.
    Thanks again

  • I have downloaded DNG Profile Editor 1_0_4 and prepared a profile which I can not see in my Camera Raw 6.0 (I have photoshop CS5). Could you please give me an advice?

    I have downloaded DNG Profile Editor 1_0_4 and prepared a profile which I can not see in my Camera Raw 6.0 (I have photoshop CS5). Could you please give me an advice?

    Uninstall Trusteer software
    http://www.trusteer.com/support/uninstalling-rapport-mac-os-x
    Remove Sophos
    https://discussions.apple.com/message/21069437#21069437

  • Its working just fine but does it look good? Take a look and give me your advice!

    I got to say that this is my first finnished labview program, and  it's working fine, almost no problems. But i'm not that shure about
    this huge while loop with all its instructions. Normaly a while loop takes 1 ms to iterate once, but this loop takes more than one ms,
    I'm using another subVI to catch data up to 5 ms. / sample as output from measurement device to  the while loop in this Sub vi, and then from this sub VI i'm initializing the data value read from the Measurement device, to a global variable that i read in this huge while loop.  I belive that the subVI while loop iterates several times before the huge loop iterates once. Meaby thats why my graphs for the data are plotting more than one data at a time.
    Take a look and give your advice, it seems that all the measurements are well. And I don't really got problems with the program when running, exept from small delays when I switch the sample rates.
    Regards
    Zamzam 
    HFZ
    Attachments:
    WhileLoop.JPG ‏354 KB

    I agree with Titou.
    Wow!  That's an eye-full. 
    There are some functions like setting audio On / Off that may not need to be in there.  Or do they?  You'd have to describe what the loop is supposed to do.  Same comment for the indicator display settings on property nodes.  Do you intend to turn them on/off a number of times during an iteration of the loop?
    You should "divide & conquer".  By that I mean, use sub-vi's that are function specific.  As mentionned by Titou, you should have a look at the development guidelines.   Basically, now that you have a working loop, you can improve it by creating some sub-vi's, revisit some items that may  not need to be in the loop.  As a matter of fact, you could create some control & indicators and maybe transform the loop into a sub-vi as well. 
    There are many Case Statements that you could convert to sub-vi's and that way, you could eliminate the global variables by using indicators and wiring directly to them.
    However, I would have to say that the value for "Write Flow Data" might become unpredictable due to race conditions.  Revisit how the value(s) are set for that one.
    But it does look like you had some fun doing this one.  Which is the most important thing.  To have fun implementing solutions with LV.
    Happy wiring!
    JLV

  • Please give me your opinion

    Hi Guys,
    I was wondering if you can give me your opinion about this issue. My friend has a macboobk pro intel core duo 1.83 ghz 512mb ram and 80 gb 15" superdrive and he ask me if I want to trade it for my Macbook 2. ghz Intel core 2 duo , 1gb ram, superdrive, 80gb hd etccc...
    What do you guys think? is it worth it?
    Please advise
    Thanks

    If I were given this option, I'd go with no, only because I've formed an attachment with my macbook.
    However, all the specs on the computers can be upgraded, so if you do choose to make the trade, you can upgrade the memory & ram to your liking, just not the processor speed. If you take an in depth look at the differences between the core duo and the core 2 duo, you might see some that are things you wouldn't want to live without. I've heard that the c2d have the new 802.11n capabilities, while the cd do not. Just something more to take into consideration.
    Personally, I also like the 13.3 inch screen of my macbook (hence why I like it so much) better than the other size screens of other notebooks.
    When I first wanted to get a mac, I was looking at the MBP's, but then I saw the macbooks and my mind was set.
    It is true that your gaming experience and other graphic intensive programs will be better on the mbp, but honestly... I haven't come across anything that runs poorly on my macbook. So... I'd have to go with a no on the trade.
    Just my $.02

  • Urgent!!! please give me some advice

    i quite new in J2ME programming. i encountered a problem that my MIDlet cannot pass parameter to servlet. i had tried to not using os.flush(), but it's still not working. please give me some suggestion!
    MIDlet
    * Login.java
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.Connector;
    import javax.microedition.io.HttpConnection;
    import javax.microedition.io.StreamConnection;
    import java.io.DataOutputStream;
    import java.io.DataInputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.IOException;
    import java.util.*;
    public class Login extends MIDlet implements CommandListener {
    Display display;
    boolean commandAvailable;
    // String idPassword;
    CommandThread commandThread;
    Form inputForm;
    Form outputForm;
    TextField userid;
    TextField password;
    StringItem response;
    Command cmdExit;
    Command cmdOK;
    public void startApp() {
    display = Display.getDisplay(this);
    inputForm = new Form("Authorization");
    userid = new TextField("User",null,25, TextField.ANY);
    inputForm.append(userid);
    password = new TextField("Password",null, 15, TextField.PASSWORD);
    inputForm.append(password);
    cmdOK = new Command("OK",Command.SCREEN,1);
    cmdExit = new Command("Exit",Command.EXIT,1);
    inputForm.addCommand(cmdOK);
    inputForm.addCommand(cmdExit);
    inputForm.setCommandListener(this);
    outputForm = new Form("Student Option");
    response = new StringItem(null,null);
    outputForm.append(response);
    outputForm.addCommand(cmdExit);
    outputForm.setCommandListener(this);
    commandAvailable = false;
    commandThread = new CommandThread(this);
    commandThread.start();
    display.setCurrent(inputForm);
    public void pauseApp() {
    public void destroyApp(boolean unconditional) {
    public void commandAction(Command cmd, Displayable d) {
         if (cmd == cmdExit) {
    destroyApp(false);
    notifyDestroyed();
    else if (cmd == cmdOK)
    synchronized (this) {
    commandAvailable = true;
    notify();
    class CommandThread extends Thread {
    MIDlet parent;
    boolean exit = false;
    public CommandThread(MIDlet parent) {
    this.parent = parent;
    public void run() {
    while (true) {
    synchronized(parent) {
    while(!commandAvailable) {
    try {
    parent.wait();
    catch (InterruptedException e) {
    commandAvailable = false;
    performLogin();
    public void performLogin() {
    HttpConnection conn = null;
    InputStream is = null;
    OutputStream os = null;
    byte[] receivedData = null;
    try {
    String url = getAppProperty("Login.URL");
    conn = (HttpConnection)Connector.open(url);
         byte[] postData = createPostData();
    conn.setRequestMethod(HttpConnection.POST);
    conn.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
         conn.setRequestProperty ( "Content-Length", Integer.toString (postData.length));
    // conn.setRequestProperty("Accept", "application/octet-stream" );
    conn.setRequestProperty("Connection", "close" );
    // byte[] postData = createPostData();
    System.out.println("postData="+postData);
    conn.setRequestProperty("Content-length",Integer.toString(postData.length));
         os = conn.openOutputStream();
         os.write(postData);
    for (int i=0;i<postData.length;i++)
              os.write(postData);
    //     os.flush();
         os.close();
         is = conn.openInputStream();
         String contentType = conn.getType();
    int len = (int)conn.getLength();
    if (len > 0) {
    receivedData = new byte[len];
    int nb = is.read(receivedData);
    else {
    receivedData = new byte[1024];
    int ch;
    len = 0;
    while ((ch = is.read()) != -1) {
    receivedData[len++] = (byte)ch;
    response.setText(new String(receivedData,0,len));
    display.setCurrent(outputForm);
    catch (IOException e) {
    System.out.println(e.getMessage());
    e.printStackTrace();
    finally {
    try {
    if (is != null) {
    is.close();
    if (os != null) {
    os.close();
    if (conn != null) {
    conn.close();
    catch (IOException e) {
    public byte[] createPostData() {
    StringBuffer sb = new StringBuffer();
    sb.append("userid=");
    sb.append(userid.getString());
    sb.append("&password=");
    sb.append(password.getString());
    System.out.println("sb = <" + sb.toString() + ">");
    return sb.toString().getBytes();
    servlet
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class LoginServlet extends HttpServlet {
    static final String dbURL = "jdbc:mysql://localhost/projectdb?" + "user=wongyuenmei&password=wongyuenmei";
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws IOException, ServletException {
    Connection conn = null;
    String nextJSP = null;
    try {
    Class.forName("org.gjt.mm.mysql.Driver");
    catch (ClassNotFoundException e) {
    throw new ServletException("Unable to load JDBC driver");
    try {
    String id = request.getParameter("userid").trim();
    String pass = request.getParameter("password").trim();
         if (id==null)
    String tempid=id;
    String temppass=pass;
    conn = DriverManager.getConnection(dbURL);
    Statement stmt = conn.createStatement();
    String query = "SELECT cno, idno " + "FROM student " + "WHERE idno = '" + id + "'AND password ='" + pass + "'";
    ResultSet rs = stmt.executeQuery(query);
    if (rs.next()) {
    StringBuffer fullName = new StringBuffer();
    fullName.append(rs.getString(1));
    fullName.append(" ");
    fullName.append(rs.getString(2));
    request.setAttribute ("fullName", fullName.toString());
    nextJSP = "/LoginOK.jsp";
    else {
         StringBuffer temptest = new StringBuffer();
         temptest.append(tempid);
         temptest.append(&temppass);
         request.setAttribute("temptest", temptest.toString());
    nextJSP = "/LoginFailed.jsp";
    conn.close();
    ServletConfig config = getServletConfig();
    ServletContext context = config.getServletContext();
    RequestDispatcher rd = context.getRequestDispatcher(nextJSP);
    rd.forward(request, response);
    catch (SQLException e) {
    throw new ServletException("SQL call failed");
    catch (Exception e) {
    throw new ServletException(e.getMessage());
    finally {
    if (conn != null) {
    try {
    conn.close();
    catch (SQLException e) {
    throw new ServletException("connection close failed");
    public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
    doPost(request, response);
    ur help is very appreciated!

    Still the same problem. All the parameter get by server are null.
    Using GET, and add parameter to url, everything is fine.
    encodedPostData = "E2EE_PAM_ID"+"="+E2EE_PAM_ID+"&"+"E2EE_USER_ID"+"=" E2EE_USER_ID"&"+"E2EE_USER_SEGUID"+"="+E2EE_USER_SEGUID+"&"+"E2EE_RPIN"+"="+E2EE_RPIN
    +"&LoginBtn=Login";
    c = (HttpConnection)Connector.open(request);
    c.setRequestMethod(HttpConnection.POST);
    c.setRequestProperty("User-Agent","Profile/MIDP-1.0 Configuration/CLDC-1.0");
    c.setRequestProperty("Content-Type:","application/x-www-form-urlencoded");
    os = c.openOutputStream();
    os.write(encodedPostData.getBytes());
    //os.flush();
    System.out.println(encodedPostData);
    rc = c.getResponseCode();
    if (rc != HttpConnection.HTTP_OK) {
    throw new IOException("HTTP response code: " + rc);
    is = c.openInputStream();
    ..........

  • Give me Your Advice

    Dear Guru
    iam searching a job, i need your help & advice. How can i prepare my self for interview. What are the things to be cleared.
    Because iam getting some Tensed in Interview, which attend previous interview, pls adivce me, to get job.
    No one i have friends with me in SAP, i have friend only in SDN.SAP.com.
    regards
    [email protected]

    Dear Mohmmad,
    I wish u all the best for future career in sap.
    I am advising as a friend First BE CONFIDENT OF YOURSELF.
    Do the Ground work i.e Prepare your self comfotable with basics and all concepts well and get perfection with practice in core areas like pricing,creditmanagement,master data,and document types,item categeories etc.
    Try to analyse the interviews attended  and take positively and plan for the best then sucess follows.
    Please be patient for ther results. wish u all the best
    With best regards
    natraj

  • Need help in Seding sound stream on UDP, please give me some advice!

    I'm a newbie in this. I try to do VoIP on mobile, and I did finish Register, Invite and Record voice in to output stream. But I don't know where to go next.
    I knew that most cell phone doesn't support RTSP, so it I must do it in UDP instead. But how? How to put Output Stream in UDP, and how to get it back?
    And I don't know how to put those things together.
    Please please, help me.
    Tanan
    from Thailand
    p = Manager.createPlayer("capture://audio?encoding=pcm&rate=8000&bits=16");
    p.realize();
    // Get the RecordControl, set the record stream,
    rc = (RecordControl)p.getControl("RecordControl");
    output = new ByteArrayOutputStream();
    rc.setRecordStream(output);
    rc.startRecord();
    p.start();

    Welcome to Discussions, ddalki_kiss!
    Most important thing first. You didn't list the "Boot ROM Version," which is after the Bus Speed in System Profiler. I ask due to the fact that, according to this Apple Support article:
    Firmware updates for Intel-based Macs
    your MacBook probably required the installation of this firmware update:
    MacBook EFI Firmware Update 1.1
    It isn't a question of whether or not that update was downloaded, but whether it was installed. Checking how System Profiler shows the "Boot ROM Version" is one way to find out if it was successfully installed. If it was not, download and install it, being careful to follow instructions and cautions.
    It is also getting very hot to the touch...
    First, the firmware update might help. Second, it is getting very hot due to the fans not being able to keep it cool enough despite running at higher speed. Can we assume that you are not using the MacBook as a laptop, but are following the cautions that it is a notebook and must have air circulation beneath it?
    ...sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    You should boot into safe mode:
    http://docs.info.apple.com/article.html?artnum=107392
    http://docs.info.apple.com/article.html?artnum=107393
    http://docs.info.apple.com/article.html?artnum=107394
    Booting into safe mode could be remedial for your MacBook. You should then restart your MacBook to return to normal use, as you will be unable to remain in safe mode and have normal use of your Mac.
    If you have further problems, or if you resolve the current ones, please repost:)
    Message was edited by: myhighway

  • There's Something Very Wrong With My Macbook... Please Give Me Some Advice

    I bought a new black macbook about 7 months ago:
    Here are the specs:
    Model Name: MacBook
    Model Identifier: MacBook2,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.16 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache (per processor): 4 MB
    Memory: 2 GB
    Bus Speed: 667 MHz
    Basically, the fan noise is getting incredibly loud and very whiny, even with just microsoft word on... It is also getting very hot to the touch... And apparently, the bottom part of my macbook (the case) has a defect- its slightly popped out... I never dropped my macbook and it has always been in a case so apparently I must have bought it like that... Also, the computer won't wake up from sleep mode sometimes, and sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    It has only been a couple of months and I've already been to the apple store about three times... I am a student so I don't have the time to send it in for the approx. 7 to 10 wait period... and I am concerned that if I do not send my computer in soon, the computer will crash and all my school work will go with it. I do not have an alternate computer and I will have no time to turn it in for repair until june... I do not know what to do... When I went to the apple store, they tested it and said that there was nothing wrong with the sound (however this only happens when it's taken in), I know for certain that there is something wrong with the fan noise... My suitemates and friends who have the same computer as I do, do not have this problem... What should I do? Is there any way I would be able to get this computer replaced? I really do not have the time to send it in for repairs... What should I do?? Any help would be appreciated... Thank You!

    Welcome to Discussions, ddalki_kiss!
    Most important thing first. You didn't list the "Boot ROM Version," which is after the Bus Speed in System Profiler. I ask due to the fact that, according to this Apple Support article:
    Firmware updates for Intel-based Macs
    your MacBook probably required the installation of this firmware update:
    MacBook EFI Firmware Update 1.1
    It isn't a question of whether or not that update was downloaded, but whether it was installed. Checking how System Profiler shows the "Boot ROM Version" is one way to find out if it was successfully installed. If it was not, download and install it, being careful to follow instructions and cautions.
    It is also getting very hot to the touch...
    First, the firmware update might help. Second, it is getting very hot due to the fans not being able to keep it cool enough despite running at higher speed. Can we assume that you are not using the MacBook as a laptop, but are following the cautions that it is a notebook and must have air circulation beneath it?
    ...sometimes when I push the power button to turn it on, all I see is a blank white/grey screen and nothing happens...
    You should boot into safe mode:
    http://docs.info.apple.com/article.html?artnum=107392
    http://docs.info.apple.com/article.html?artnum=107393
    http://docs.info.apple.com/article.html?artnum=107394
    Booting into safe mode could be remedial for your MacBook. You should then restart your MacBook to return to normal use, as you will be unable to remain in safe mode and have normal use of your Mac.
    If you have further problems, or if you resolve the current ones, please repost:)
    Message was edited by: myhighway

  • Please give me your guide how I can install the purchased program

    today I purchased on your company's website the acrobat program for conversion of pdf files into word or excel file.
    how can i find the program and how can i operate it?

    Hi Adowon,
    If you have purchased Acrobat Pro XI then please go through the given link: http://www.adobe.com/downloads.html?promoid=KAWQL, choose Acrobat from the list of Apps and select try to start downloading. At the time of installation enter the product key to activate it.
    If in case you purchased Acrobat Standard XI retail license then click on the link: https://www.adobe.com/account/account-orders.html#myrecentorders, sign in with your Adobe id and start downloading.
    For Volume licensing purchase log on to www.licensing.adobe.com and donload the software.
    Regards,
    Romit Sinha

  • Please Give Me Your Hands

    Here is my codes, I try to save the "drawing" Panel graphics into a jpg, and I can compile it, however, when I run it, system tell me" NullPointerException"!!!
    I'm out of ideas, Please help, Thank you So much!!!
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.*;
    import javax.imageio.*;
    import com.sun.image.codec.jpeg.*;
    import java.io.*;
    import java.awt.geom.*;
    public class test3 extends JFrame
         public test3()
              super("test");
              setSize(800, 600);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              drawingArea drawing = new drawingArea();
              Container c = getContentPane();
              c.add(drawing, BorderLayout.CENTER);
              int paneWidth = drawing.getWidth();
              int paneHeight = drawing.getHeight();
              BufferedImage buffer = new BufferedImage(600, 600, BufferedImage.TYPE_INT_RGB);
              buffer = (BufferedImage)drawing.createImage(paneWidth, paneHeight);
              Graphics graphic = buffer.getGraphics();
              if(graphic.getClipBounds()!=null)
                   graphic.setClip(0, 0, paneWidth, paneHeight);
              drawing.paint(graphic);
              try
                   File file = new File("test.jpg");
                   FileOutputStream out = new FileOutputStream(file);
                   JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
                   JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(buffer);
              encoder.setJPEGEncodeParam(param);
              param.setQuality(1.0f,false);
                   encoder.encode(buffer);
                   out.flush();
                   out.close();
              catch(IOException ioe)
                   System.out.println(ioe.toString() + "something wrong");
              catch(RasterFormatException rfe)
                   System.out.println(rfe.toString() + "rfe");
              setVisible(true);
         class drawingArea extends JPanel
              public void paintComponent(Graphics g)
                   Graphics2D g2D = (Graphics2D)g;
                   Rectangle2D.Float rect = new Rectangle2D.Float(50F, 50F, 20F, 20F);
                   g2D.draw(rect);
         public static void main(String args[])
              test3 t = new test3();
    }

    1 - the graphics context of a Component is null until the Component is realized, ie, until you call pack or setVisible on its top-level Container
    2 - you can make up a BufferedImage and save it without using a Component to show it
    3 - using a 'png' extension seems to give better results and a smaller file size than 'jpg'
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class ImageTest
        ImageTestPanel imagePanel;
        ImageTestUtility utility;
        BufferedImage image;
        public ImageTest()
            createImage();
            imagePanel = new ImageTestPanel();
            utility = new ImageTestUtility();
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(getUIPanel(), "North");
            f.getContentPane().add(imagePanel);
            f.setSize(400,400);
            f.setLocation(200,200);
            System.out.println("imagePanel graphics context before visible = " +
                                imagePanel.getGraphics());
            f.setVisible(true);
            System.out.println("imagePanel graphics context after realized = " +
                                imagePanel.getGraphics());
        private void createImage()
            int w = 200;
            int h = 200;
            image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = image.createGraphics();
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.white);
            g2.fillRect(0, 0, w, h);
            g2.setPaint(Color.blue);
            g2.draw(new Rectangle2D.Double(w/16, h/16, w*7/8, h*7/8));
            int dia = Math.min(w, h)/4;
            g2.setPaint(Color.red);
            g2.draw(new Ellipse2D.Double(w/2 - dia/2, h/2 - dia/2, dia, dia));
            g2.setPaint(Color.green.darker());
            g2.draw(new Line2D.Double(w/16, h*15/16, w*15/16, h/16));
            g2.dispose();
        private JPanel getUIPanel()
            final JButton
                saveComponent = new JButton("save component"),
                saveImage = new JButton("save image");
            ActionListener l = new ActionListener()
                public void actionPerformed(ActionEvent e)
                    JButton button = (JButton)e.getSource();
                    if(button == saveComponent)
                        utility.saveComponent(imagePanel);
                    if(button == saveImage)
                        utility.saveToFile(image);
            saveComponent.addActionListener(l);
            saveImage.addActionListener(l);
            JPanel panel = new JPanel();
            panel.add(saveComponent);
            panel.add(saveImage);
            return panel;
        public static void main(String[] args)
           new ImageTest();
    class ImageTestPanel extends JPanel
        public ImageTestPanel() { }
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            g2.setPaint(Color.red);
            g2.draw(new Rectangle2D.Float(50, 50, 20, 20));
    class ImageTestUtility
        public BufferedImage loadImage(String fileName)
            BufferedImage image = null;
            try
                URL url = getClass().getResource(fileName);
                image = ImageIO.read(url);
            catch(MalformedURLException mue)
                System.err.println("url: " + mue.getMessage());
            catch(IOException ioe)
                System.err.println("read: " + ioe.getMessage());
            return image;
        public void saveComponent(Component c)
            int w = c.getWidth();
            int h = c.getHeight();
            BufferedImage bi = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);
            Graphics2D g2 = bi.createGraphics();
            c.paint(g2);
            g2.dispose();
            saveToFile(bi);
        public void saveToFile(BufferedImage image)
            try
                ImageIO.write(image, "jpg", new File("imageTest.jpg"));
            catch(IOException ioe)
                System.err.println("write: " + ioe.getMessage());
    }

  • Please give me your opinion... about tools for develop web service

    If you would like to choose the tool for develop web service.
    what is the most important feature that you will consider,
    Please help me to order these topic from the most to the least
    a. creating web service
    b. creating web service client
    c. searching web service to UDDI registry
    d. publish web service to UDDI registry
    e. connecting to database management systems.
    f. license fee
    g.system requirements
    h. Installation procedures
    thank you very much for your opinion. I will keep your information for my research....
    :)

    Hi Fangnaka,
    You can use JWDSP2.0 + Tomcat 5.X +Jdk1.5 to develop and deploy webservice.
    Better IDEA are Intellij or Eclipse for webservice code development.
    Cheers
    Rajesh R

  • Hi, I have a MacBook and all of a sudden my screen it froze so I turn it off yes. Now, I cannot turn on my computer even though the battery,it is full charged. Can you please give me your opinions of why this is please? Thank you so very much

    Can you please, anyone tell me your opinion of why all of a sudden my two yr old MacBook was wrking lovely but now I cannot turn it on, even though my battery is fully charged,
    Thank you,
    Isabella

    If Niel's suggestions don't work then also try:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    Resetting your Mac's PRAM and NVRAM

Maybe you are looking for