gui

java GUI freezing because of insertString method?

Hi all, Have you ever heard about a GUI freezing because of repeated calls to the method javax.swing.Document.insertString ?? There is my code: private int insertNotation(GameNode startNode, StyledDocument doc, int pos) { String s = ""; int startPos = pos; boolean isContinuous = false; Style boldStyle, regularStyle, ...

problem in displaying BitmapFields in HorizontalFieldManager in a row in Blackberry Storm

I had created a HorizontalFieldManager & added BitmapFields in that. In Blackberry Storm, Display.getWidth() is 480. In that I want to use first 450 to add some BitmapFields at LHS of screen which I m creating at runtime & add 2 BitmapFields at start at RHS of Screen. 2 BimapFields which I want to show at start r added in Constructo...

How to handle a GUI of an external software from within Java code

Hi there, I need to run an external application from within my Java code. I can run the application with Runtime r = Runtime.getRuntime() and then r.exec(...), however, this brings up the GUI of the application. And I still need enter some settings in some fields and press enter. So: Is there some way to handle a GUI (filling out field...

Qt UI for existing C++ project

I have already written a C++ program and I would like to write a GUI for it. I realize Qt is a wonderful tool, however, Qt has it's own classes, which make me quite confused. eg: instead of String, Qt has a class named QString.. I am wondering if I can mix C++ code and Qt code in C++? ...

How to set Anti Aliasing in Blackberry Storm?

I m drawing in a bitmap like.. bitmap[i] = new Bitmap(60, 60); Graphics g = new Graphics(bitmap[i]); g.setColor(Color.BLACK); g.drawLine(....); Now how to set Anti-Aliasing on before g.drawLine()? ...

Can i use red/green text colors to provide additional information?

I have an text outline tree where i display a lot of information There are already upto three icons for each item (one in front, one after the text and one at the left side). But i still need to show more. So i used different text colors. Unfortunately only the red=stop,forbidden,protected and green=okay,valid,allowed is so universal kn...

How can i draw a window content into a bitmap (using Win32 C++)

I need this for some animation effects and i remember there is a window message for doing this. Something like WM_PAINT but it deliveres a device context with the message. But i can't find it anymore on MSDN. ...

How to handle ButtonField & BitmapField Click (Touch) events in Blackberry Storm?

I have created a ButtonField & a BitmapField like.. public class MyCanvas extends MainScreen implements FieldChangeListener { HorizontalFieldManager hfm; private Bitmap startBitmap; private BitmapField startBitmapField; private ButtonField okButton; MyCanvas() { hfm = new HorizontalFIeldManager(); st...

gwt widget - mutually-exclusive toggle button

I want a hybrid of a ToggleButton and RadioButton. I want the "mutually-exclusive" part of RadioButton, and the gui look and behavior of ToggleButton(up and down states). Does one already exist? ...

Developing for Linux

Hello Guys, I want to develop multimedia encoder for Linux. I want to make use of ready command line codecs like ffmpeg. I want to build nice GUI for that & pass arguments to command line encoders. I am thinking to use Qt. (Is it possible?) I don't know anything about Linux programming, but I have been an Ubuntu user for 8 months. P...

Global context menu for Cut/Copy/Paste with JTextField in Swing App?

What is the best way to implement a global default context menu for a Swing app that has the Windows-standard cut/copy/paste/etc. popup menu for things like JTextField? Tim Boudreau suggested installing a custom UI delegate in this javalobby thread but that was written with Java 5 in mind, so I'm wondering if there's a better way today. ...

Custom/Owner draw control in PyQt?

I am learning PyQt and wonder if one can create custom/owner draw control like one show in the figure below: The search box has magnifier icon on its right border. Is this kind of thing possible with PyQt? Thanks! ...

Empty Worker Threads, What are they?

While debugging a .NET Framework 3.5, WinForms application I spotted some "Worker Thread"s without a name. I know when you open an application you've got a one worker thread by default. However in the middle of debugging when I pause the debugger and take a look at the "Threads" window I see about 5+ similar threads (priority=normal)....

Get current active window's title in Java

I am trying to write a Java program that logs what application I'm using every 5 seconds (this is a time tracker app). I need some way to find out what the current active window is. I found KeyboardFocusManager.getGlobalActiveWindow() but I can't get it to work right. A cross platform solution is preferable, but if one doesn't exist, the...

Display List contents specific field in a ComboBox (C#)

Well, my question is a bit silly, but I've tried lots of different thing without result. I have a ComboBox in my main form and I want to point its data source to the public readonly List PriceChanges list declared in the Filters class. No problem with that but I want to list the Description field. I tried to assign the "Description" ...

Creating GUI with Python in Linux

Quick question. I'm using Linux and I want to try making GUI with Python. I've heard about something like Qt, GTK+ and PyGTK but I don't know what they are exactly and what the difference between them is. Is there any difference on how they work with different DEs like GNOME, KDE, XFCE etc.? Is there any IDE that allows you to create GU...

Matisse or Jigloo ?

We have a dilema; developing desktop application using matisse or jigloo.. Matisse has this XML form files which we are affraid of maintaining later, we don't even know should MyEclipse further support Matisse, even Netbeans - do you think they will give up os support of Matisse? Moreless Jigloo and Matisse have similar behaviour, alt...

Blackberry - get all child fields of control

I am having one horizontal field manager i am adding some components at run time.I want to know which are the components i have placed in the horizontalfieldmanager.Can any one give me idea how to find which are the components are present in horizontal field manager. regards, s.kumaran. ...

Set a custom icon for a QAction when disabled

Is it possible to have a custom icon displayed for a QAction when it is disabled? E.g. display icon A when the tool is enabled and icon B when the tool is disabled. ...

WinForms: force GUI update from UI Thread

In WinForms, how do I force an immediate UI update from UI thread? What I'm doing is roughly: label.Text = "Please Wait..." try { SomewhatLongRunningOperation(); } catch(Exception e) { label.Text = "Error: " + e.Message; return; } label.Text = "Success!"; Label text does not get set to "Please Wait..." before the opera...