How to Detect Resolutions and Resize accordingly

Hello,
This is my first website and I just published it here at
cattrigger.com.
I published the swf at 1024X768 and have found anybody with a
resolution of 1024X768 or lower will not be able to function around
the site without ferviously scrolling up and down.
Being that this is 50% of the people that are currently
looking at the site, I am wondering if somebody can help me on
this. I am trying to find a way for this swf to resize when it
detects a user's video resolution.
I have searched for solutions but everything I find have been
too advanced description or vague for me to figure it out.
Thank you in advanced for any information I can use!

You can try using the following class instead of yours
     class RadioButtonEditor extends DefaultCellEditor implements ActionListener
          private static final long serialVersionUID = 1L;
          private JRadioButton radio;
          public RadioButtonEditor(JCheckBox checkBox)
               super(checkBox);
          public Component getTableCellEditorComponent(JTable table, Object obj, boolean isSelected, int row, int column)
               if(obj == null)
                    return null;
               radio = (JRadioButton) obj;
               radio.addActionListener(this);          
                                     return (Component) obj;
          public Object getCellEditorValue()
               return radio;
          public void actionPerformed(ActionEvent ae)
               System.out.println(ae.getSource()+"<<<< Button Clicked");
               // TODO Auto-generated method stub*
     }

Similar Messages

  • How to detect keystroke and control a digital potentiometer?

    Dear All,
    I want to use PCI-1200 to control a Xicor X9C103P digital potentiometer.
    The procedure is as follows: If the computer detects any keystroke from
    either UP or DOWN arrow keys, it send a chain of digital signals to a
    digital potentionmeter to increase or decrease its resistance accordingly.
    Each keystroke control the potentiometer to change a fixed amount, say,
    around 500 Ohm. How to detect these keystrokes using LabVIEW and
    send to digital potentiometer through PCI-1200?

    If you are refering to the ability to capture user key strokes you will need to add a listener to the class. If is a matter of is it a charater or a number then look into isDigit. Or are you trying to capture Hot-Keys? Please specify and will see if we can help - Bart

  • (ask)how to detect locking and how to kill session

    I want to update a row in a table, table "X" for example.
    I got ORA-00054:resource busy and acquire with no wait spesified.
    How do i search and kill the session that is locking the table? i dont have oracle Enterprise Manager so i think it has to be done by querying against v$session, v$transaction etc. to get the session and kill it.
    Can anyone show me the select statement to find out the sesion and the command to kill it.
    thank you

    DBA_OBJECTS holds the object_id.
    Use the object_id to select locks from V$LOCK, where object_id equals ID1 or ID2 (depends on the type of lock).
    See Oracle Database Reference for more details.

  • How to detect apostrophe and add double quote on that?

    Hi!
      I have a user name is CH'NG
      His name has an apostrophe ' over there.
      I use GUI_UPLOAD to read from a xml file and store inside a local variable,
      <b>lv_name = 'CH'NG'.</b>
      I encounter the problem of endless ending because of these 3 apostrophes.
      Therefore, I wish to write some code like, if i detect the lv_name contains any apostrophe, i will add another 2 apostrophes infront of the single quote (which i viewed from other threads, saying that putting a 2 apostrophe can solve the problem ), such as:
      IF lv_name CA apostrophe.
         lv_length = strlen( lv_name ).
         lv_len = sy-fdpos + 1.
         CONCATENATE lv_name+0(sy-fdpos) 2 apostrophe lv_name+ lv_len(lv_length) into lv_result.
      ENDIF.
    so, my lv_result: CH'''NG
    Kindly advise.
    thanks a lot!
    br,
    hy

    Huai,
    Just copy this code and execute
    report ZTEST11.
    DATA :         V_len type i,
                  v_num type i.
    parameters : v_str(20)   .
    start-of-selection.
        v_len =  strlen( v_str ).
        do .
           v_num = v_num + 1.
         if  v_len eq v_num.
            exit.
          else.
             if v_str+0(v_num) ca '*'.
                  REPLACE '*' WITH space  INTO v_str.
                   v_num = v_num - 1 .
                   v_len = v_len - 1.
             endif.
         endif.
        enddo.
        condense v_str.
        write v_str.
    don't forget to reward if useful

  • How to detect connect and disconnect of DAQ(5133)

    When 2x5133 connected, need to report to user that they are connected.
    When they are disconnected, need to remind user that are disconnected.
    I am trying to make it as a loop, run the device finder again and again, is there any better method.
    Any suggestion, thanks.

    you should remove the laptop first before you disconnect, and connect the power to the ultrabase first before you dock.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • How to manage slow and fast moving goods in Demand Planning

    Hi All,
    Kindly let me know how to manage slow and fast moving goods in Demand Planning.
    1. First how to detect slow and fast moving goods
    2. which DP model to use
    3. Any Best practice while dealing with slow and fast moving goods
    Thanks
    Arun

    Arun,
    There are two main concerns with forecasting slow moving goods. For fast moving, yes, trend, level and seasonality combined with a decent demand level gets you through.
    So, either you don't have demand in the market for that product; if the product is not critical (like go/no go spare parts) I recommend just averaging out the demand over a period and going with that. Any errors incurred there won't have a significant business impact. On the other hand if it is critical, safety stock and/or contractual obligations come to play.
    OR, if there is market demand but your market share is too low for whatever reason, then it gets tricky because you need a predictor variable(s) for which you have good knowledge off (such as CPI index, demand for related products, etc). The forecast is then done on the predictor variable(s) and the low market share applied to 'translate' the expected demand to the product in question. Unfortunately, the case of low demand/low market share I have no idea of how to implement it on SAP. Since forecasting is just the tip of the iceberg, it may pay to do it outside of SAP (say in Excel) and manually input it (unless the products are many and varied).
    Hope this helps. Please let me know if this makes sense and/or applies to your question.
    Rodrigo

  • Moving and resizing shapes .?!

    hey there ..
    i was wondering if you guys can help me figure out how to select , move and resize a specific shape .... apreciatte it a lot .. peace . take care and thanks for your concerns..

    Hi there, take a look at this code:
    http://forum.java.sun.com/thread.jsp?forum=31&thread=427823
    You can view the working version at www.bhun.net/shapebean.html. The example isn't very complicated nor does it contain much functionality. But it does show you one way to handle the shapes (there are probably better ones). Resizing a shape just requires you to do some extra work.
    Greets
    nuhb

  • Detecting ram and hard disk using servlet

    how to detect RAM and HD using servlet from remote client host. currently i use JIGSAW as JWS...should i use hashtable and runtime class for this problems. please help me...

    well...
    You can't...
    You could use the methods in the Runtime class for memory management but they'll return the corresponding values of the server and not the client (Servlets are Server Side Java Applets).
    And most of the hardware specs are hidden to JVM and without JNI programming you are unable to detect any hardware type (HW drivers are usually written in C or even in ASM).
    So, learn C, figure out how to access devices at low level programming if the information is so important for you and stop dreaming of accessing computer hardware from the web. It would be a serious security risk if it would be possible ;)
    rgds
    Sabalasa

  • How can i find out the resolution and accuracy of PXI-6602 module?

    I have a 32 bit  8 channel PXI-6602 counter module.  PXI card is interfaced to PC with MXI-4 link. How can i find out the resolution and accuracy of this system.What is the maximum accuracy and resolution i will get from this system. Because optical signal to cmos conversion signal is given as a input to the counter.

    Hi chandhu,
    Were you referring to the accuracy of the count register or the timing clock? 
    PXI-6602 specifications can be found in the NI 660x Specifications.  The resolution of the count register is, as you’ve noted, 32 bits.  This corresponds to a maximum count value of 4,294,967,295.  As long as all of the edges are in accordance with TTL specifications, the accuracy of the count register is 100%.
    On the other hand, the PXI-6602 baseclock accuracy takes on the baseclock accuracy of the PXI CLK 10 signal.  Again, this is all found in the specifications.
    You may also want to check out the NI 660x User Manual – it contains a lot of details on the operation of these counter/timer devices.
    I hope this helps.  Please post back if you have further questions.
    Ed W.
    Applications Engineer
    National Instruments

  • How to detect the OS version and the hardware info??

    Hi all, according to the project needs, I to know how to detect OS version and the hardware info.
    The point is to detect client's OS version, weather Win98, 2000, XP, Vista.
    I have been search the information for several days already.
    But can not really found a example which returns the OS version like"Windows XP Version 2002 *****".
    And also could not find the CPU type such as"Core 2 due, or  pentium D".
    Is there anyone have done this before?
    Thanks.
    The Info I need looks like the photo below.
    Message Edited by EricLu on 07-21-2009 08:09 PM

    Well, in fact I have the VI and also read the topics as well...... The searching tag is OS info , system info......... After reading your post, now I understand the relation between the version number and the real OS version now, tks.  And another problem is, the processor type returned within the VI have only 4 type:"INTEL 386, INTEL 486, PENTIUM, Unknown". 
    It can not really return my CPU TYPE. For example the desktop I’m using now is a Pentium, D , 2.80G, 2.80G.. and it only returns type "Pentium". That's why I'm asking is there any other way to do this...... (( Please forgive me if you can not really know what I'm talking about in my first post, now I know how bad my english is.......   ))  I guess I can only try to find out the solution from the registry then... Thanks for your information and reply. 
    Message Edited by EricLu on 07-21-2009 09:25 PM
    Message Edited by EricLu on 07-21-2009 09:26 PM

  • Does any body knows how to detect the resolution of an inserted image in word?

    Does any body knows how to detect the resolution of an inserted image in word?

    I'm not sure I understand your reply but when you insert images into Word that are larger than will fit on the page, they are automatically compressed. If you right click and select Size and Position you can restore it to 100% but you will not see all the image.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • TS1135 i upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and the prints come out blurry. does anyone know how to increase resolution of iPhone pics?

    i upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and blurry prints. Does anyone know how to enhance resolution/printing quality of iPhone pictures?

    How does iPhoto play a part in this?  You're in the iPhoto forum.  Shouldn't you be asking your question in the iPhone forum?  I'll ask the powers to be to move you question to the iPhone forum.
    OT

  • I upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and blurry prints. Does anyone know how to enhance resolution/printing quality of iPhone pictures? iPhone 5

    i upload iPhone pics to Shutterfly, which gives me a "low resolution" warning and blurry prints. Does anyone know how to enhance resolution/printing quality of iPhone pictures?
    iPhone 5

    How does iPhoto play a part in this?  You're in the iPhoto forum.  Shouldn't you be asking your question in the iPhone forum?  I'll ask the powers to be to move you question to the iPhone forum.
    OT

  • Photoshop CC: Have a template that I moved image into.  Image is too small.  How do I resize the image while in the template?  Or must I go to original image file and resize there again and again until I get the right fit?

    I have a template that I am able to plug different pictures into at different times.  The problem is that when I plug an image into that template, I find that the image is either too big or too small.  Is there a way to plug the image into the template and resize the image (and not the template itself) OR will I have to go to the file with the original image and resize it there and then try to plug it in to the template to see if it fits------and if it does not fit, go back to the original file with the image and resize it again and see if that fits---and so on and so on...........?  I have tried the" image size" option but it's hit or miss------mostly miss!
    Thanks!

    Read up on Smart Objects. It looks like you have no idea as to how to create and use them.
    Jut create a Smart Object from the layer containing whatever it image it is that you are "plugging into your template".  But you do need to learn the application at its most basic levels.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.  You cannot learn Photoshop in a forum, one question at a time.
    Or is it possible that you don't even have Photoshop proper but the stripped-down Photoshop Elements?"
    If the latter is the case, you're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you would want if you're working in Elements.:
    https://forums.adobe.com/community/photoshop_elements/content
    If you do have Photoshop proper, please provide the exact version number of that application and of your OS.
    (edited for clarification)

  • Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

Maybe you are looking for