TechQA.

Linked Questions

  • Eclipse: large toolbar icons
  • How to remove CodeMix virus
  • How can I look up for specific package in Eclipse?
  • Eclipse .metadata/workspace
  • Eclipse - how to auto-close quotation mark
  • How do I change a Java project's bin folder in Eclipse?
  • Show in feature not working
  • How to kill a sub task in eclipse which can't run in background?
  • Eclipse validation ignore pattern
  • "inspect" window in eclipse 3.6 doesn't remember being resized
  • Useful Eclipse features?
  • How to disable debug optimization in eclipse cdt
  • Target plugins in Java Search in Eclipse
  • Eclipse debugger runs wrong version of code
  • Is there a quick way to export a WAR file in Eclipse 3.4?

Popular Questions

  • Partially applied generic function "cannot be cast to Nothing"
  • Agar.io style ripple effect for canvas arcs
  • What is the difference between [ValidateModel] and a check of valid state in ASP.NET?
  • Passing shared_ptr to std::function (member function)
  • UWP location tracking even when the app was suspended
  • Dynamic partition in hive
  • Woocommerce Different Products Different Currency
  • High and low bytes in VBA
  • Rails render js file but can't execute it
  • My rotated TextView is cut off. What i have to do?

Why SWT system color is disposed?

Asked by Cong Bang DO At 27 April at 21:06

I use the follow code

Display.getDefault().getSystemColor(SWT.COLOR_WHITE)

to get the color for setting background of a label. It seems work fine for Windows system but on Mac system, it returns a color already disposed and hence, eventually it gives

java.lang.IllegalArgumentException: Argument not valid

What should be the explanation for it and how should I do it more properly?

eclipse swt jface
Original Q&A

0 Answers

Related Questions

  • Launching eclipse from command line with explicit vmargs ignores vmargs in eclipse.ini
  • Count for the selected lines in eclipse editor
  • Create remote P2 eclipse update site?
  • Have a default project folder different from the workspace in Eclipse
  • How do I edit project settings for an existing project in Eclipse?
  • In Eclipse, why does "Build Automatically" get mysteriously disabled?
  • I can't see my other projects in Eclipse!
  • Eclipse mess up intendation
  • Eclipse Java Content Assist not working
  • Eclipse is printing the wrong characters in the text editor
  • Java equivalent of .Net Solution file type
  • Eclipse folder Referenced Libraries disappears
  • eclipse: c/c++ build / builder settings page is disabled (grey), can't change settings
  • Dark color scheme for Eclipse
  • Length of current selection in Eclipse
  • Privacy
  • Terms
  • Cookies