How can I have this widget effect in Eclipse platform?

Well, my project now demands such a widget in user interface with the requirements as follows:
This widget can display both text, icon, and even button. If the text on it is too long to display completely, omission marks should replace the redundant words. It is also selectable which is similar to a cell in the JTable, but it should support displaying icons as I said, and should only be scaled in size horizontally but never vertically.
Fortunately, I find that a component in the dialog shown during build or update process meets my request. Does anybody who is familiar with SWT know
how this is managed? That is, which widget(s) should I use? Or can Swing meet my demand? By the way, here is the capture image of eclipse dialog I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
Many many thanks!

Widgets. You'll need to probably create a subclass of JPanel, which will have a JLabel for the icons, and a JButton.
You'll probably need to call setPreferredSize(..) on the button to obtain the text trailing effect when the text overflows the boundaries.
Also, you could add a mouseListener to the panel to create the selection effect when it is clicked, or when any of its sub components are clicked. (recursion methods help to achieve this).
Scaling in size, now that is tricky. To do this, you'll probably have to calculate the width of the panel manually, by summing up the heights of the components and maintaining a fixed width. No an easy task though.
This is a nice component, so get writing. Here is a little help with the recursion
public void setComponentEnabled(Component c, boolean b) {
   c.setEnabled(b);
   if(c instanceof Container) {
        Container co = (Container)c;
        for(int x = 0; x < co.getComponents().length; x++) {
              setComponentEnabled( co.getComponents()[x], b);
}Go on and have some fun. Check in if you have any more problems. Other are always willing to help if they can.
ICE

Similar Messages

  • How can i have this colours on a portrait?

    I'd like to "colour" my pic giving the effects of flashes of two different colours, something like this
    http://us.cdn281.fansshare.com/photos/ellefanning/elle-fanning-shared-photo-2017191971.jpg
    How can i have this effect using photoshop?
    Thank you

    JJMack has gotten you started with using Photoshop in post-production, but this sort of work can be easily done at the time of shooting.
    If one is using at least two strobe units, colored gels can be taped over the lens of the strobe. If the strobes are of the "on-camera" type, a cheap source of colored gels is the Rosco Cine Gel swatch book. It was free from Rosco dealers, but might have a very modest price now. It contains small samples of about every Rosco Cine Gel (and diffusion materials, as well) made, and in a size that fits most "on-camera" strobes perfectly.
    I find that the use of complementary gel colors to be the most arresting, as where the sources overlap, the light becomes white, or very close to it, yet the colors appear where there is only the light from one source.
    Good luck, and have some fun.
    Hunt

  • How can i apply this glowing effect in logo with illustrator?

    How can i apply this glowing effect in logo | ThemeForest Community Forums

    I would make several copies of the original artwork.  On each copy, section the individual areas to be gradients. It looks like you have at least four gradients, both linear and radial.  It's just a matter of building each section and then reassembling each.  Not too complex, yet nice piece of artwork.

  • Hi all ...I would like to add a language that is not available in Photoshop cc2014 .. My computer writes it but backwards .. How can I have this issue solves?

    hi all ...I would like to add a language that is not available in Photoshop cc2014 .. My computer writes it but backwards .. How can I have this issue solves?

    What language are you talking about? You might need to enable Edit/Preferences/Type/Middle Eastern and South Asian for proper display.

  • How can i create this videos effect ?

    Hello, i am new here, and i have a project in my hand. I have to create a slideshow presentation on certain subject.   I have completed the slideshow using a tool called,PhotoStage Slideshow Producer, with a bunch of 60 images. Now i want to add a small video effect in the beginning of the slideshow to make it look more professional. Here is the download link for the video. http://www.mediafire.com/download/i5az6a7rjp3lbkn/Video.rar This video is farely advanced for my liking, but you got the general message. I want something really simple and i want to add it in between different images for some effect. I may be asking in the wrong forum, again. Can Adobe’s Premiere Pro do it , or is there some other simple program that can make these kind of effect. Thank you.

    Might be able to create it with Filter > Render > Clouds with your foreground and background colors set to the lighter and darker versions of your selected color. Then you might need to use Filter > Blur > Gaussian Blur to smooth things out

  • Your iOS 7 has broken my ipad2 wifi, how can I have this replaced? Thank you! 3p's

    1Lester12
    30-Mar-2014 16:59
    I had posted this, but directd n wrong forum,2 x's
    29-Mar-2014 04:34
    Your ios 7 has broken my wifi connection on my ipad. I hve a brand new router 30hrs old. My ipad 2 is not jail broken, jst ios 7 broken! Turning my router on and off could possibly break this also. Entropy seems solid!
    My iphone 4 has no issue with ios 7 nor my apple tv!? This is becoming very fustrating nd quite annoying, I never had a problem with ios 6. Issue purely with
    ios 7. Had to have telephone connections checked also, no luck! Have also spent monies on xtra GB, problem still persists, making it very unreliable to wrk with product! Would like to remain with product? If problem can be contained and rectified. Confidence is quite low in remaining with company. Can there be a speedier solution to this unreliable update, thats just manifesting in my ipad2 before it becomes stagnant. Just knowing if your technicians cannot solve the problem would ease my mind if i need to re-invest with another company (sadly) for my ipad2 works perfectly with all apps, its just the main heart beats been cannabalized, as though you have three repeaters missing in your program???? To keep our WIFI on the matrix because itz not in the Matrix. Have tried your quck fix solutions only to find their only wishful thinking. (Downtime)
    Next message i read prefferably would be a lot more solid and positive in solving this technical glitch thats becoming nothing but a big itch so K. I. S. S use our S. W. A. T. analyses, head down and P. P. P. P. P. would you agree and hopefully we can all get on with our own private lives and come up with positive replies and better ideas instead of big ideas that just ain't 99.9% Working!
    Anyhow Good Luck Hope you Work it Out.!!!
    Since posting this hopeful delima, iOS 7 has stayd connected for at least a solid 12 hrs+, iCloud backup has now been running more than 5.5 hrs with no interruptions, storage information at top of page has also disappeared indicating a backup rate of 60% success, f this b my new iOS, I only have heart crossd, not fingers. Future update, Probable. Hopefully finger on the button, Confidence, High!!!
    So far wifi still connected

    Some things to try first:
    1. Turn Off your iPad. Then turn Off (disconnect power cord for 30 seconds or longer) the wireless router & then back On. Now boot your iPad. Hopefully it will see the WiFi.
    2. Go to Settings>Wi-Fi and turn Off. Then while at Settings>Wi-Fi, turn back On and chose a Network.
    3. Change the channel on your wireless router (Auto or Channel 6 is best). Instructions at http://macintoshhowto.com/advanced/how-to-get-a-good-range-on-your-wireless-netw ork.html
    4. Go into your router security settings and change from WEP to WPA with AES.
    5.  Renew IP Address: (especially if you are drooping internet connection)
        •    Launch Settings app
        •    Tap on Wi-Fi
        •    Tap on the blue arrow of the Wi-Fi network that you connect to from the list
        •    In the window that opens, tap on the Renew Lease button
    6. Potential Quick Fixes When Your iPad Won’t Connect to Your Wifi Network
    http://ipadinsight.com/ipad-tips-tricks/potential-quick-fixes-when-your-ipad-won t-connect-to-your-wifi-network/
    ~~~~~~~~~~~~~~~~~~~~~~~~~
    Fix WiFi Issue for iOS 7
    http://ipadnerds.com/fix-wifi-issue-ios-7/
    iOS 6 Wifi Problems/Fixes
    Wi-Fi Fix for iOS 6
    https://discussions.apple.com/thread/4823738?tstart=240
    How To: Workaround iPad Wi-Fi Issues
    http://www.theipadfan.com/workaround-ipad-wifi-issues/
    Another Fix For iOS 6 WiFi Problems
    http://tabletcrunch.com/2012/10/27/fix-ios-6-wifi-problems-ssid/
    Wifi Doesn't Connect After Waking From Sleep - Sometimes increasing screen brightness prevents the failure to reconnect after waking from sleep. According to Apple, “If brightness is at lowest level, increase it by moving the slider to the right and set auto brightness to off.”
    Fix For iOS 6 WiFi Problems?
    http://tabletcrunch.com/2012/09/27/fix-ios-6-wifi-problems/
    Did iOS 6 Screw Your Wi-Fi? Here’s How to Fix It
    http://gizmodo.com/5944761/does-ios-6-have-a-wi+fi-bug
    How To Fix Wi-Fi Connectivity Issue After Upgrading To iOS 6
    http://www.iphonehacks.com/2012/09/fix-wi-fi-connectivity-issue-after-upgrading- to-ios-6.html
    iOS 6 iPad 3 wi-fi "connection fix" for netgear router
    http://www.youtube.com/watch?v=XsWS4ha-dn0
    Apple's iOS 6 Wi-Fi problems
    http://www.zdnet.com/apples-ios-6-wi-fi-problems-linger-on-7000004799/
    ~~~~~~~~~~~~~~~~~~~~~~~
    iPad: Issues connecting to Wi-Fi networks
    http://support.apple.com/kb/ts3304
    How to Boost Your Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Boost-Your-Wi-Fi-Signal.h Mt
    Troubleshooting a Weak Wi-Fi Signal
    http://ipad.about.com/od/iPad_Troubleshooting/a/Troubleshooting-A-Weak-Wi-Fi-Sig nal.htm
    How to Fix a Poor Wi-Fi Signal on Your iPad
    http://ipad.about.com/od/iPad_Troubleshooting/a/How-To-Fix-A-Poor-Wi-Fi-Signal-O n-Your-iPad.htm
    iOS Troubleshooting Wi-Fi networks and connections  http://support.apple.com/kb/TS1398
    iPad: Issues connecting to Wi-Fi networks  http://support.apple.com/kb/ts3304
    WiFi Connecting/Troubleshooting http://www.apple.com/support/ipad/wifi/
    How to Fix: My iPad Won't Connect to WiFi
    http://ipad.about.com/od/iPad_Troubleshooting/ss/How-To-Fix-My-Ipad-Wont-Connect -To-Wi-Fi.htm
    iOS: Connecting to the Internet http://support.apple.com/kb/HT1695
    iOS: Recommended settings for Wi-Fi routers and access points  http://support.apple.com/kb/HT4199
    How to Quickly Fix iPad 3 Wi-Fi Reception Problems
    http://osxdaily.com/2012/03/21/fix-new-ipad-3-wi-fi-reception-problems/
    iPad Wi-Fi Problems: Comprehensive List of Fixes
    http://appletoolbox.com/2010/04/ipad-wi-fi-problems-comprehensive-list-of-fixes/
    Connect iPad to Wi-Fi (with troubleshooting info)
    http://thehowto.wikidot.com/wifi-connect-ipad
    10 Ways to Boost Your Wireless Signal
    http://www.pcmag.com/article2/0,2817,2372811,00.asp
    Fix iPad Wifi Connection and Signal Issues  http://www.youtube.com/watch?v=uwWtIG5jUxE
    Fix Slow WiFi Issue https://discussions.apple.com/thread/2398063?start=60&tstart=0
    How To Fix iPhone, iPad, iPod Touch Wi-Fi Connectivity Issue http://tinyurl.com/7nvxbmz
    Unable to Connect After iOS Update - saw this solution on another post.
    https://discussions.apple.com/thread/4010130
    Note - When troubleshooting wifi connection problems, don't hold your iPad by hand. There have been a few reports that holding the iPad by hand, seems to attenuate the wifi signal.
    Some Wi-Fi losses may stem from a problematic interaction between Wi-Fi and cellular data connections. Numerous users have found that turning off Cellular Data in Settings gets their Wi-Fi working again.
    You may have many apps open which can possibly cause the slowdown and possibly the loss of wifi. In iOS 4-6 double tap your Home button & at the bottom of the screen you will see the icons of all open apps. Close those you are not using by pressing on an icon until all icons wiggle - then tap the minus sign. For iOS 7 users, there’s an easy way to see which apps are open in order to close them. By double-tapping the home button on your iPhone or iPad, the new multitasking feature in iOS 7 shows full page previews of all your open apps. Simply scroll horizontally to see all your apps, and close the apps with a simple flick towards the top of the screen.
    Wi-Fi or Bluetooth settings grayed out or dim
    http://support.apple.com/kb/TS1559
    ~~~~~~~~~~~~~~~
    If any of the above solutions work, please post back what solved your problem. It will help others with the same problem.
     Cheers, Tom

  • Yur, iOS 7 has broken my ipad2 wifi, how can I hav this replced? Thnk u! 3p's

    I had posted this, but directd n wrong forum,
    29-Mar-2014 04:34
    Your ios 7 has broken my wifi connection on my ipad. I hve a brand new router 30hrs old. My ipad 2 is not jail broken, jst ios 7 broken! Turning my router on and off could possibly break this also. Entropy seems solid!
    My iphone 4 has no issue with ios 7 nor my apple tv!? This is becoming very fustrating nd quite annoying, I never had a problem with ios 6. Issue purely with
    ios 7. Had to have telephone connections checked also, no luck! Have also spent monies on xtra GB, problem still persists, making it very unreliable to wrk with product! Would like to remain with product? If problem can be contained and rectified. Confidence is quite low in remaining with company. Can there be a speedier solution to this unreliable update, thats just manifesting in my ipad2 before it becomes stagnant. Just knowing if your technicians cannot solve the problem would ease my mind if i need to re-invest with another company (sadly) for my ipad2 works perfectly with all apps, its just the main heart beats been cannabalized, as though you have three repeaters missing in your program???? To keep our WIFI on the matrix because itz not in the Matrix. Have tried your quck fix solutions only to find their only wishful thinking. (Downtime)
    Next message i read prefferably would be a lot more solid and positive in solving this technical glitch thats becoming nothing but a big itch so K. I. S. S use our S. W. A. T. analyses, head down and P. P. P. P. P. would you agree and hopefully we can all get on with our own private lives and come up with positive replies and better ideas instead of big ideas that just ain't 99.9% Working!
    Anyhow Good Luck Hope you Work it Out.!!!
    Since posting this hopeful delima, iOS 7 has stayd connected for at least a solid 12 hrs+, iCloud backup has now been running more than 5.5 hrs with no interruptions, storage information at top of page has also disappeared indicating a backup rate of 60% success, f this b my new iOS, I only have heart crossd, not fingers. Future update, Probable. Hopefully finger on the button, Confidence, High!!!

    You're still posting in the wrong forum.  This is iCoud.  The iPad forum is here: https://discussions.apple.com/community/ipad/using_ipad.

  • How can I get this stroke effect?

    Does anyone know any kind of brush stroke or effect I could use to get the sort of drawn line effect shown in the black outlines in this image?
    http://i456.photobucket.com/albums/qq285/peachymanatee/photo-24.jpg
    Thanks for any help!

    Haha, Scott! He's in the Illustrator forum and that's the advice you give!? Hehe . . . oy
    Though I agree, doing that would get nice results, but then you have to vectorize and clean up anyway.
    I suggest - stroked lines and Distort > Roughen with very subtle settings. Expand Appearance and then grab the Warp Tool (play with settings [Select the Warp Tool and press ENTER], probably using very little Simplify, if any) and finesse the lines around a bit. I call it "beating up your paths" - click like a madman, randomly, all over the paths to get 'em all random/natural looking.
    I like the illustration style, hope you get it figured out.

  • How can I create this rollover effect in Flash CS5?

    I'm pretty new to Flash, and I want to create a button like these.
    I understand how to make a basic rollover button, but I haven't got a clue how to do animation like that.
    http://www.werkstette.dk

    the easiest way would be to create one movieclip that has
    1.  a rectangular mask (to mask everything),
    2.  a dynamic textfield  with whatever colored and embedded font.
    3.  whatever colored background
    4.  another textfield that has a y property greater than the mask so it's not visible until the mask is rolled over.  embed the font
    5.  another background for the rolled over movieclip
    everything will need instance names so you can control with actionscript.  you can then assign rollover and rollout code to your movieclip mask.
    on rollover, you'll tween the first textfield (and possibly background) to a y less than your mask.  tween the textfield with easing.  and you'll tween the 2nd textfield and 2nd background to about the same y as your mask.  again, tween the textfield with easing but not the background.

  • TS1292 My iTunes card is not active? I'm verry annoyed! How can I have this solved as quickly as possible

    My $20 iTunes card in not active!?? Why? How do you fix it?

    Timpitt,
    The article you have listed at the top answers your question. Contact iTunes Support.....
    https://expresslane.apple.com/Issues.action
    Cheers,
    GB

  • I would like to do a loop (with LabWindows CVI 5.0) if the result of the toggle button check box is right. But it doesn't run because I don't know how can I have this data?

    If you have an answer, please send me an e-mail.
    Thank you very much for your help.
    A French guy.

    Guess I'm missing something...
    The simplest way to do this is to use GetCtrlVal (panel, Control, &val);
    val (integer) will be 0 if checkbox is not checked, 1 if checked.
    Should your actual problem be different just explain me and I'll try to help you.
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • How can I get this text effect

    I'm not sure if it's a bevel and emboss effect or what. Thanks in advance.

    Thanks. For some reason it won't let me add a gradient. It can be another other color though.

  • When I close firefox, I want all the tabs I had open to come back when I return. How can I have this happen?

    I just want firefox to remember what I had open before I closed the tab

    In the Tools menu select Options to open the options dialog. Select the General panel and change the setting "When Firefox starts" to "Show my windows and tabs from last time".

  • HT1390 I've been charged twice for the same movie ... how can I reverse this charge?

    Ive been charged twice for the same movie on iTunes.  How can I have this secondary charge reversed? 

    On your email receipt and in the Purchase History section of your iTunes account there is a link that says Report a Problem. Click on that link.
    Or you can contact iTunes by:
    Apple - Support - iTunes - Contact Us

  • I have a 24" imac model 9,1 running OS 10.6.8 and I am experiencing frequent freezes and crashes.   How can I solve this problem?

    I have a 24" imac model 9,1 running OS 10.6.8 and I am experiencing frequent freezes and crashes.   How can I solve this problem?
    Hal

    As old as your iMac is, have you cleaned out the dust? Dust buildup can lead to over heating issues. Remove any and all things plugged into it including the power cord, Remove the RAM access grille. Vacuum all openings starting with the RAM access area (air intake). Vacuum all ports and plugs, DVD slot and the opening across the top of the rear of the body. Blow compressed air through all your openings and vacuum again to remove any dust you loosend. Reinstall the RAM grille. Plug in the keyboard and mouse if not blue tooth. Insert power cord...
    You are now in a perfect position to do a
    SMC RESET
    http://support.apple.com/kb/HT3964
    Shut down the computer.
    Unplug the computer's power cord and ALL peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    It is the 5 second timing that initiates the reset.
    Here is a link to a Widget to monitor your temps and other operations:
    http://islayer.com/apps/istatpro/
    since you are running 10.6.8 did you install the combo update?
    Mac OS X 10.6.8 Update Combo v1.1
    It is more stable than the regular version.
    You could use your original install disc and boot from the disc, run Disc Utility and do a repair disk.

Maybe you are looking for

  • My G4 keeps giving me a spinning beachball

    I have a G4 tower running 10.4 something.  I can't get in to see which 10.4 because everytime I do anything the spinning beachball kicks in.  When it times out, the very next time I do anything it kicks in again.  I am attempting to install the OS ag

  • Safari 8 crash / freeze due to failed HTTPS handshaking

    Since last month some networking devices in my office are malfunction. The IT staffs spend weeks diagnosing these devices, but still can't determine the source of problem. So we have to put up with the unstable internet connection for a while. I don'

  • Downpayment Clearing in Logistic Invoice verification

    Hi All, we have activated Business Function " LOG_MMFI_P2P " and Switch "MM_SFWS_CI_01 - Enhanced Functions in EhP4 for Applications in Materials Management" using Tcode SFW1. And followed all instructions documented when activated Business Function

  • How to include a common java script in all pages to prevent browser closure

    We have already implemented a script to prevent accidentally browser closure. The script has been included in a js static file and loaded in APEX 4.01. There is a way to make the script available to all pages without including it in all pages ? Ad ex

  • Using Apple TV device through 890L?

    I currently have Dish satellite and want to cancel and use the Apple TV device to watch TV using the 4G LTE 890L as my router. Has anyone done this, is it a wise decision to pay Verizon for a larger data pkg., or keep paying Dish $80.00 plus per mont