Problem using Medium widget from Musegrid

Hi,
I have installed the newest version of the Medium widget from Musegrid.
The problem is that the button SHOW/HIDE only appear and when clicked nothing happen.
This is a test link I made:
www.prufa.nordicprinting.com
Any ideas what is done wrong or could be the reason?
Reg.
Petur

I tried to check on my end and it works fine, but yes there is a time delay here.
Have you tried to contact them directly for the issue, if not then I would suggest you to contact them.
Thanks,
Sanjit

Similar Messages

  • Problem using jsp:include from inside a custom tag

    Hi, All !
              I have a problem using <jsp:include> from inside a custom tag. Exception is:
              "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              could not do this. Is it a bug, since in the 1.1 spec is said: "The
              BodyContent is a subclass of JspWriter that can be used to process body
              evaluations so they can retrieved later on."
              My code is:
              <wfmklist:items>
              <jsp:include page="item.jsp" flush="true"/>
              </wfmklist:items>
              

    This is an area of contention with WL. It is not so tolerant with regards to
              the spec. I spent several days recently trying to convince it to accept the
              specification in regards to bodies and includes and it appears to have
              successfully rebuffed my efforts.
              Frankly, this is very disappointing. It appears that some shortcuts were
              taken on the way to JSP 1.1 support, and the result is a very hard-coded,
              inflexible implementation. As I have not seen the implementation myself, I
              hate to assume this, however one could posit that the term "interface" was a
              foreign concept during the implementation, other than as some annoying
              intermediary reference requiring an immediate cast to a specific Weblogic
              class, which in turn is apparently required to be final or have many final
              methods, as if being optimized for a JDK 1.02 JIT.
              I am sorry that I don't have any positive suggestions other than to use a
              URL object to come back in an execute the necessary "include" directly. You
              lose all context (other than session) and that can cause its own problems.
              However, you can generally get the URL approach to work, and you will
              hopefully avoid further frustration.
              Peace,
              Cameron Purdy
              Tangosol, Inc.
              http://www.tangosol.com
              Tangosol: How Weblogic applications are customized
              "Denis" <[email protected]> wrote in message
              news:[email protected]...
              > Hi, All !
              > I have a problem using <jsp:include> from inside a custom tag. Exception
              is:
              > "java.lang.ClassCastException: weblogic.servlet.jsp.BodyContentImpl"
              >
              > Apparently, weblogic tries to cast BodyContentImpl to JspWriterImpl and
              > could not do this. Is it a bug, since in the 1.1 spec is said: "The
              > BodyContent is a subclass of JspWriter that can be used to process body
              > evaluations so they can retrieved later on."
              >
              > My code is:
              > ...
              > <wfmklist:items>
              > <jsp:include page="item.jsp" flush="true"/>
              > </wfmklist:items>
              > ...
              

  • Problems using Animation Presets from Bridge

    Dear all,
    Using the CC range, and recently had a new problem using the animation presets from Adobe Bridge. I'm in After Effects as normal, and then go to the Animations drop down, click browse recent presets to open up Bridge, and then as normal use Bridge to select the preset I want. Double click it whilst highlighting my selected track in AE, and then AE reports this:
    And the same error codes no matter what effect/animation I choose, whether its to an image, video or text.
    If I just go, in AE, to my Recent Animation Presets, and choose one from there it loads up absolutely fine. But this is massively annoying.  Any ideas? This problem appeared out of nowhere.

    This is fixed in the After Effects 2014.2 (13.2) update, which is now available.
    Details here: http://adobe.ly/1IVopxh

  • Problem using Image Processor from Bridge

    I have been using the Image Processor to process photos from Bridge for quite some time. However, I recently received an error message when I try to initiate Image Processor from Bridge and I have not been able to find any help topics that address my problem: I select images in Bridge to process, then click "Tools>Photoshop>Image Processor". Photoshop opens and the familiar Image Processor dialog box opens. Item 1 in the dialog box says "Process files from Bridge only" and has the number of files I have selected in parenteses. I select the file type and other settings in #3, and preferences in #4. When I click "Run", I get an error message window that says: "Script Alert. There were no source files that could be opened by Photoshop". The Image Processor works if I open the files in Photoshop first, then run it by selecting "File>Scripts>Image Processor" and tell it to process all open files.
    Would someone be able to help me with this problem?
    Thanks, Larry

    Usually when it worked before and not now, and you have added no new software or hardware I recommend resetting the preferences.  Hold down the Ctrl key and click on the Bridge icon to start.  You should get a reset window with 3 options.

  • Problem using time machine from migrated MacBook Pro

    I upgraded from a 2.66Gig 15 inch dual core to a 2.2GHz 15 inch quad core (MacBook Pro 8,2) - I used setup assistant to transfer files and settings form the old mac to the new one over ethernet - Everything (apps, documents, preferences) transferred fine and the new mac is a clone of the other except for being able to use time machine. On running for the first time I get an error dialog "Time machine could not complete the backup. The backup disk image "Volumes/backups/restOfPath.sparsebundle" could not be accessed(error-1).
    I tried a full reset of TM (deselecting the backup drive, turning off, deleting the preferences .plist and rebooting), with the same result. The image that is created is 1.6TB (on a 1 TB Iomega Home Storage drive). The image of my old time machine reflects the drive size -I don't know if this is a problem, both images are twice the size of the respective mac's inbuilt drives).
    I looked at the troubleshooting tips and installed TM buddy - the log from the new mac shows this:
    Starting standard backup
    Attempting to mount network destination using URL: afp://Ray%[email protected]/backups
    Mounted network destination using URL: afp://Ray%[email protected]/backups
    Warning: Destination /Volumes/backups does not support TM Lock Stealing
    Warning: Destination /Volumes/backups does not support Server Reply Cache
    Error 257 looking up immutability for /Volumes/backups/Ray-Hicks-MacBook-Pro.local_c82a1408b246.sparsebundle/token
    Error writing Time Machine Information file: /Volumes/backups/Ray-Hicks-MacBook-Pro.local_c82a1408b246.sparsebundle/com.appl e.TimeMachine.MachineID.plist
    Running backup verification
    Failed to attach to image: /Volumes/backups/Ray-Hicks-MacBook-Pro.local_c82a1408b246.sparsebundle, DIHLDiskImageAttach returned: 107
    Backup verification incomplete!
    Failed to attach to image: /Volumes/backups/Ray-Hicks-MacBook-Pro.local_c82a1408b246.sparsebundle, DIHLDiskImageAttach returned: 107
    Mount failed... waiting 60 seconds and trying again.
    Ejected Time Machine network volume.
    The original mac can still use it's backup on the same disc - it gives the same warnings about Lock Stealing and Server Reply Cache, I'll append a report from TM Buddy below this one.
    I'd appreciate any help that people can provide - I'm using the same username and password connecting to the backup disc from either mac so I'm presuming it's not an access privilege thing (but if it is I may need an idiots guide to changing these:))
    Cheers
    TM Buddy log from old MacBook follows:
    Starting standard backup
    Attempting to mount network destination using URL: afp://Ray%[email protected]/backups
    Mounted network destination using URL: afp://Ray%[email protected]/backups
    Warning: Destination /Volumes/backups does not support TM Lock Stealing
    Warning: Destination /Volumes/backups does not support Server Reply Cache
    QUICKCHECK ONLY; FILESYSTEM CLEAN
    Disk image /Volumes/backups/Ray-Hickss-MacBook-Pro.local_109add54a619.sparsebundle mounted at: /Volumes/Backup
    Backing up to: /Volumes/Backup/Backups.backupdb
    No pre-backup thinning needed: 803.6 MB requested (including padding), 748.74 GB available
    Copied 358 files (2.8 MB) from volume Macintosh HD.
    No pre-backup thinning needed: 800.4 MB requested (including padding), 748.74 GB available
    Copied 31 files (15 KB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    Ejected Time Machine disk image.
    Ejected Time Machine network volume.
    Message was edited by: RayHicks

    Sorry - I totally missed this longer post you made - here are the answers to the best of my knowledge - I seem to have answered a couple accidentally in my next post, but didn't directly address what you'd asked - sorry about that I just totally missed your post before reposting an update to (what I thought was) my one-man thread!
    {quote:title=Pondini wrote:}
    When you set up Time Machine on that NAS, do you create the sparse bundle manually, or does the NAS do it? Is there a setting on the NAS to limit the size? (One of the disadvantages to using a 3rd-party NAS is, few folks here, or with Apple, know much about how that particular NAS interacts with OSX).
    {quote}
    It seems that the NAS does it automatically, sometimes wrongly (it puts the wrong MAC in occasionally, and it appends .local after the username (not sure of the relevance of this, but in the manual setup that got me limping along in the later post, it doesn't mention the .local bit and I didn't use it (maybe this is why the access is through ip address now?)
    Those seem to mean your NAS isn't fully compatible with Snow Leopard. See if there's a software/firmware update for it.
    I'm using the latest firmware, and it works with the other mac also running 10 6.6
    also throwing the same warning but with no apparent problem (yet:P)
    I'd appreciate any help that people can provide - I'm using the same username and password connecting to the backup disc from either mac so I'm presuming it's not an access privilege thing (but if it is I may need an idiots guide to changing these:))
    That would be on the NAS, not OSX, so you'd need their instructions or help.
    Indeed it was (fix seems to be to manually install a newly created sparsebundle)
    You might try repairing the sparse bundle. Follow the instructions for a Time Capsule in #A5 of [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Thanks - I tried that I think ( I read though most of your site and tried many things:)), but with no joy - thanks for taking the time to provide this useful resource.
    On a Time Capsule or AirDisk, where Time Machine creates the sparse bundle, it's actual size starts out at just a few hundred MBs (the directory structure, etc.), then grows as backups are added. It's maximum size is set at the size of the volume it's on.
    That seems to be the way with this too (the actual size is a few hundred megs - though disc utility reports it to be 1.5TB which is twice the size of the Mac disc)
    Thanks again for your time and input,
    Ray

  • Problem Using toString method from a different class

    Hi,
    I can not get the toString method to work from another class.
    // First Class Separate file MyClass1.java
    public class MyClass1 {
         private long num1;
         private double num2;
       public MyClass1 (long num1, double num2) throws OneException, AnotherException {
            // Some Code Here...
        // Override the toString() method
       public String toString() {
            return "Number 1: " + num1+ " Number 2:" + num2 + ".";
    // Second Class Separate file MyClass2.java
    public class MyClass2 {
        public static void main(String[] args) {
            try {
               MyClass1 myobject = new MyClass1(3456789, 150000);
               System.out.println(myobject);
             } catch (OneException e) {
                  System.out.println(e.getMessage());
             } catch (AnotherException e) {
                  System.out.println(e.getMessage());
    }My problem is with the System.out.println(myobject);
    If I leave it this way it displays. Number 1: 0 Number 2: 0
    If I change the toSting method to accept the parameters like so..
    public String toString(long num1, double num2) {
          return "Number 1: " + num1 + " Number 2:" + num2 + ".";
       }Then the program will print out the name of the class with some garbage after it MyClass1@fabe9. What am I doing wrong?
    The desired output is:
    "Number 1: 3456789 Number 2: 150000."
    Thanks a lot in advance for any advice.

    Well here is the entire code. All that MyClass1 did was check the numbers and then throw an error if one was too high or too low.
    // First Class Separate file MyClass1.java public class MyClass1 {
         private long num1;
         private double num2;
         public MyClass1 (long num1, double num2) throws OneException, AnotherException {              
         // Check num2 to see if it is greater than 200,000
         if (num2 < 10000) {
                throw new OneException("ERROR!:  " +num2 + " is too low!");
         // Check num2 to see if it is greater than 200,000
         if (num2 > 200000) {
                throw new AnotherException ("ERROR!:  " +num2 + " is too high!");
         // Override the toString() method
         public String toString() {
              return "Number 1: " + num1+ " Number 2:" + num2 + ".";    
    // Second Class Separate file MyClass2.java
    public class MyClass2 {
        // Main method where the program begins.
        public static void main(String[] args) {
            // Instantiate first MyClass object.
            try {
               MyClass1 myobject = new MyClass1 (3456789, 150000);
               // if successful use MyClass1 toString() method.
               System.out.println(myobject);
                         // Catch the exceptions within the main method and print appropriate
                         // error messages.
             } catch (OneException e) {
                  System.out.println(e.getMessage());
             } catch (AnotherException e) {
                  System.out.println(e.getMessage());
             }I am not sure what is buggy. Everything else is working fine.

  • Problems using Migration Assistant from Tiger to Snow Leopard

    I want to scavenge files and apps from a Power Mac G4 (PowerMac3,5) running Tiger 10.4.11 before I turn it out to pasture. Most of them were migrated years ago to another system and have been updated and upgraded over the years, but a few apps have no modern equivalent. Now I want to do one last "pull" to pick up anything left behind all those years ago, particularly apps for which the install discs are in deep storage at best and possibly discarded.
    I'm trying to use Migration Assistant in a nearly virgin Snow Leopard 10.6.8 system (installed fresh from 10.6.3 retail optical disc, updated over the network, lightly tested). It has a single admin account, no other user accounts.
    Possible complicating factors: the Snow Leopard system is Server running under Parallels 10.1.4 on Yosemite 10.10.2 on an Early 2008 Mac Pro (MacPro3,1) with  third-party USB3 controller in a PCI slot.
    At present, I'm using a portable drive with both FW and USB interfaces as an intermediate storage (FW on the G4 to clone the system drive, USB on the Mac Pro to connect it to the virtual machine). SL sees the drive just fine, can copy files from it, and can even run apps from it. Migration Assistant sees the drive and offers to migrate from it.
    Two problems:
    1. No matter what user(s) I select for migration, Migration Assistant tells me it is a duplicate account. Proposing an account name never used before does not help. As a result, no user files can be migrated. (Obviously, I could copy them in other ways, but I think MA should do a more thorough job.)
    2. Migration Assistant offers to migrate absolutely no applications. Even applications that SL will run from the drive cannot be migrated. (Some are PPC apps, but SL will run them via Rosetta. Others are Universal apps.)
    Am I expecting too much of Migration Assistant?
    Is the Migration Assistant shipped with SL Server (and updated through Software Update) not capable of running under SL Server?
    Should SL MA refuse to migrate any applications from a Power Mac, even Universal applications?
    Am I missing something obvious?
    Is there key information I have omitted?

    markwmsn wrote:
    ...It's not the twenty bucks, it's the principle of the thing.
    Not sure what you meant by that statement.  Although this "principle" may be more important to you than the twenty bucks, I know that my time is worth more to me than your twenty bucks!
    What apps are you using?
    markwmsn wrote:
    I was able to install Snow Leopard (client) in a partition, and it was able to migrate users and many applications from the G4 clone on the portable drive. Some of the apps even run.
    Then I went back to my SL Server virtual machine and tried to migrate FROM the SL client partition. Migration Assistant showed the same symptoms as importing from the clone directly (no apps offered, bogus "dup user" errors). I am forced to conclude that either (a) Migration Assistant 3.0.4/1.1 is broken when run on SL Server or (b) my new SL Server installation is broken. I'm either going to have to boot back and forth to run the old apps or find their installation media and reinstall them in my SL Server virtual machine.
    Even worse, I realized that one of the antique programs I still haven't dug everything out of is a Classic application that had to be kludged to survive Y2K!
    Thanks again, MIchaelLAX.
    Anybody else have any clever ideas?
    So, glad to see that Migration Assistant did work for you in Snow Leopard...
    More clever ideas:
    Install Snow Leopard client in Parallels and use its Migration Assistant:
    http://forums.macrumors.com/showthread.php?t=1365439
    Here is a recent post I assembled for running Classic apps on Intel Macs:
    With the newer Intel Macs, you have to run a Classic emulator such as SheepShaver, which requires you to extract the Mac ROMs from your older Classic Mac and then install Mac OS 9.
    A related program is Chubby Bunny, which comes bundled with all of that included (google the term "Classic-On-Intel v 4.0.1 chubby bunny").
    More information on SheepShaver:
    http://www.emaculation.com/doku.php/sheepshaver_mac_os_x_setup
    and
    http://www.everymac.com/mac-answers/mac-os-9-classic-support-faq/run-macos-9-on- intel-macs.html
    and more information about Chubby Bunny:
    http://www.macwindows.com/OS9_on_Intel_Mac.html#092408b
    and
    http://hackthemac.blogspot.co.uk/2008/08/chubby-bunny-old-virtual-machine.html
    Here is the Classic CD-ROM version of RISK II running in SheepShaver on my Lion Mac Mini:
                                  [click on image to enlarge]

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:
    http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html

  • Insert problem using a SELECT from table with a index by function TRUNC

    I came across this problem when trying to insert from a select statement, the select returns the correct results however when trying to insert the results into a table, the results differ. I have found a work around by forcing an order by on the select, but surely this is an Oracle bug as how can the select statements value differ from the insert?
    Platform: Windows Server 2008 R2
    Oracle 11.2.3 Enterprise edition
    (I have not tried to replicate this on other versions)
    Here are the scripts to create the two tables and source data:
    CREATE TABLE source_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD'));
    INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD'));
    CREATE TABLE result_data
      ID                 NUMBER(2),
      COUNT_DATE       DATE
    );Now run the select statement:
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')You should get the following:
    1     2012/02/01
    1     2012/03/01
    1     2012/01/01Now insert into the results table:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM');Select from that table and you get:
    1     2012/03/01
    1     2012/03/01
    1     2012/03/01The most recent month is repeated for each row.
    Truncate your table and insert with the following statement and the results should now be correct:
    INSERT INTO result_data
    SELECT id, TRUNC(count_date, 'MM')
    FROM source_data
    GROUP BY id, TRUNC(count_date, 'MM')
    ORDER BY 1, 2;If anyone has encountered this behavior before could you please let me know, I can't see that I am making a mistake as the selects results are correct they should not differ from what is being inserted.
    Edited by: user11285442 on May 13, 2013 5:16 AM
    Edited by: user11285442 on May 13, 2013 6:15 AM

    Hi,
    welcome to the forum. I cannot reproduce the same behavior.
    Could you please post the SQLPlus output while executing all commands, like it has been done by S10390?
    Also post the output of the following command:
    SELECT * FROM v$version;When you put some code or output please enclose it between two lines starting with {noformat}{noformat}
    i.e.:
    {noformat}{noformat}
    SELECT ...
    {noformat}{noformat}
    Formatted code is easier to read.
    Regards.
    Al                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Problem using repaint() method from another class

    I am trying to make tower of hanoi...but unable to transfer rings from a tower to another...i had made three classes....layout21 where all componentents of frame assembled and provided suitable actionlistener.....second is mainPanel which is used to draw the rods n rings in paintComponent.....and third is tower in which code for hanoi is available...i had made an object of mainPanel at layoout21 n tower but i m not able to call repaint from tower..gives an error : cannot find the symbol....method repaint in tower.
    code fragments od three classes are:
    LAYOUT21
    class layout21 extends JFrame implements ActionListener
    { private Vector rod1 = new Vector();
    private Vector rod2 = new Vector();
    private Vector rod3 = new Vector();
    private String elem; //comment
    public String r22;
    public boolean in=false;
    public int count=0; //no of times the transfer to other rods performed
    private int r3,rings; // current no of rings
    private JComboBox nor,col;
    private JLabel no;
    private JLabel moved;
    private JLabel no1;
    private JButton start;
    private JButton ref;
    private AboutDialog dialog;
    private JMenuItem aboutItem;
    private JMenuItem exitItem;
    private tower t;
    final mainPanel2 p =new mainPanel2();
    public layout21()
    { t = new tower();
         Toolkit kit =Toolkit.getDefaultToolkit();
    Image img = kit.getImage("java.gif");
    setIconImage(img);
    setTitle("Tower Of Hanoi");
    setSize(615,615);
    setResizable(false);
    setBackground(Color.CYAN);
         JMenuBar mbar = new JMenuBar();
    setJMenuBar(mbar);
    JMenu fileMenu = new JMenu("File");
    mbar.add(fileMenu);
    aboutItem = new JMenuItem("About");
    aboutItem.addActionListener(this);
    fileMenu.add(aboutItem);
    exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(this);
    fileMenu.add(exitItem);
    Container contentPane =getContentPane();
    JPanel bspanel = new JPanel();
    JPanel bnpanel = new JPanel();
    setBackground(Color.CYAN);
         //JComboBox
    nor = new JComboBox();
    nor.setEditable(false);
    nor.addItem("3");
    nor.addItem("4");
    nor.addItem("5");
    nor.addItem("6");
    nor.addItem("7");
    nor.addItem("8");
    nor.addItem("9");
    bspanel.add(nor);
    col = new JComboBox();
    col.setEditable(false);
    col.addItem("BLACK");
    col.addItem("GREEN");
    col.addItem("CYAN");
    bspanel.add(col);
    JLabel tl = new JLabel("Time");
    tl.setFont(new Font("Serif",Font.BOLD,12));
    bspanel.add(tl);
    JTextField tlag = new JTextField("0",4);
    bspanel.add(tlag);
    start =new JButton("Start");
    bspanel.add(start);
    ref =new JButton("Refresh");
    bspanel.add(ref);
    JButton end =new JButton("End");
    bspanel.add(end);
    start.addActionListener(this);
    nor.addActionListener(this);
    col.addActionListener(this);
    ref.addActionListener(this);
    end.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    dispose(); // Closes the dialog
    contentPane.add(bspanel,BorderLayout.SOUTH);
    JLabel count = new JLabel("No of Transfer reguired:");
    count.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(count);
    no = new JLabel("7");
    no.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(no);
    JLabel moved = new JLabel("Moved:");
    moved.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(moved);
    no1 = new JLabel("0");
    no1.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(no1);
    contentPane.add(bnpanel,BorderLayout.NORTH);
    contentPane.add(p,BorderLayout.CENTER);
         String r = (String)nor.getSelectedItem();
    rings = Integer.valueOf(r).intValue();
    p.draw(rings,1) ;
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if(source == start)
    r3 = Integer.valueOf((String)nor.getSelectedItem()).intValue();
    p.transfer(false);
    t.initialise(rod1,rod2,rod3,0);
    t.towerOfHanoi(r3);
         //repaint();
         if(source == ref)
    { rod1.removeAllElements() ;
    rod2.removeAllElements() ;
    rod3.removeAllElements() ;
    count=0;
              r3 = Integer.valueOf((String)nor.getSelectedItem()).intValue();
              p.draw(r3,1);
    p.transfer(true);
    no1.setText(""+0);
    p.trans_vec(rod1,rod2,rod3);
    t.initialise(rod1,rod2,rod3,0);
              System.out.println("");
              repaint();
    if(source == nor)
    { JComboBox j = (JComboBox)source;
    String item = (String)j.getSelectedItem();
    int ring1 = Integer.valueOf(item).intValue();
    int a=1;
    for(int i=1;i<=ring1;i++)
    { a = a*2;
    a=a-1;
    no.setText(""+a);
    p.draw(ring1,1);
    repaint();
    if(source == aboutItem)
    {  if (dialog == null) // first time
    dialog = new AboutDialog(this);
    dialog.setVisible(true);
    if(source == exitItem)
    {  System.exit(0);
         if (source==col)
         { JComboBox j = (JComboBox)source;
    String item = (String)j.getSelectedItem();
              repaint();
    TOWER
    class tower extends Thread
    { private Vector rod1 = new Vector();
    private Vector rod2 = new Vector();
    private Vector rod3 = new Vector();
    private int count ;
    private String elem;
    final mainPanel2 z =new mainPanel2();
    public void initialise(Vector r1,Vector r2,Vector r3,int c)
    { rod1 = r1;
    rod2 = r2;
         rod3 = r3;
         count =c;
    public void towerOfHanoi(int rings)
    for(int i=0;i<rings;i++)
    rod1.add(" "+(i+1));
    System.out.println("rod1:"+rod1.toString());
    hanoi(rings,1,2);
    public void hanoi(int m,int i, int j)
    if(m>0)
    { hanoi(m-1,i,6-i-j);
    if(i==1 && j==2 && rod1.isEmpty()==false)
    { count++;
    //no1.setText(""+count);
    elem = (String)rod1.remove(0);
    rod2.add(0,elem);
         //z.trans_vec(rod1,rod2,rod3);
    repaint(); //NOT ABLE TO USE METHOD HERE...WHY??
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 2:"+rod2.toString());
    if(i==1 && j==3 && rod1.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
         elem = (String)rod1.remove(0);
    rod3.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();//
    // z.hanoi_paint();
                   try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 3:"+rod3.toString());
    if(i==2 && j==1 && rod2.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
         elem = (String)rod2.remove(0);
    rod1.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 1:"+rod1.toString());
    if(i==2 && j==3 && rod2.isEmpty()==false)
    { count++;     
         //no1.setText(""+count);
         elem = (String)rod2.remove(0);
    rod3.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 3:"+rod3.toString());
    if(i==3 && j==1 && rod3.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
    elem = (String)rod3.remove(0);
    rod1.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
         try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 1:"+rod1.toString());
    if(i==3 && j==2 && rod3.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
    elem = (String)rod3.remove(0);
    rod2.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 2:"+rod2.toString());
    hanoi(m-1,6-i-j,j);
    MAINPANEL
    class mainPanel2 extends JPanel //throws IOException
    public Vector line = new Vector();
    public Vector rod11= new Vector();
    public Vector rod22= new Vector();
    public Vector rod33= new Vector();
    public int no_ring;
    public int rod_no;
    String pixel;
    StringTokenizer st,st1;
    int x,y;
    public boolean initial =true;
    public void paintComponent(Graphics g)
    { System.out.println("repaint test");
    bresenham(100,60,100,360);
         bresenham(101,60,101,360);
    bresenham(102,60,102,360);
    bresenham(103,60,103,360);
    bresenham(104,60,104,360);     
    g.setColor(Color.BLUE);
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(300,60,300,360);
    bresenham(301,60,301,360);
    bresenham(302,60,302,360);
    bresenham(303,60,303,360);
    bresenham(304,60,304,360);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(500,60,500,360);
    bresenham(501,60,501,360);
    bresenham(502,60,502,360);
    bresenham(503,60,503,360);
    bresenham(504,60,504,360);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(0,361,615,361);//used to get a pixel according to algo.. . func not provided
    bresenham(0,362,615,362);
    bresenham(0,363,615,363);
    bresenham(0,364,615,364);
    bresenham(0,365,615,365);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    if(initial==true)
    g.setColor(Color.RED);
    for(int i = no_ring;i>0;i--)
    { g.drawLine(100-(i*8),360-(no_ring - i)*10,100+(i*8)+5,360-(no_ring - i)*10);
    g.drawLine(100-(i*8),359-(no_ring - i)*10,100+(i*8)+5,359-(no_ring - i)*10);
    g.drawLine(100-(i*8),358-(no_ring - i)*10,100+(i*8)+5,358-(no_ring - i)*10);
    g.drawLine(100-(i*8),357-(no_ring - i)*10,100+(i*8)+5,357-(no_ring - i)*10);
    g.drawLine(100-(i*8),356-(no_ring - i)*10,100+(i*8)+5,356-(no_ring - i)*10);
    // draw for each rod
    //System.out.println("rod11:"+rod11);
    //System.out.println("rod22:"+rod22);
    //System.out.println("rod33:"+rod33);
         int r1 = rod11.size();
         int r2 = rod22.size();
         int r3 = rod33.size();
    String rd1,rd2,rd3;
    int r11,r12,r21,r22,r31,r32;
    if(initial == false)
         { g.setColor(Color.RED);
         while(rod11.size()>0)
    { r12 = rod11.size()-1;
              rd1 = (String)rod11.remove(r12);
    r11 = Integer.valueOf(rd1).intValue();
    g.drawLine(100-((r11+1)*8),360-(r1 - (r11+1))*10,100+((r11+1)*8)+5,360-(r1 - (r11+1))*10);
    g.drawLine(100-((r11+1)*8),359-(r1 - (r11+1))*10,100+((r11+1)*8)+5,359-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),358-(r1 - (r11+1))*10,100+((r11+1)*8)+5,358-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),357-(r1 - (r11+1))*10,100+((r11+1)*8)+5,357-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),356-(r1 - (r11+1))*10,100+((r11+1)*8)+5,356-(r1 - (r11+1))*10);
         while(rod22.size()>0)
    { g.setColor(Color.RED);
              r22 = rod22.size()-1;
         System.out.println("TEST *************************:"+r22);
              try
         // e.printStackTrace();      
              InputStreamReader isr = new InputStreamReader(System.in);
         BufferedReader br = new BufferedReader(isr)      ;
         br.readLine() ;
         }catch(Exception f) {}
              rd2 = ((String)rod22.remove(r22)).trim();
    r21 = Integer.valueOf(rd2).intValue();
    g.drawLine(300-((r22+1)*8),360-(r2 - (r22+1))*10,300+((r22+1)*8)+5,360-(r2 - (r22+1))*10);
    g.drawLine(300-((r22+1)*8),359-(r2 - (r22+1))*10,300+((r22+1)*8)+5,359-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),358-(r2 - (r22+1))*10,300+((r22+1)*8)+5,358-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),357-(r2 - (r22+1))*10,300+((r22+1)*8)+5,357-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),356-(r2 - (r22+1))*10,300+((r22+1)*8)+5,356-(r2 - (r22+1))*10);
         while(rod33.size()>0)
    { g.setColor(Color.RED);
              r32 = rod33.size()-1;
              rd3 = (String)rod33.remove(r32);
    r31 = Integer.valueOf(rd3).intValue();
    g.drawLine(500-((r32+1)*8),360-(r3 - (r32+1))*10,500+((r32+1)*8)+5,360-(r3 - (r32+1))*10);
    g.drawLine(500-((r32+1)*8),359-(r3 - (r32+1))*10,500+((r32+1)*8)+5,359-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),358-(r3 - (r32+1))*10,500+((r32+1)*8)+5,358-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),357-(r3 - (r32+1))*10,500+((r32+1)*8)+5,357-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),356-(r3 - (r32+1))*10,500+((r32+1)*8)+5,356-(r3 - (r32+1))*10);
    why i m not able to use repaint() method in tower class? from where i can use repaint() method

    i can't read your code - not formatted with code tags
    I have no chance of getting it to compile (AboutDialog class?? p.draw() ??)
    here's a basic routine - add a couple of things to this to demonstrate what is not
    being redrawn
    (compare the readability of below code (using tags) to yours)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Testing extends JFrame
      public Testing()
        setSize(400,300);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        final DrawPanel dp = new DrawPanel();
        JButton btn = new JButton("Change Text Location/Repaint");
        getContentPane().add(dp,BorderLayout.CENTER);
        getContentPane().add(btn,BorderLayout.SOUTH);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            dp.x = (int)(Math.random()*300);
            dp.y = (int)(Math.random()*150)+50;
            repaint();}});
      public static void main(String[] args){new Testing().setVisible(true);}
    class DrawPanel extends JPanel
      int x = 50, y = 50;
      public void paintComponent(Graphics g)
        super.paintComponent(g);
        g.drawString("Hello World",x,y);
    }

  • Having problems using mail merge from address book to word for labels

    I've downloaded and opened avery labels to word and would now like to merge an address book from my mac.
    When I get to the Mail Merge Manager and go to 'get list', my address book is not accessible.
    I'm sure there's a simple way to do this but have not been successful googling or using the help options on both
    pages and address book.
    Thanks in advance for any help you can provide.

    Hi shaun
    Looks like Pages '08 works the same as the previous version. You can't get data from multiple cards in one document. Try using Address Book's native label printing feature.
    Good luck!

  • Problem using this printer from Quicken 2009

    Quicken 2009 fails to print using hp photosmart premium c410.  Printer works with other applications

    Hi,
    Please check this
    https://h30495.www3.hp.com/help#eprint_using.ep-su​pported-files
    which shows this list:
    The HP ePrint service will print email attachments for the following file types automatically:
    Microsoft Word
    Microsoft PowerPoint
    Microsoft Excel*
    Text files (.txt)
    PDF
    HTML
    Images (bmp, jpg, png, gif, tiff)
    * HP strongly recommends that you preview documents in Excel before printing.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Problem using isChannelSecure() function from SecurityService Interface

    Hi everyone
    I'll appreciate if anyone could tell me what is exactly the properties arguman in
    boolean isChannelSecure(byte properties) function from SecurityService Interface.
    Best Regards
    Shanar

    API?

  • Problem using UPDATE command from Java

    I am getting an error when I use the following code in my java file and use it in JSP through beans:
         sql = " UPDATE SHOPPINGCART SET QUANTITY='"+quant+"' WHERE USERNAME ='"+username"' AND TOYID='"+toyid+"' ";
         CM.executeUpdate(sql); //CM is the connection object and I have a method which inturn calls executeUpdate
    This is the error
    C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\DBTest\WEB-INF\cl
    asses\user>javac *.java
    ToyDBAO.java:124: ';' expected
    +"WHERE USERNAME ='"+username"' AND TOYID='"+toyid+"' ";
    ^
    ToyDBAO.java:124: not a statement
    +"WHERE USERNAME ='"+username"' AND TOYID='"+toyid+"' ";
    ^
    2 errors
    Please reply
    Message was edited by:
    aniketh_parmar

    Now the prob is that its compiling the java file. But when I run the program, an error is caught
    sql = " UPDATE SHOPPINGCART SET QUANTITY='"+quant+"' (WHERE USERNAME ='"+username+"' AND TOYID='"+toyid+"')";
    This is the error in tomcat window
    Message Error:You have an error in your SQL syntax; check the manual that corres
    ponds to your MySQL server version for the right syntax to use near '(WHERE USER
    NAME ='aniketh_parmar' AND TOYID='3')' at line 1

  • Problems using FP Advise Timestamp

    I'm having problems using the timestamp from the FP Advise vi - dates/times way out from current date/time. I am using FP1600 and have FW 3.00.
    I've seen some comments re time sync of the FP Server but not sure what this relates to.
    Any help would be appreciated.
    Thanks,
    Niel.

    Niel,
    Sorry for the confusion. The Time Service that the FP-1600 uses is the Lookout Time Synchronization Services. The Lookout Time Syncrhonization services debuted with Lookout 4.0 and shortly thereafter in FieldPoint Explorer 2.0. They are also distributed with later versions of those two products and now with LabVIEW-Data Logging and Supervisory Control module. The set-up of the Time Server is as simple as installing any of the above products. The Time Synchronization Server is installed as a Service and should always be available to any computer or device that is trying to synchronize to it.
    A Time Server is a computer that is running the Lookout Time Synchronization Service as installed by any of the above mentioned products. The primary m
    ethod of configuring a FP-1600 to use the Time Server is the Time Server IP Address assignment box which is located in the window where all of the FP-1600's ethernet parameters is located. It is strongly recommended that the Time Server be assigned a static IP address as the FP-1600 modules do not support DHCP. If you assign a FP-1600 to look at a particular IP address as it's Time Server, and due to DHCP it's changed it's address, then the FP-1600 is unable to synchronize it's clock. An important note is that even when a FP-1600 fails to synchronize it's clock, the delta's on the time-stamps will still be accurate even though the absolute date/time is incorrect.
    Regards,
    Aaron

Maybe you are looking for

  • CDROneDemand's get_file_list function

    Hello,      I am working on a CDR application and am wondering if someone happens to know why the get_file_list function can only pull records for a 60 minute period?  I would like to render a list of all CDR files on a single page, but I feel compel

  • Imposible to buy a Mac

    I am in Germany, I want a MacBook air with 8GB of RAM with a spanish keyboard, also I want to benefit from the Back to School program. Well, in a reseller no problem with the keyboard, but they do not give discounts. In the website there is not an op

  • Passing 900 character value into a Single line

    Hi Experts, I have a scenario that i have to pass 900 character value to a single field. After that i need to download this internal table into an text file. What happening after some characters the values are not getting passed into my varaibale. So

  • BEx-in Excel sheet particular row has to highlightned

    Hi folks, We are having requirement in Bex. that particular  material M00021 has to be highlightened. Every time we will pull data from R/3. the colour may be any colour but it has to highlightened irrespective of the kay figures(so exceptions will n

  • Nokia Lumia 2520: Bluetooth Speakers

    I am thinking of getting a new tablet and really like the look of the 2520. However, I recently had a lot of problems with a Surface 2 and had to return it. The worst problem was a problem when streaming music and using a bluetooth speaker at the sam