Trying to compile a GUI program with ActionEvent and Color/Graphics

Hey, I am trying to compile a program that where I press a button it designs/displays a picture. I have the first part that shows the button, but I can''t get the second part of it. Any suggestions on what to do? Here is the part of the code that I am unsure about, the idea is to get that to design a picture:
private class ButtonHandler implements ActionListener
          public void actionPerformed( ActionEvent event )
     }

Heres the code in order to give a better idea of what I am trying to do:
import java.awt.FlowLayout;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JFrame;
import javax.swing.JButton;
public class Game extends JFrame
     private JLabel greeting; // greets user and gives initial instructions
     private JButton startGame; // start game button
     private JButton highScore; // displays high scores
     private JButton exitGame; // exits game
     // adds buttons to JFrame
     public Game()
          super( "Game" );
          setLayout( new FlowLayout() ); // set frame layout
          greeting = new JLabel( "Make selection..." );
          add( greeting );           
          startGame = new JButton( "Start Playing" );
          add( startGame );
          highScore = new JButton( "View High Scores" );
          add( highScore );
          exitGame = new JButton( "Exit Game" );
          add( exitGame );
          ButtonHandler handler = new ButtonHandler();
          startGame.addActionListener( handler );
     private class ButtonHandler implements ActionListener
          public void actionPerformed( ActionEvent event )
          public void paintComponent( Graphics g )
super.paintComponent( g );
g.setColor( Color.RED );
g.fillOval( 10, 10, 200, 200 );
}

Similar Messages

  • HT1848 I'm trying to sync my ipad mini with itunes and i get an error message '' there is no free space on your ipad mini''..... any ideas on how to empty some space on ipad mini manually? currently i run on 6.0.2

    I'm trying to sync my ipad mini with itunes and i get an error message '' there is no free space on your ipad mini''..... any ideas on how to empty some space on ipad mini manually? currently i run on 6.0.2

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • Trying to make a purchase online with Skype and is telling me to contact you guys

    Trying to make a purchase online with Skype and is telling me to contact you guys

    We are fellow users here on these forums - if you are getting a message to contact iTunes Support then you can do so via this link and ask them for help : http://www.apple.com/support/itunes/contact/ , then click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How do I sync Google contacts.I've tried opening Address Book, clicking "sync with Google"  and clicking onSync icon. But no luck

    How do I sync Google contacts.I've tried opening Address Book, clicking "sync with Google"  and clicking Sync icon. But no luck

    just enable iCloud sync and then configure, setup and then disable it. Re-setup Google and it will work

  • Trying to compile a C#-program using NI-Vision

    Hello,
    i have zip-file from a colleague which contains a C#-program that uses NI-Vision 8.5.
    The project used to work and i have to make changes to the code but currently i am just trying to compile the old code.
    System: Windows XP
    Installed Software:
    - Microsoft Visual C#2008 Express Edition
    - Ni Vision Development Module 8.5
    - IC Capture 2.0 (SW from the Camera)
    - IC Imaging Control 3.0 (SW from the Camera)
    When trying to compile the project it says 30 errors with:
    "Type or Namespace "NationalInstruments" not found"
    When checking the Verweise (see screenshot) then there is one line marked:
    NationalInstruments.AxCWIMAQControlsLib.Interop
    So i think this is the only thing that is missing that i can compile the program.
    But how can i add it?
    When i check the available Verweise then there are a lot of NationInstruments-things but all with other names.
    What do i have to do?
    Thanks for all help
    Attachments:
    Eins.jpg ‏11 KB
    zwei.jpg ‏25 KB
    drei.jpg ‏45 KB

    Hi Aurelie,
    thank you for the tips.
    I am sure that it is nit DotNet 4 because it is compiled with C#2008 (which cannot use 4.0).
    The namespace NationInstrument is found but not the marked Reference.
    Meanwhile i deleted the missing reference and added another. Now i can compile without errors.
    The program is still not running but i think this is because the camera-driver is missing...
    But i still dont know how my collegue inserted this now missing reference.
    TM

  • Problem with compiling STL using program with Forte C++ 6 update 1 in compat mode

    I try to compile SGI STL using program with Forte C++ 6 update 1 and I get an errror
    ld -L/opt/SUNWspro/WS6U1/lib -liostream test.o -o test
    Undefined first referenced
    symbol in file
    __0oNIostream_initctv test.o
    __0oNIostream_initdtv test.o
    Iostream_init - declared as a static class CC4/iostream.h, but nm libiostream.a produce
    __1cNIostream_init2T6M_v_
    __1cNIostream_init2t6M_v_
    and program can't link.
    What's wrong?
    Thank you for any comments

    Hi!
    I experienced the same problem and the solution looks like the following: in sunpro6.mak file there is a variable STL_INCL that has the following value: -I. -I${PWD}/../stlport
    Change that to -I. -I${PWD}/../stlport/SC5 and the problem vanishes. The reason is that stlport/SC5 contains files *.SUNWCCh which are used by SUNpro C++ compiler as standard headers and contain correct STLPort namespace information.
    Regars,
    Art

  • GUI Programming with ABAP - Chapter 9

    I am working my way through the ABAP Objects  (Keller/Krueger) book, doing all the exercises, re-entering all the programs for learning purposes.  I get to Chapter 9, and the package I am working with has moved form Z_ABAP_BOOK to SABAPDEMOS.  There are examples there, but when I try to edit any of them, I get a "Register Object" dialog box, asking me for an Access Key for the Demosystem installation.  Where do I find this key?  Is this the SAP License key, or something else?

    Marcelo,
    Copy the program.  Of course.  I really appreciate someone trying to answer the question, and since you started, I hope you can help me until it is finished.
    Now, how exactly do I do that?  Copy the program?  And when I say 'exactly', I really, really mean specific.  Because, the only work I have ever done with SAP/ABAP is with the book and the downloaded software.  I have not worked with different 'packages'.
    Please, step by step.  Baby steps.
    Here's what I tried and what doesn't work.  I tried to right-click the program DEMO_DYNPRO in the SABAPDEMOS package.  One of the options is 'Copy'.  That brings up a dialog box, but looks as if it only copies the program within the same package.  If I try to go further, by making a unique 'to' program name, it asks me for the access key.  Same as my first problem.
    If I rightclick on the DEMO_DYNPRO program and go down to the 'Other Functions', there is 'Change Package Assignment' option.  This sounds hopeful, so I tried it.  I get a dialog box that says 'Reassign Object DEMO_DYNPRO'.  in the New Package field, I choose Z_ABAP_BOOK.  The error I get is 'Package in non-original system only modifiable with Organizer tools'. 
    I pull up the Long Text, and it tells me to use the Transport Organizer Tools.  Lucky for me, that message can be clicked and it actually OPENS the Transport Organizer Tools.  The message in the long text tells me to looks SPECIFICALLY for 'Change object directory entries of objects'.  There is no option with that SPECIFIC title.
    There is a 'Change Object Directory Entries' and a 'Change Object Directory Entries of Objects IN A REQUEST'.
    I tried the first one.  In the next screen that appears, I put DEMO_DYNPRO in the Program field, and put SABAPDEMOS both FROM and TO under Further Restrictions / Package and pressed F8 (execute).  This shows the entries in the SABAPDEMOS Package.  I can find the DEMO_DYNPRO in the list, and I can use the little icon that says Select/Deselect.  This highlights the program I want in yellow.  Looking around, I was able to find under the Objects Menu, there is an option to Change Object Directory Entry.  I change the Package to say Z_ABAP_BOOK and the Person Responsible to say BCUSER.  I press the save icon and the error I get is 'SAP object Prog DEMO_DYNPRO cannot be assigned to package Z_ABAP_BOOK.
    So, am I going about this totally incorrectly?  Or am I close?  Please tell me exactly what to do.

  • Running a GUI program with no X?

    Hi,
    I want to run a GUI program on my server, which has no X installed. Of course, the program would normally not run since it needs X (GUI only). I don't really need to be directly using this software, it just needs to run. Anybody here knows if there is any way to fool it into thinking X is there, so it'll still run on my server, preferably as a service in the background?
    PS
    I probably need the same thing for sound too, no alsa or pulse either.
    Any  help's appriciated.

    I probably owe you guys an explanetion: The program in question is Skype. I'm sick and tierd of having skype steal recources when all my other IMing is done in bitlbee. That's why I came up with the following solution: I've done some reading, and turns out skype has a bitlbee plugin.
    However, that plugin uses the skype API which means I can't get around having skype. So, I decided to try the following setup: Run a bitlbee server from my home server. Have skype sorta just run in there doing nothing, and use the bitlebee plugin so I can connect with my own computer and use skype with bitlbee (Note: this is so I can chat with friends, not so I can video / audio chat so I don't care about those features). Basicly that was my idea and i'm exploring the posibility. Skype sadly has no deamon mode, but it does offer a shell pipe login so I'll start skype in my server, and do that setup. Of course now that I see i'll need to install x no matter what i'm not sure if it's worth it. I don't need X on my server for any other purpuse and X will steal recources from my server. I do however love not needing a skype client nativly. Anyone has any experiance / ideas / advice about my idea?
    Stalafin wrote:
    Greenstuff wrote:
    Hi,
    I want to run a GUI program on my server, which has no X installed. Of course, the program would normally not run since it needs X (GUI only). I don't really need to be directly using this software, it just needs to run. Anybody here knows if there is any way to fool it into thinking X is there, so it'll still run on my server, preferably as a service in the background?
    PS
    I probably need the same thing for sound too, no alsa or pulse either.
    Any  help's appriciated.
    Wut? You want to output sound without anything that is able to output sound? Is it me or is that just plain weird....? o.O
    I realize it sounds comfusing but Skype needs somewhere to dump sound apperantly (I found that out on my resharch). So I need a way to fool it into thinking there's such a device.
    Last edited by Greenstuff (2009-11-03 21:24:29)

  • Trying to do something very strange with layouts and painting components

    I'm trying to do something very strange with changing the layout of a container, then painting it to a bufferedImage and changing it back again so nothing has changed. However, I am unable to get the image i want of this container in a new layout. Consider it a preview function of the different layouts. Anyway. I've tried everything i know about swing and have come up empty. There is probably a better way to do what i am trying to do, i just don't know how.
    If someone could have a look perhaps and help me out i would be much appreciative.
    Here is a self contained small demo of my conundrum.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.BoxLayout;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.border.LineBorder;
    // what is should do is when you click on the button "click me" it should place a image on the panel of the buttons in a
    // horizontal fashion. Instead it shows the size that the image should be, but there is no image.
    public class ChangeLayoutAndPaint
         private static JPanel panel;
         private static JLabel label;
         public static void main(String[] args)
              // the panel spread out vertically
              panel = new JPanel();
              panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
              // the buttons in the panel
              JButton b1, b2, b3;
              panel.add(b1 = new JButton("One"));
              panel.add(b2 = new JButton("Two"));
              panel.add(b3 = new JButton("Three"));
              b1.setEnabled(false);
              b2.setEnabled(false);
              b3.setEnabled(false);
              // the label with a border around it to show size in a temp panel with flowlayout to not stuff around
              // with the actual size we want.
              JPanel thingy = new JPanel();
              label = new JLabel();
              label.setBorder(new LineBorder(Color.black));
              thingy.add(label);
              // the button to make things go
              JButton button = new JButton("click me");
              button.addActionListener(new ActionListener(){
                   public void actionPerformed(ActionEvent e)
                        //change layout
                        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
                        panel.doLayout();
                        //get image
                        BufferedImage image = new BufferedImage(panel.getPreferredSize().width, panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
                        Graphics2D g = image.createGraphics();
                        panel.paintComponents(g);
                        g.dispose();
                        //set icon of jlabel
                        label.setIcon(new ImageIcon(image));
                        //change back
                        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
                        panel.doLayout();
              // the frame
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setSize(400,200);
              frame.setLocation(100,100);
              frame.getContentPane().add(panel, BorderLayout.NORTH);
              frame.getContentPane().add(thingy, BorderLayout.CENTER);
              frame.getContentPane().add(button, BorderLayout.SOUTH);
              frame.setVisible(true);
    }

    Looks like you didn't read the API for Container#doLayout().
    Causes this container to lay out its components. Most programs should not call this method directly, but should invoke the validate method instead.
    There's also a concurrency issue here in that the panel's components may be painted to the image before revalidation completes. And your GUI, like any Swing GUI, should be constructed and shown on the EDT.
    Try this for size -- it could be better, but I've made the minimum possible changes in your code:import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Graphics2D;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.BoxLayout;
    import javax.swing.ImageIcon;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingUtilities;
    import javax.swing.border.LineBorder;
    public class ChangeLayoutAndPaint {
      private static JPanel panel;
      private static JLabel label;
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            // the panel spread out vertically
            panel = new JPanel();
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            // the buttons in the panel
            JButton b1, b2, b3;
            panel.add(b1 = new JButton("One"));
            panel.add(b2 = new JButton("Two"));
            panel.add(b3 = new JButton("Three"));
            b1.setEnabled(false);
            b2.setEnabled(false);
            b3.setEnabled(false);
            // the label with a border around it to show size in a temp panel with flowlayout to not stuff around
            // with the actual size we want.
            JPanel thingy = new JPanel();
            label = new JLabel();
            // label.setBorder(new LineBorder(Color.black));
            thingy.add(label);
            // the button to make things go
            JButton button = new JButton("click me");
            button.addActionListener(new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                //change layout
                panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
                //panel.doLayout();
                panel.revalidate();
                SwingUtilities.invokeLater(new Runnable() {
                  @Override
                  public void run() {
                    //get image
                    BufferedImage image = new BufferedImage(panel.getPreferredSize().width,
                        panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
                    Graphics2D g = image.createGraphics();
                    panel.paintComponents(g);
                    g.dispose();
                    //set icon of jlabel
                    label.setIcon(new ImageIcon(image));
                    //change back
                    panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
                    //panel.doLayout();
                    panel.revalidate();
            // the frame
            JFrame frame = new JFrame();
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setSize(400, 200);
            frame.setLocation(100, 100);
            frame.getContentPane().add(panel, BorderLayout.NORTH);
            frame.getContentPane().add(thingy, BorderLayout.CENTER);
            frame.getContentPane().add(button, BorderLayout.SOUTH);
            frame.setVisible(true);
    }db
    edit I prefer this:import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.image.BufferedImage;
    import javax.swing.*;
    public class LayoutAndPaint {
      JPanel panel;
      JLabel label;
      public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            new LayoutAndPaint().makeUI();
      public void makeUI() {
        JButton one = new JButton("One");
        JButton two = new JButton("Two");
        JButton three = new JButton("Three");
        one.setEnabled(false);
        two.setEnabled(false);
        three.setEnabled(false);
        panel = new JPanel();
        panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
        panel.add(one);
        panel.add(two);
        panel.add(three);
        label = new JLabel();
        JButton button = new JButton("Click");
        button.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            layoutAndPaint();
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400, 400);
        frame.add(panel, BorderLayout.NORTH);
        frame.add(label, BorderLayout.CENTER);
        frame.add(button, BorderLayout.SOUTH);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      private void layoutAndPaint() {
        panel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));
        panel.revalidate();
        SwingUtilities.invokeLater(new Runnable() {
          @Override
          public void run() {
            BufferedImage image = new BufferedImage(panel.getPreferredSize().width,
                panel.getPreferredSize().height, BufferedImage.TYPE_INT_ARGB);
            Graphics g = image.createGraphics();
            panel.paintComponents(g);
            g.dispose();
            label.setIcon(new ImageIcon(image));
            panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
            panel.revalidate();
    }db
    Edited by: DarrylBurke

  • I am trying to use sync outlook 2013 with icloud and am receiving this error - Setup can't continue because Outlook isn't configured to have a default profile.  Check your Outlook settings and try again - can anyone help me out

    i am trying to sync outlook 2013 with icloud and am receiving this error - Setup can't continue because Outlook isn't configured to have a default profile.  Check your Outlook settings and try again - can anyone help me out

    Here are two threads you may want to review. I'm sure there are others. Good luck!
    https://discussions.apple.com/thread/3427840?start=0&tstart=0
    http://www.slipstick.com/outlook/icloud-outlook-problems-syncing-calendar/

  • Inserting a Gui program using JFrames and JPanel

    I'm trying to insert a chat program into a game that I've created! The chat program is using JFrames and JPanels. I want to insert this into a GridLayout and Panel. How can I go about doing this?

    whatever is in the frame's contentPane now, you add to a separate JPanel.
    you also add your chat stuff to the separate panel
    the separate panel is added to the frame as the content pane

  • Trying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.

    rying to get Photoshop CS4 functional with Mavericks and an Epson 3880 printer. CS4 fails to send a file to the print queue. Have reinstalled the Epson 3880 driver for Mavericks. All looks good but no file is sent.
    Does anyone know how to fix this?

    What EXACT version of Photoshop CS4 are you running?  You should be on Photoshop CS4 v 11.0.2.
    Also run Apple's software update to see whether it offers you the latest Epson update:
    Printer Driver v9.33
    Epson Stylus Pro 3880, Drivers & Downloads - Technical Support - Epson America, Inc.
    MOST IMPORTANTLY:  have Photoshop re-create its own Preferences:
    To re-create the preferences files for Photoshop, start the application while holding down Ctrl+Alt+Shift (Windows) or Command+Option+Shift (Mac OS). Then, click Yes to the message, "Delete the Adobe Photoshop Settings file?"
    Note: If this process doesn't work for you while you're using a wireless (Bluetooth) keyboard, attach a wired keyboard and retry.
    Important: If you re-create the preferences by manually deleting the Adobe Photoshop CS6 Settings file, make sure that you only delete that file. If you delete the entire settings folder, you also delete any unsaved actions or presets.
    Reinstalling Photoshop does not remove the preferences file. Before reinstalling Photoshop, re-create your preferences.
    NEW Video! Julieanne Kost created a video that takes you through two ways of resetting your Photoshop preferences. The manual preference file removal method is between 0:00 - 5:05. The keyboard shortcut method is between 5:05 - 8:18. The video is located here:
    How to Reset Photoshop CS6’s Preferences File | The Complete Picture with Julieanne Kost | Adobe TV
    Mac OS
    Important: Apple made the user library folder hidden by default with the release of Mac OS X 10.7. If  you require access to files in the hidden library folder to perform Adobe-related troubleshooting, see How to access hidden user library files.

  • Work Flow with FCP and color correction

    I am looking for a decent workflow between FCP and motion when I need to apply color correction to the clips.
    I have a goup of clips in FCP that I would like to send to motion, animate them and send them back to FCP. Problem is I want to use FCP for the color correction- nicer than motion's. The, all bad options I have come up with are:
    1. color correct in FCP and then send to Motion- will not work because filters are not applied in send.
    2. Export the clips as one QT self containned movie- I lose the clip partitioning.
    3. Exports individual clips to QT then into Motion- I lose the clip ordering
    4. Color correct after I get back into FCP from Motion- clip boundaries are lost making applying color correction harder.
    Any ideas?
    Rick

    I've done this two ways - both variations on the methods you have outlined. First and simplest and one I used last week on a PSP project was to apply the color correction to the Motion clip (.motn file) after it came back from Motion. This is simple and easy, but if you've done titling, you may not want to color correct that.
    The second is as you said to render and export a self contained movie, then import it and copy it onto the timeline above the original clip that produced it, thus (at least organizationally) maintaining a connection between them. I then send the quicktime to Motion.
    Sorry I cannot think of another better way of doing it...
    Patrick

  • Apple MacBook Air 11 inch, 13 inch, or Dell XPS 14 with i7 and nvidia graphics card?

    I am a college student looking for either a MacBook Air 11 inch or a MacBook Air 13 inch. I was looking at the Dell XPS 14 with i7 processor and nvidia graphics card. It is similar in price to an Apple MacBook Air 11 inch. I will mainly use the laptop for browsing, a bit of Minecraft, watching videos (netflix/downloading movies), presentations, and documents. I would also need it to be lightweight because I will be carrying it around campus. I cannot choose between these three.....any ideas? I have an iPhone 5 and iPad with retina display (that is what I use currently and it is not working out). I just saw the WWDC14 and I saw how all my devices could connect to the Mac flawlessly.
    Please let me know,
    Thanks

    I recommend the macbook 13" retina. Yes, it is expensive, but if you pair it with 8GB of memory, you should be futureproof for the next 5 years minimum. Why not the air.
    Currently the air sports thunderbolt 1, This is super outdated. Macbook pro has thunderbolt 2 which allows you to daisy chain monitors via display port 1.2. Macbook Air sports display port 1.1a which only allows daisy chaining amoungst thunderbolt monitors which are expensive. $1000 minimum per a monitor where as you could pickup a daisy chainable displayport 1.2 dell monitor for $200. The only reason I am severely regretting my 13" Air.
    The screen, yes, in a few years all screens will sport retina resolutions. It makes a big difference when reading and typing for long periods of time. Text is more clear. Also, 11" is way too small. If you want something that small, get an Ipad Air.
    Battery life, 9 hours should still be enough to get you through the day. I go to school and I could only top out at 7 hours usage at most.
    Gaming, Although I dont recommend gaming on any laptop because laptops aren't meant so much for gaming. Mostly because the heat generated from it kills the life of your laptop. It is up to 20% faster than the air.
    Weight, half a pound off the 13" AIR is not a big deal. Actually the retina is smaller in height and width, so better center of balance when using it on your lap and the black bezel is less distracting.
    Processor, its 10% faster in overall processing speeds generally.
    Dont forget to purchase 2 year extended warranty. Buy that from bhphoto for 180 bucks. No tax and its way cheaper than apple.
    If you still want the air after that, consider getting the 13". It comes with sd card slot, it is handy when you run out of space. And its 10% faster than the 11" even though they have the same processor. The processor's performance is based on the thermal threshold of the computer. The hotter it gets, the slower the computer gets to cool the processor down.
    If you choose the Macbook Pro 13" RETINA(Not the $999 version with the DVD Drive), if you can, wait till late october when they update the computer with better hardware. Well... if you can.

  • Can't compile old Cobol Programs with Oracle9i Pro*Cobol.

    I'm a Cobol and Oracle greenhorn - so please apologise my question.
    Here are the details:
    We want to switch our db from
    Oracle8i Enterprise Edition Release 8.1.7.0.0
    to
    Oracle9i Enterprise Edition Release 9.2.0.4.0
    If I have the "Oracle 8i client" installed on my developing system (using procob precompiler) my program compiles without problems. Connecting to our old 8i db works fine.
    On connecting to our new 9i db my program crashes on the first EXEC SQL statement with:
    114 Attempt to access item beyond bounds of memory
    So I have installed the "Oracle 9i client" to use the new precompiler
    Pro*COBOL: Release 9.2.0.1.0
    BUT now I can't execute my program because procob inserts some CALL "ORASQL8" which doesn't exist in my Oracle installation. Maybe ORASQL9 would work, because there are some files with this name in my Oracle dir.
    How can I make my NET Express Version 3.1.11 Service Pack 1 work together with Oracle9i?
    Here are my current (old) Precompilersettings from the file cobol.dir:
    p(cobsql) csqlt=ora8 cbl2ora8 sqldebug end-c ireclen=132 oreclen=132 maxliteral=160 picx=varchar2 p(cp) sy endp copyext (pco,cbl,cpy,cob) osext(pco);
    This forum is my last resort. Maybe anyone can help?
    Thanks in advance
    lual

    ...solved by myself.
    After wasting a lot of time, i've found a quick and dirty solution...
    C:\oracle9i\bin\ORASQL9.DLL
    duplicated and renamed to ORASQL8.DLL
    C:\oracle9i\precomp\lib\msvc\oraSQL9.LIB
    duplicated and renamed to oraSQL8.LIB
    C:\oracle9i\precomp\lib\orasql9.lib
    duplicated and renamed to orasql8.lib
    ...now my old programs run again without errors.
    lual

Maybe you are looking for

  • Can i Sync my Sony Ericsson P990 to my Macbook

    I have searched the web and saw that the model isn´t supported by the system. is there any way that i can connect it??? i really need to ... So is apple going to update isync for new mobile phones soon???? please help me.... i am a really new user i

  • Changing up what happens at the 'select resource - queued' step

    Greetings! So, I'm curious .. we'd like to change how we do things regarding what happens at the select resource - queued step. Our current state is a series of business checks, place the call on hold, play CUCM MOH, take the call off hold, go back t

  • Network settings tab is blank

    Hi, I have connected a Compact Rio 9068 directly to my computer (HP EliteBook 840 G1, Windows 7), and the system appears in the tree under Remote systems in MAX. However, the problem is that I can only see information under the System Settings tab, w

  • SQL on Sybase

    Hi all, I'm a new user on JDBC and I use Sybase as my database. Could you please to be patient to me? Could you all help me please to solve my problem? My problem is when I tried to execute the sql statement that I wrote on DBArtisan 11.1 is work, bu

  • HT1535 how do i import an mp3 album as a whole in itunes? they are all as single songs in the itunes library

    how do i import my mp3 albums in itunes as album and not single songs?