Small KeyEvent Problem

Ok, here is my problem. I am trying to create an etch a sketch program. I can't seem to figure out how to make the line move (up,down,left,right). How bout I just post the code and show ya:
          public void keyPressed(KeyEvent ke)
               int code = ke.getKeyCode();
               if(ke.isShiftDown())
                    setForeground(Color.blue);
               else
                    setForeground(panel.getBackground());
               addWindowListener(new WindowAdapter()
               {     public void windowStateChanged(WindowEvent e)
                    {     panel.repaint();          }     }     );
               if(code == ke.VK_UP)
                    lineStart.move(up?);
               else if(code == ke.VK_DOWN)
                    lineStart.move(down?);
               else if(code == ke.VK_RIGHT)
                    lineStart.move(right?);
               else if(code == ke.VK_LEFT)
                    lineStart.move(left?);
     so basically, what code should i put there?
thanks in advance!

bump for the night folks

Similar Messages

  • Small SQL problem

    Hello,
    I have a small SQL problem...
    I am designing an online bank using servlets for a university project and it allows customers to view their statements. They select which of their account numbers they want to view the statement for and the start and end date of the statement.
    The problem lies with the dates. Here is the SQL:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=1/1/01 And date<=31/1/01;
    All of the books I have looked at show dates in '1/1/01' format but whenever I try it this way I get a 'Data type mismatch in criteria expression' error (the 'date' field in the Database IS a Date type).
    Although, whenever I run the query in Access and prompt the user to enter the start and end date, it works fine.
    I have spoken to a few people and no-one seems to know why it is not working.
    Any ideas???
    Thanks

    If your database is MS Access and you don't expect to switch to something else, then write this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And [date]>=#1/1/01# And [date]<=#1/31/01#
    Note that you MUST format your dates as MM/DD/YY and not as DD/MM/YY, that's an Access rule, and that you will probably have to "quote" your column name "date", which I think is a reserved word in SQL and hence a bad choice for column name.
    Personally I always use PreparedStatements. That way my SQL would look like this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=? And date<=?
    and I would use the setDate() method to fill in the parameters. Since this method uses a Date as a parameter, I don't need to fight with date formats, the JDBC driver handles that for me.

  • Can Lincat find big endian and small endian problem?

    Hi, I want to migrate a project from linux to solaris. And I read that lincat can save a lot of time in migration. But when I tried with lincat. I found that what is found is mainly the difference between linux API and solaris API. I use the following
    codes:
    #include <stdio.h>
    #include <stdlib.h>
    int main(int argc, char *argv[])
    int flagVal = 0x01020304;
    char cptr = (char )&flagVal;
    printf("Val is %d\n", *cptr);
    my lincat does not find the big endian and small endian problem. I also wonder whether lincat can find the misaligned problem and "32 bits and 64 bits" problem. Could you please tell me? I didn't find the answer from lincat manual.
    Edited by: baiwd on May 6, 2008 6:03 PM

    Hi Ankit,
    You may use "Cross Platform Transportable Tablespaces" method if the endian format is different between source and target platforms. Please have a look at Oracle's "Platform Migration Using Transportable Tablespaces" document for more information: http://www.oracle.com/au/products/database/maa-wp-11g-platformmigrationtts-129269.pdf
    Please note that "Transportable Database" is a different feature and can only be used to migrate a new database platform that has the same endian format.
    BR,
    Alper Somuncu

  • A small Java Problem for java Experts

    Hi Guys...
    I have a small problem with my program...
    Tha program I am using consist of several frames where one invokes the other in row.
    These are the classes I am using:
    the FIRST class://THIS CLASS IS NOT COMPLETE
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    * LabelDemo.java is a 1.4 application that needs one other file:
    * images/middle.gif
    public class CSVloader extends JPanel implements ActionListener {
         ImageIcon icon ;
         JLabel label;
    JButton theButton1;
    JButton saveButton;
    JButton displayButton;
    JButton displayStyleButton;
    JFileChooser fc;
    final boolean shouldFill = true;
    final boolean shouldWeightX = true;
    public CSVloader() {
    GridBagLayout gridbag = new GridBagLayout();
    GridBagConstraints c = new GridBagConstraints();
    setLayout(gridbag);
    if (shouldFill) {
    //natural height, maximum width
    c.fill = GridBagConstraints.HORIZONTAL;
    theButton1 = new JButton("Choose source File");
    theButton1.addActionListener(this);
    if (shouldWeightX) {
    c.weightx = 0.5;
    c.gridx = 0;
    c.gridy = 0;
    gridbag.setConstraints(theButton1, c);
    add(theButton1);
    displayStyleButton = new JButton("CSV Display style");
    displayStyleButton.addActionListener(this);
    c.gridx = 0;
    c.gridy = 2;
    gridbag.setConstraints(displayStyleButton, c);
    add(displayStyleButton);
    displayButton = new JButton("Display");
    displayButton.addActionListener(this);
    c.gridx = 1;
    c.gridy = 0;
    gridbag.setConstraints(displayButton, c);
    add(displayButton);
    saveButton = new JButton("Save");
    saveButton.addActionListener(this);
    c.gridx = 0;
    c.gridy = 1;
    gridbag.setConstraints(saveButton, c);
    add(saveButton);
    icon = new ImageIcon("c:/applets/CSVlogo.gif");
    //Create the first label.
    label = new JLabel(icon);
    c.ipady = 45; //make this component tall
    c.weightx = 0.0;
    c.gridwidth = 1;
    c.gridx = 1;
    c.gridy = 1;
    gridbag.setConstraints(label, c);
    add(label);
    fc = new JFileChooser();
    public Dimension getDimension(int hight, int width) {
    Dimension theDimension = new Dimension(hight,width);
    return theDimension;
    public void actionPerformed(ActionEvent e) {
    //Handle open button action.
    if (e.getSource() == theButton1) {
    int returnVal = fc.showOpenDialog(CSVloader.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File file = fc.getSelectedFile();
    //This is where a real application would open the file.
    //Handle save button action.
    } else
    if (e.getSource() == displayButton) {
         try {
    Runtime.getRuntime().exec("cmd /c start " + "c:\\applets\\displayData.html");
    catch(IOException io)
    System.err.println("Caught IOException: " +
         io.getMessage());
    }else
    if (e.getSource() == displayStyleButton)
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("Display Style");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    DisplayStyle newContentPane = new DisplayStyle();
    newContentPane.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    else
    if (e.getSource() == saveButton) {
         int returnVal = fc.showOpenDialog(CSVloader.this);
    if (returnVal == JFileChooser.APPROVE_OPTION) {
    File saveFile = fc.getSelectedFile();
    //This is where a real application would open the file.
    public static void main(String[] args) {
    //Make sure we have nice window decorations.
    JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("LabelDemo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //Create and set up the content pane.
    CSVloader newContentPane = new CSVloader();
    newContentPane.setBackground(Color.WHITE);
    newContentPane.setOpaque(true);
    frame.setContentPane(newContentPane);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
    // Runtime.getRuntime().exec("cmd /c start " + "....\\docs\\index.html");
    this is the SECOND class:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DisplayStyle extends JPanel implements ActionListener{
         public static final int FIRST_OPTION = 0;
         public static final int SECOND_OPTION = 1;
         public static final int THIRD_OPTION = 2;
         public static final int THE_BUTTON_OPTION =3;
    public static final int ERROR = -1;
         public int selectedOption = ERROR;
         static String table = "Table";
         static String tableNoBorders = "Table without Borders";
         static String highlightedTable = "Highlighted Table without Borders";
         public JRadioButton theTable;
         public JRadioButton theTable2;
         public JRadioButton theTable3;
         public JButton theButton;
         public String theName;
         public DisplayStyle ()
         theTable = new JRadioButton(table);
         theTable.setActionCommand(""+ FIRST_OPTION);
         theTable.addActionListener(this);
         theTable.setMnemonic(KeyEvent.VK_B);     
    theTable.setSelected(true);
    theTable2 = new JRadioButton(tableNoBorders);
    theTable2.setActionCommand(""+ SECOND_OPTION);
         theTable2.addActionListener(this);
         theTable2.setMnemonic(KeyEvent.VK_B);     
    theTable3 = new JRadioButton(highlightedTable);
    theTable3.setActionCommand(""+ THIRD_OPTION);
         theTable3.addActionListener(this);
         theTable3.setMnemonic(KeyEvent.VK_B);     
    theButton = new JButton("OK");
    theButton.setActionCommand(""+ THE_BUTTON_OPTION);
    theButton.addActionListener(this);
         ButtonGroup group = new ButtonGroup();
    group.add(theTable);
    group.add(theTable2);
    group.add(theTable3);
    JLabel theLabel = new JLabel("Choose the style of Display");
    JPanel radioPanel = new JPanel(new GridLayout(0, 1));
    radioPanel.add(theLabel);
    radioPanel.add(theTable);
    radioPanel.add(theTable2);
    radioPanel.add(theTable3);
    radioPanel.add(theButton);
    add(radioPanel, BorderLayout.LINE_START);
         public void actionPerformed (ActionEvent e) {
         if(e.getSource() == theButton)
         JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame1 = new JFrame("The Format");
    frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Formats newFormat = new Formats();
    newFormat.setOpaque(true); //content panes must be opaque
    frame1.setContentPane(newFormat);
    //Display the window.
    frame1.pack();
    frame1.setVisible(true);
         selectedOption = Integer.parseInt(e.getActionCommand().trim());
         public DisplayStyle getInstance(){
              return this;      
    this is the THIRD class:
    mport java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Formats extends JPanel implements ActionListener{
         public static final int FIRST_OPTION = 0;
         public static final int SECOND_OPTION = 1;
         public static final int THIRD_OPTION = 2;
         public static final int FOURTH_OPTION = 4;
         public static final int THE_BUTTON_OPTION =3;
    public static final int ERROR = -1;
         public int selectedOption = ERROR;
         static String standardFormat = "Date first";
         static String timeFirstFormat = "Time First";
         static String typeFirstFormat = "Type of call first";
         static String extFirstFormat = "Extension first";
         public JButton theButton;
         public JRadioButton theStandardButton1 ;
         public JRadioButton theTimeButton;
         public JRadioButton theTypeButton;
         public JRadioButton theExtButton ;
         public Formats()
    theStandardButton1 = new JRadioButton(standardFormat);
         theStandardButton1.setMnemonic(KeyEvent.VK_B);     
    theStandardButton1.setSelected(true);
         theTimeButton = new JRadioButton(timeFirstFormat);
         theTimeButton.setMnemonic(KeyEvent.VK_B);     
    theTypeButton = new JRadioButton(typeFirstFormat);
         theTypeButton .setMnemonic(KeyEvent.VK_B);     
    theExtButton = new JRadioButton(extFirstFormat);
         theExtButton.setMnemonic(KeyEvent.VK_B);     
         ButtonGroup group = new ButtonGroup();
    group.add(theStandardButton1);
    group.add(theTimeButton);
    group.add(theTypeButton);
    group.add(theExtButton);
    JLabel newLabel = new JLabel("Choose the Format type for the data to be displayed");
    theButton = new JButton("OK");
    theButton.addActionListener(this);
    theButton.setActionCommand("" + THE_BUTTON_OPTION);
    JPanel radioPanel = new JPanel(new GridLayout(0, 1));
    radioPanel.add(newLabel);
    radioPanel.add(theStandardButton1);
    radioPanel.add(theTimeButton);
    radioPanel.add(theTypeButton);
    radioPanel.add(theExtButton);
    radioPanel.add(theButton);
    add(radioPanel, BorderLayout.LINE_START);      
         public void actionPerformed (ActionEvent e) {
         if(e.getSource() == theButton)
         JFrame.setDefaultLookAndFeelDecorated(true);
    //Create and set up the window.
    JFrame frame = new JFrame("The Font");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    TableFonts newFont = new TableFonts();
    newFont.setOpaque(true); //content panes must be opaque
    frame.setContentPane(newFont);
    //Display the window.
    frame.pack();
    frame.setVisible(true);
         selectedOption = Integer.parseInt(e.getActionCommand().trim());
         public Formats getInstance(){
              return this;      
    and the last class:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TableFonts extends JPanel implements ActionListener{
         static String standardFont = "Standard Font";
         static String boldFont = "Bold Font";
         static String italicFont = "Italic Font";
         static String monospaceFont = "Monospace Font";
         public      JRadioButton theStandardButton ;
         public JRadioButton theBoldButton;
         public JRadioButton theItalicButton;
         public JRadioButton theMonospaceButton ;
         public TableFonts()
    theStandardButton = new JRadioButton(standardFont);
         theStandardButton.setMnemonic(KeyEvent.VK_B);     
    theStandardButton.setSelected(true);
         theBoldButton = new JRadioButton(boldFont);
         theBoldButton.setMnemonic(KeyEvent.VK_B);     
    theItalicButton = new JRadioButton(italicFont);
         theItalicButton .setMnemonic(KeyEvent.VK_B);     
    theMonospaceButton = new JRadioButton(monospaceFont);
         theMonospaceButton.setMnemonic(KeyEvent.VK_B);     
         ButtonGroup group = new ButtonGroup();
    group.add(theStandardButton);
    group.add(theBoldButton);
    group.add(theItalicButton);
    group.add(theMonospaceButton);
    theStandardButton.addActionListener(this);
    theBoldButton.addActionListener(this);
    theItalicButton.addActionListener(this);
    theMonospaceButton.addActionListener(this);
    JLabel newLabel = new JLabel("Choose the correct font for the data to be displayed");
    JPanel radioPanel = new JPanel(new GridLayout(0, 1));
    radioPanel.add(newLabel);
    radioPanel.add(theStandardButton);
    radioPanel.add(theBoldButton);
    radioPanel.add(theItalicButton);
    radioPanel.add(theMonospaceButton);
    add(radioPanel, BorderLayout.LINE_START);
         public void actionPerformed(ActionEvent e) {
    The problem I am getting is the Number format exception when the OK button of the class Formats is clicked...
    here is the error I am getting:
    java.lang.NumberFormatException: For input string: "OK"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.
    java:48)
    at java.lang.Integer.parseInt(Integer.java:426)
    at java.lang.Integer.parseInt(Integer.java:476)
    at Formats.actionPerformed(Formats.java:80)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:17
    64)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ctButton.java:1817)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    .java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    istener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5134)
    at java.awt.Component.processEvent(Component.java:4931)
    at java.awt.Container.processEvent(Container.java:1566)
    at java.awt.Component.dispatchEventImpl(Component.java:3639)
    at java.awt.Container.dispatchEventImpl(Container.java:1623)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    at java.awt.Container.dispatchEventImpl(Container.java:1609)
    at java.awt.Window.dispatchEventImpl(Window.java:1590)
    at java.awt.Component.dispatchEvent(Component.java:3480)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    COULD YOU GUYS PLEASE TELL ME HOW TO GET AROUND THIS PROBLEM:
    THANKS...

    It's in this line:
    selectedOption = Integer.parseInt(e.getActionCommand().trim());
    Kind regards,
      Levi
    PS. have you noticed the [code][code[i]] tags?

  • CS4 Small Video Problem with Card Update

    OS: Vista 64
    CPU: AMD x2 64 4800+
    MB: Asus A8N SLI Premium
    RAM: Corsair Extreme 4GB
    CS4 Photoshop
    First Video Card: BFG 7800 GTX 512MB
    New Video Card: AVG GTX 260 (210) Superclocked 896MB
    I had no problem with the Open GL acceleration with my old card.
    I just upgraded my video card to the above and now I'm getting a small problem. I have the newest drivers from the nVidia website for the GTX 260.
    When I move my mouse around the Photoshop work space flickers and flashes a little intermittently as I move the mouse around. I turned off GL Acc. and I still have the problem.
    Any ideas?

    Bob,
    You are correct. Once upon a time I had the Canopus DVStorm with Premiere 6.x and it worked great (and a DVRaptor before that). Then came Premiere Pro and the problems that the DVStorm had were insurmountable so I dumped it and got the RTX-100 which was reputed to be about as good as the DVStorm was in the past. Was I disappointed! It just did not work reliably, hangs, BSOD's, unresponsivess and then when PR CS2 came out you effectively had to get the RTX.2, which was paramount to throwing the RTX.100 down the drain. It seemed to me that with every new version of CSx you needed to get a new Matrox card at extravagant prices for what it offered and still had to wait very long for decent drivers to come out. It just wasn't worth the effort anymore. And when you look here at problems that people experience, the common denominator is usually the Matrox card. So, yes, I am glad I got rid of it and found a very useful purpose for the card: a doorstopper, which must have been the intention of the engineers to start out.
    About Win7: No, I did not have any doubts at all, but in my case I was lucky enough to have a high level network consultant with all kinds of certificates and an impressive experience to advise me and he juist plain told me: "You DON'T want Vista!!! GET WIN7!!! I have been using it for several RC's and it is a revelation." Now after installing and using it for some time, I can only agree.

  • Small(hopefully) Problem with 5:1 headphones on audigy 2

    I recently purchased a Razer Barracuda headset and there seems to be a small problem. Ive got all of the plugs in their color-coded slot but the left and right channel seem to be backwards. Any help would be appreciated.

    Krypto,
    Center channel works fine for me in all modes.
    I turned on WMP 0 with a few mp3's. CMSS, CMSS + EAX Effect, CMSS2, CMSS2 + Effect. I went through several effects w/ CMSS & 2.
    I did notice a couple things that could be affecting you though. I have the CMSS "Fader" for lack of a better term.. it moves the stereo focus from front speakers to back speakers.. set to 0%, which is balanced between front and back. Also, in the EAX Effect pane there this the effect amount. When I played w/ these two sliders and different effects, I noticed the center speaker did get very faint at times. Sometimes all that could be heard was reverb or echo.
    Maybe it's the unique combination of CMSS setting and effect amount, plus the type of center speaker you have just not getting enough power?
    Hope this hel
    ps.

  • A small layout problem...

    Hi,
    I have a JPanel with a grid layout of 12 rows and 1 column. And it holds 12 buttons like so:
    button1
    button2
    button3
    button12
    The problem is I would like a small bit of space between the buttons. Not closely packed as shown. any ideas? all help appreciated

    try:
    JPanel myPanel=new JPanel()
    myPanel.setLayout(new GridLayout(12,1,5,10));where you'll a horizontal spacing of 5 pixels and a vertical spacing of 10 pixels.
    ;o)
    V.V.

  • Small podcast problem

    I'm new at this. Just downloaded iTunes yesterday.
    Everything seems to be working fine. I've subscribed to a few podcasts with no problems and everything is working fine, except for one small thing. It's really more of a puzzle than a problem. Anyway, here it is:
    When I click on "subscribe" to the CBC podcast "As it Happens" (a nightly program)I do get the last download, but the "subscribe" banner doesn't appear on the podcast line for the downloaded show. It does for the other things I've subscribed to.
    And yes, I've hit the subscribe button several times for the show. I've even deleted it and tried again, but no indicator appears on the line with the podcast. Should I worry?
    Cheers, Don.

    http://quartett.planeteternia.org/newsfeed.xml - there is no file at this address. You have a feed at
    http://quartett.planeteternia.org/rssfeed.xml
    but there are no diacriticals in it - presumably you've removed them.
    The other feed simply includes the diacriticals - it's not using html encoding to display them - so I don't know why you should be having trouble. You need to be writing the text in a plain text editor, not a word processor, and I don't know whether there is an issue with Windows here.
    You could try using the codes - they must be the numbered not the named codes:
    ü is &#252;
    ö is &#246;
    ä is &#228;

  • Small RegEx problem

    Hello fellow Programmers!
    I turn to you because this small regular expression is turning me NUTS! AHHH!
    My String:
    blalba[morebla]evenmorebla]blaMy RegEx:
    \[.*(\]){1}My Aim:
    To get the first Bracket and everything between and inculding the second bracket. So that would be:
    "[morebla]"
    The Problem is I get the first bracket and everything until the LAST bracket.
    "[morebla]evenmorebla]"
    I assume this is so because ".*" just runs over everything until a final bracket appears...
    Any thoughts?

    anox wrote:
    Smithberrys suggestion worked.
    The other one didn't work out with my regEx but I am currently looking into that question mark and its functions.
    Thanks guys!Didn't work? How did you use it? Where did you use it?
    public class RegexpSample {
        public static void main(String[] args) {
            String data = "blalba[morebla]evenmorebla]bla";
            Matcher matcher = Pattern.compile("\\[.*?\\]").matcher(data);
            matcher.find();
            System.out.println(matcher.group());
    }Prints:
    [morebla]
    * is normally greedy, and a question mark makes it reluctant.
    You can find more info in the javadoc for the Pattern class, and on www.regular-expressions.info
    Kaj

  • Small encoding problem

    Hi!
    I'm having a problem and I just can't seem to find where it
    is.
    Here's what is hapening: I have a small flash slideshow on
    the front page of a website. The flash works fine on my computer (I
    have checked it in Firefox, Opera and IE), it works on different
    friends computers (multiple browsers as well). However, it doesn't
    work on my client's computer (IE), a friend of hers is having
    trouble seeing it as well - but one of the ladies in her office can
    see it (Safari). The computers that don't see it can see flash on
    other sites. I've looked at the code so much that I am completly
    blanked.
    Thanks in advance for any help!
    ~~~~~
    Code - entire contents of <div>
    ~~~~~
    <div id="container">
    <div id="logo"><img src="images/logo.png" alt="bog
    1" width="774" height="169" border="0" /></a> </div>
    <div id="header">
    <object classid="flash" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="774" height="300" hspace="2" vspace="5" title="flash">
    <param name="movie" value="cover.swf" />
    <param name="quality" value="high" />
    <embed src="cover.swf" width="774" height="300"
    hspace="2" vspace="5" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"></embed>
    </object>
    <ul>
    <li><a
    href="index.html">home</a></li>
    <li><a
    href="coupons.html">coupons</a></li>
    <li><a href="graphic.html">graphic
    design</a></li>
    <li><a href="printing.html">printing
    services</a></li>
    <li><a href="mission.html">about
    us</a></li>
    <li><a href="contact.html">contact
    us</a></li>
    <li><a
    href="links.html">links</a></li>
    </ul>
    </a></div>

    Yes, it looks for Flash 7 - but is suposed to post a "get the
    latest flash" message. Basically it is doing *nothing* on the ones
    that can't see it. Unfortunately when I tried to see if my client
    had the new flash, and had her settings turned on to be able to run
    scripts I confused her.

  • Small crash problem

    I have a small problem. I have a AMD athlon 2000+ , 256 MB DDRRAM and a msi geforce4 440mx. Everything works fine exept 1 thing: Baldurs gate 2. At random places it makes my computer crash. I have talk to several people and search a while on the net and I think there must be problem with the 440mx. I have downloaded the latest drivers (bios, Nvidia-driver) but everything stays the same!! Does ANYBODY have a cleu?? PS I'm no computerexpert. PLEASE if you reply, don't use to much difficult terms??
    THANKS!!!

    I don't know what you mean with psu details of label  (sorry)and where can I find the watts and amps??
    The motherboard is a a7v266-c
    It doesn't crash on other games i have tried. And yes I have cheked the lattest patches.
    BTW I'm pretty sure that is has nothing to do white overheating. The temperatures stay low (CPU and motherboard)

  • Small Application Problems

    Hi folks.
    I just recently started playing around with Java and there are two tiny non-serious problems I bumped into.
    I use Textpad to program my javas and it works fine. I had the all-so-common Classpath problem but fixed it by searching the forum for the information.
    Now my two small problems are these:
    (1) I live in another country which used characters like Alt+0225, Alt+0246, Alt+0254, Alt+0233 and such (I use Alt+ because it seems that even this input window here ain't understanding these characters as a possibility). I use these characters when making my programs, more specific in the System.out.print commands. Looks all nice in Textpad but when I go on and run these javas the characters get all messed up; that is to say, my contry specific characters. This only happens in applications, not applets. Normal Command Prompt in Windows XP displays these characters just fine. How can make it so that when running my javas my country specific characters are shown correctly?
    (2) This is more of a Textpad problem. By using Capture Output in Run Application option in Textpad the above characters are shown correctly. But doing so seems to mess up my use of the Keyboard class. Is there any way to use the Keyboard class along with the Capture Output settings?
    Thanks and I hope someone can help,
    Spekingur

    Spekingur please don't bump. All people here are answering voluntarily and without getting money. So please be polite.
    (1) I live in another country which used characters
    like Alt+0225, Alt+0246, Alt+0254, Alt+0233 and such
    (I use Alt+ because it seems that even this input
    window here ain't understanding these characters as a
    possibility). I use these characters when making my
    programs, more specific in the System.out.print
    commands. Looks all nice in Textpad but when I go on
    and run these javas the characters get all messed up;
    that is to say, my contry specific characters. This
    only happens in applications, not applets. Normal
    Command Prompt in Windows XP displays these characters
    just fine. How can make it so that when running my
    javas my country specific characters are shown
    correctly?It's a problem of your console window and its encoding. Look [url http://www.jorendorff.com/articles/unicode/java.html]here.
    (2) This is more of a Textpad problem. By using
    Capture Output in Run Application option in Textpad
    the above characters are shown correctly. But doing so
    seems to mess up my use of the Keyboard class. Is
    there any way to use the Keyboard class along with the
    Capture Output settings?Which Keyboard class? It's not part of the standard API.

  • A Small Little Problem

    OBJECTIVE:
    Write a program that will produce 15 random numbers. Print out, on one line, only the numbers who are divisible by 2, and multiples of 5 in between 10 and 40. Use any logic gates as necessary.
    Below is the source code of the program I have attempted to do, but I have one minor problem. In the If statement, It says the number has to be between 10 and 40 in order to print out, but sometimes when i run my program, i see 42, 44 or 45, which are even and divisible by 2 or 5, but not in between 10 and 40. Can anyone please help me? ThankS!
    // The "Chap3Program13" class.
    import java.awt.*;
    import hsa.Console;
    public class Chap3Program13
        static Console c;           // The output console
        public static void main (String [] args)
            c = new Console ();
            int num, count = 0;
            c.print ("The random numbers are: ");
            c.println ();
            while (count <= 15)
                num = (int) (Math.random () * 51) + 0;
                if (num % 2 == 0 || (num % 5 == 0 && num >= 10 && num <= 40)
                    c.println (num, 6);
                count++;
        } // main method
    } // Chap3Program13 class

    your code:
    if (num % 2 == 0 || (num % 5 == 0 && num >= 10 && num <= 40)says: if number is divisible by two OR all of the following: number is divisble by five and number is greater than 10 and number is less than 40
    I don't think this is what you want. I think you want your if condition for between 10 and 40 to be outside the rest of your clauses, as
    if ((num >= 10 && (num <=40)) {
      // I know for sure if I am in here that number is in the desired range
      if ((num % 2) == 0) || (num % 5 == 0)) {
        // And if I get to here I know num is both in my range and divisible
        // by 2 or 5 - print it
    }Lee

  • Can't get image to bleed -- small frame problems

    I'm sure this is an easy solve -- but I'm pulling my hair out.
    I just switched to '09 and the new presentations I'm starting all play back in a small frame surrounded by about %50 black framing. How do I get the image to use the full screen?
    Many thanks!

    In Preferences, in the Slideshow panel, check "Scale slides up to fit display".

  • Small apps problem

    Hi. My small apps are bothering me.
    Whenever i turn on my timer or another small app, it works just fine. However; when i lock the screen, and then unlock it, my timer dissapears. The notification bar is telling me that small apps are running, but when i press "show" nothing happens.
    Anyone know anything about this?
    Solved!
    Go to Solution.

    Hi and welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    Sorry to hear that you have issues with small apps.
    It's not an issue i've heard of before. Are you using our launcher or are you using a 3:rd party launcher? Which build number do you have under Settings -> About phone?
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

Maybe you are looking for

  • How to import

    Hi, I have import the application pages and tables.When i seen the pages the process that i have define in application was not present.How to export the process,triggers,cursors made in application and then how to import them in another worksapce. se

  • Aironet 1310 to dot11 Bridge?

    Is there a way to create a bridge between a Linksys WAP54GPE and a Cisco 1310? Linksys states Bridge and Repeater are only available with other Lonksys products. But the Aironet 1310 offers the universal workgroup bridge mode. Does this work? As well

  • Delete an Element in the Tree

    Hi, I would like to delete an element in the tree. but I was able to delete only the rootNode Could you help me. thanks IPrivateTreeView.ITreeNodeNode rootNode =      wdContext.nodeTreeNode(); IPrivateTreeView.ITreeNodeElement level2Delete = null; le

  • Is it possible to change star rating color?

    ...in Numbers. I tried "Text colors" (doesn't work), and yes a "star" is not some text... but if it'd be HTML, the color would work on a special character :-)

  • Is there any env variable to be set during Netweaver2004installation onAIX?

    Hi ALL, <b>1. Is there any env variable ( like sapsystemname(?)) to be set during Netweaver2004installation on AIX?</b> When I install Netweaver 2004 on AIX, machine name is taken in capital letterrs by default, whereas it is in small letters. So whe