Unable to resize IClock plug-in which extends java.awt.Panel

I am using an ibm IClock plugin(a javabean) on a JToolBar-this is a clock.The javabean consists of a Canvas on a Panel. I am trying to make the two IClocks smaller so that I can fit a panel to show the date and so that the clocks and date panels are the roughly the same size.
I am unable to resize the Panel. I have tried the following:
1- overriding setPreferredSize. Not sure how to write this code- was getting compilation errors when I did this
public setPreferredSize()
return new Dimension(x,x)
2- invoking setSize(x,x) on the Panel
3- invoking setBounds(x,x,x,x) on the Panel
After Steps 2 and 3 I do a system.out.println and the values I set are returned from the Dimension object. However, the size does not change in the GUI.
I think it may have something to do with the way the layout managers work - and whether they decide to take the preferredSize. From what I can see on the forum, this is a hazy area where short of writing your own layout manager you can't control the LayoutManager very much. But I may be completely wrong, and it may be all much simpler than this.
I am tearing my hair out over this! The only option I can think of is to use an IDE and use a tool to resize the componets. This is the last option. Any ideas would be greatly appreciated.
Thanks
Soraya

Sorry I may have confused you.Actually I understood you perfectly.
The JToolBar does not need to be resized, the IClock
needs to be resized. The IClock is a Panel.
So what I should do is override getPreferredSize() in
class IClock/Panel?That exactly what I meant, and getMaximumSize() too.

Similar Messages

  • Extends.java.awt.Window

    Hi I've tried the following below (/** My Code **/) and get a compilation error: Window is not public in java.awt.Window; cannot be accessed from outside package.
    I did set the JDK1.4 path in the autoexec.bat. The API 1.4 describes Window like:
    public class Window
    extends Container
    /** My Code **/
    import java.awt.*;
    class WarningWindow extends Window
    /** With the below code everything compiles **/
    import java.awt.*;
    class WarningWindow extends Container
    /** END My Code **/
    Can someone please tell me why I get this above error and how can I manage to import the Window class.
    Thank You
    L

    Hello,
    The problem is that Window constructor is not declared as public.
    But i don't know why JDK1.4 refuse that.
    By setting "package java.awt;" you'll access all these method but that is NOT a good solution (you should use Dialog, Frame or Container).
    But there is still something strange... Why JDK1.4 refuses compiling that ??????

  • Double arrow resize cursor of application frame extends over menu bar

    Using Photoshop cs5 in application frame mode, when the cursor reaches any edge of the application frame it automatically turns into a double-arrow which when clicked and dragged will resize the application frame. (that is normal behavior). However, when the application frame is at the top of the screen against the menu bar, and then the cursor passes over the top edge of the application frame and onto the menu bar, that double arrow resizing cursor doesn't change back to the normal arrow cursor. Just very annoying to always see that double arrow when I'm trying to click any menu item on the menu bar.
    I wonder if it's a photoshop issue or a mac issue, or if anyone else has noticed the same thing,
    Working on a MacBook Pro 17" i7, 8gb ram in Photoshop CS5
    Just tried doing the same thing in illustrator and it does not have that problem, everything works like it should - I move the cursor to the top and I don't even get that resize cursor at all (which is the way it should be since the top of the frame is against the menu bar there's no room to extend it upwards) so leads me to think it's a Photoshop issue.
    Any feedback is appreciated.

    I can confirm that this happens on my machine as well.
    Current work around is to click an empty spot on OS X menu bar to reset cursor to normal before selecting a menu item. I have seen this behaviour since initial release of PS CS5 (all updates installed and behaviour still exists).
    Illustrator CS5 does not display this behaviour on my machine either, so it would appear to be confined to Photoshop (I am assuming the mouse-over parameters for resize may be to blame, or lack of recognition of menu bar proximity).
    Machine specs:
    Mac Pro (early 2008) - 2.8 Ghz. Quad-Core
    OS X (10.6.4) - fully updated
    8 GB RAM (1 GB / slot)
    nVidia 8800 GT video adapter
    ACD 23" display
    Logitech LX8 mouse (no software installed for mouse, generic OS X driver)
    Note - Wacom Intous3 drivers installed (haven't tested behaviour with tablet pen yet, but tablet only plugged in and used for specific painting, not during displayed behaviour).
    Default install for PS CS5 and AI CS5.
    Issue displayed with or without any third-party plug-ins installed.
    A fix would be good.

  • Unable to resize a partition.

    Hello everyone
    I `ve recently created a new partition on my MacBook Pro running  OS X 10.9.4, and that was for install the public Beta of Yosemite, then i decided to delete that partition with Utility disks, then that space now appear gray, but the problem is when i tried to resized the partition dragging the lower right conner above, and then i clic "apply", nothing pass, So i was unable to resized the partition.
    Could someone please help me .
    here is a picture of UD.

    As I suggested on your first post of this topic:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    After you have installed OS X you can use Boot Camp Assistant to create a new Boot Camp partition for Windows. Do not attempt to use Disk Utility or Boot Camp Assistant to create a third partition. You can have at most two partitions: OS X and Windows. You created a third partition which you then removed, and that is why this problem arose.

  • Unable to resize window to fit screen

    I am having an issue in which some of the windows from a variety of applications no longer fits on my screen, and I am unable to resize the window because the handle for the window (that I would normally click on and drag to resize) is located in an area of the screen that is not currently visible...
    Specifically, when using firefox, if I try to add a new bookmark, the add bookmark window appears and the bottom of the window is off the bottom of the screen (even with the top of that window appearing all the way at the top of the screen. Another instance occurs when using a Photoshop plugin called noiseware, in which the top and bottom of the plugin window appear off the screen, thereby making it impossible to access certain features and functions of the plugin...
    I have tried trashing the preferences for each application and for the plugin in hopes that that would help, but it does not...I have also attempted the change the resolution of my monitor, but its alread as large as possible...
    Does anyone have any suggestions as to ways in which I can go about resolving this issue? Any help would be sincerly appreciated. Thanks!

    I am having an issue in which some of the windows from a variety of applications no longer fits on my screen, and I am unable to resize the window because the handle for the window (that I would normally click on and drag to resize) is located in an area of the screen that is not currently visible...
    Specifically, when using firefox, if I try to add a new bookmark, the add bookmark window appears and the bottom of the window is off the bottom of the screen (even with the top of that window appearing all the way at the top of the screen. Another instance occurs when using a Photoshop plugin called noiseware, in which the top and bottom of the plugin window appear off the screen, thereby making it impossible to access certain features and functions of the plugin...
    I have tried trashing the preferences for each application and for the plugin in hopes that that would help, but it does not...I have also attempted the change the resolution of my monitor, but its alread as large as possible...
    Does anyone have any suggestions as to ways in which I can go about resolving this issue? Any help would be sincerly appreciated. Thanks!

  • I have a Mac os x 10.7.4 which has Java 32 and 64 bit installed.  Am unable to deposit to bank online getting a message stating I need Java 32 bit for Mac, confused???

    I just got a MAC OS X 10.7.4 which has Java 32 and 64 bit installed.  Am unable to make deposits on line.  I get a msg stating it appears I am using 64 bit java and I need 32 bit java for MAC. I have changed order of java in preferences but it does not make a difference.  Suggestions?

    MadMAC0 posted at https://discussions.apple.com/message/20107182?ac_cid=tw123456#20107182 that:
    Apple has posted (10/22/12) the approved solution for restoring the Java 6 plug-in:
    Java for OS X 2012-006: How to re-enable the Apple-provided Java SE 6 applet plug-in and Web Start functionality.

  • How do i resize the Dialog box which executes while baGetFolder command.

    Dear friends
    I am very new to director and working for the project which is already developed by some other vendor. in this project i have to implement the below mentioned requirment so can anyone pls help me upon this will be greatfull.
    How to resize the dialog box which appears while the command baGetfolder triggers. Actualluy the problem i am facing is the title of the dialog box extends its width so the title appears incompleted with "....", how can i solve this problem?. It is very urgent requirment and eagely waiting for yours reply.
    thanks in advance

    Hi sean wilson,
    Thank you veru much for your great help. The title of the dialog box is now adjusted into two lines after changed the" flag" value to 1. Your suggestion is very helpful and excellent. I hope you will be here to help those people who are struggling with technical problems. Once again i wish to thankyou much.
    Thanks and Regards
    E.VenkateshKumar
    Chennai
    India.

  • Which extender kit(s)?

    I am looking into the Broadband/WiFi extender kits but I'm not sure which one (or ones) I need.
    My house has thick internal brick walls and my router is upstairs in a bedroom/study because that is the main telephone point. The problem is that my tv and most wifi usage is in my lounge downstairs and is currently connected by an unsightly ethernet cable trailing through the house. My wifi connectivity downstairs is woeful and whenever I switch the tv on (especially HD channels) my wifi coverage disappears altogether.
    I would like to be able to use wifi in at least 3 rooms downstairs as well as upstairs, while at the same time watching tv (radical!) It therefore looks like I need a Broadband Extender 500 but with at least 3 additional plug-in extenders. Do I need to buy these all separatelly or is there a "kit" that will do it all?
    TIA

    There are plenty of options out there for you.
    You could go with homeplugs alone, but that'd be pretty costly.
    1 plug in Wifi extender might do the job, unless it is an absolutely gigantic area to cover?
    I wanted AirTunes in my garage stereo which is well outwith the houses wifi coverage so I bought an AirPort Express basestation, plugged an existing homeplug into the router, then another one into the airport express and that was pretty much it. Really really strong coverage for the garage and whole of the garden along with perfect streaming to the stereo.

  • I am trying to resize disk space on parallels 6 for windows XP under configure Hardrive and I get the error resizing failed unable to resize last volume the file system of this volume might be damaged or not supported?  I am on a Mac using Parallels 6

    I have been trying to increase my disk space for windows xp on my Imac and I am running parallels 6.  before opening windows I go into configure in parallels and open the hard drive and try to move the allotted disk space from 32 gig to 64 or any other increased gig and then apply and I get the error message: resizing failed unable to resize last volume.  The file system of this volume might be damaged or not supported.  How do I increase the size??  I just also did a disk repair utility with Apple on the Apple side of my IMAC.  Please Help!!   I had uninstalled SQL server on the windows side and needed to uncompress files to install this and then I ran short on disk space.

    This sounds to me that your Parallels XP file system is corrupted and not the OSX file system.
    Have you checked the XP file system while running the Parallels XP yet ?
    However, it would be better to ask such question in the Parallels Forum http://forum.parallels.com/
    Stefan

  • I have been unable to download adobe acrobat pro, which I purchased on a month to month basis almost exactly 1 year ago, since I purchased it. I just received a renewal email and it had a link to download the program and for the first time when I clicked

    I have been unable to download adobe acrobat pro, which I purchased on a month to month basis almost exactly 1 year ago, since I purchased it. I just received a renewal email and it had a link to download the program and for the first time when I clicked on the link it actually sent me to a page that had the icon to download now. I clicked on that, but when I went to open the file and start downloading after about 3 minutes into downloading it says an error had occurred. Can anyone help me?

    I am a little worried. If you are an existing subscriber why would Adobe need you to download... I wonder if the message is a fake.
    I'm not clear, if you've had it for a year, whether you need to download, or you are just following the email?
    This page with the icon to download now. Was it a page on adobe.com ?

  • I am Unable to restore my iPhone 4 which is in recorvery mode and update to iOS 5.0.1, it seems it is unable to prepare iPhone for restore??.... please help

    I am Unable to restore my iPhone 4 which is in recorvery mode and update to iOS 5.0.1, it seems it is unable to prepare iPhone for restore??.... please help

    See Here...
    Unable to Update or Restore
    http://support.apple.com/kb/HT1808

  • Hi I am unable open my photomerge in CS6. which is showing error48: File or folder not found

    Hi I am unable open my photomerge in CS6. which is showing error48: File or folder not found

    There is one way its getting fixed. Once I update my Adobe Illustrator CC to Adobe Illustrator CC 2014 it is further allowing me to go into the system folder and allocate the font to the file so that it can replace it. My only concern now is that our MAC partners who will receive these files back from us have Adobe CS6. We will down save it to CS6 but I hope they won't experience any font issues because of us using CC 2014? Any light you can shed on this?

  • Invoke a panel object in a class which extends JFrame

    I have a class LoginUI which extends JFrame and another class NewUserUI which extends JPanel. The LoginUI contains a button which when clicked should display the NewUserUI panel in a separate window. How should I invoke the NewUserUI object in the LoginUI class?

    One possibility would be the use of a JOptionPane containing the JPanel.
    Cheers
    DB

  • What is the program name which extend the partitions in BW 3.5 ?

    Hi All..
    What is the program name which extend/split the partitions in BW 3.5 ?
    Thanks..
    Saj

    Hope It's not too late,
    You might be talking about the program described in note "697275":
      - SAP_EXTEND_PARTITIONING_INF for INFORMIX databases.
    There's also a possibility described in note "895539":
      - SAP_PART_EXTEND_ETABLE  for ORACLE databases.
    Good Luck!
    Edited by: Martin St-Jean on Dec 3, 2009 5:07 PM
    Edited by: Martin St-Jean on Dec 3, 2009 5:20 PM

  • Hi, I have recently downloaded a trial version of Ps CC (up until then I have used Ps CS6). All my presets have migrated to the CC version from the CS6 one. However, I can't find any of the plug-ins which I have in CS6, such as Imagenomic Noiseware, Googl

    Hi, I have recently downloaded a trial version of Ps CC (I am still using Ps CS6). All my presets have migrated very nicely to the CC version from the CS6 one. However, I can't find any of the plug-ins which I have in CS6, such as Imagenomic Noiseware, Google NIK Collection, etc. in the CC version. How do I "migrate" the plug-ins to Ps CC? I would appreciate some help with this. Thanks

    Plug-Ins are not Presets.  You need to install Plug-in into CC just like you had to install Plug-ins into CS6.

Maybe you are looking for