gui

Java Swing or Windows Forms for desktop application?

I am writing a fat client application that I would ideally like to be cross-platform, but may settle for Windows-only based on the following: I am much stronger in C# than Java (though I have a few years Enterprise Java experience) I haven't done much with either Windows Forms or Java Swing, just toy apps for each, though I'm more comf...

iphone Animation: why does rotating a UILabel around X axis cut off its bottom half?

I want to rotate a UILabel around the X axis, and animating it. But when the animation starts, the text of the label is cut in two, horizontally. The bottom half disappears, the upper half is rotating. Why? Here's the code: CATransform3D _3Dt = CATransform3DMakeRotation(radians(90.0f), 1.0, 0.0, 0.0); CABasicAnimation *transformAnimat...

.NET: Mechanism for sync-ing long-running tasks

Problem description: you write a library which contains some algorithms/tasks which can take a long time to finish, for various reasons: computational, file system, network communication etc. You want to be able to: Send some progress information about the task (progress, activity logging etc.) Have a way to abort the task before comp...

GWT / Java - somewhat basic UI question on sample code

Hi, I was looking through the sample gwt code provided with gwt, and in hacking around with it - i had two questions re. things that we'nt particularly clear to me (code posted below - slightly long: sorry) 1) The popup dialog box doesnt seem to be set to be 'hidden' at first, and even though its been assembled, it doesnt actually show...

Checking for a series of clicks in java swing GUI

I'm working on a GUI for a chess game and I was wondering if there's any way to check for a series of clicks, for example: user clicks on jPanel THEN user clicks on another jPanel that exists in valid move array. I know I could use a variable to store some kind of state like "isSquareClicked = true" or something but I'd rather not unless...

Placing a button on panel`s border

Is there any way to create border class with buttons on it? Like this: example One important condition - buttons have to be aligned to border position, because panel can change its size. So imho LayeredPane don`t fit for this - there is no any aligment on it. Have one idea - to imitate buttons: create my class for panel override pain...

What's the best way to implement deletion of user objects where there are multiple viewers of the object?

Let's say I have a GUI with multiple types of viewers of user objects. For example, a tree view, a list view and a diagram view. The three views show the same objects. If a user deletes an object from one view, I would like to fire off an event to notify the other two views. I currently do this by exposing an event on the object itself. ...

Hava a java panel load another jpanel

I'm using netbeans to create a GUI application. I've made a main form with a panel that I want other jPanels I make to be placed in. It seems like this should be simple to do seeing as the create new context menu allows me to make plain java panels. I've made all the variables public on the new frame also. EDIT: I have a separate class...

Javascript webkitTransform within a for loop

Hey, I've come across a strange problem whilst trying to mimic the native iPhone page transitions (slide current page out and new page in). Here's my current code (extracted from a larger file, with no errors when debugging, so code logic doesn't seem to be the problem): Notes: A new page is created when a link on the current page i...

What cross platform GUI library has the most native feel for each platform?

I've noticed that GTK has a uniform feel across all platforms, which is great for Linux lovers, but not so great for people who prefer their native GUI feel. I haven't used Qt properly yet, which is why I'm unable to say that this is the best choice to provide the most native feel for each platform - so could someone please confirm whet...

Website design question

Is it too confusing for users, to have the right sidebar on your main page, and on all others left sidebar ? Thank you ...

iPhone translucent black UI dialogue: Cocoa Touch or custom?

I've been seeing this type of dialogue appear in different forms in various apps and I'm wondering whether it's a part of Cocoa Touch or a custom jobby. You can see it here, in Tweetie 2.0: If this is a custom jobby, could anyone offer any pointers as to how to get something like this working? I'm looking to do something similar with ...

How to implement Balloon message in a WPF application

We would like to use balloon messages as described in the UX Guide from Microsoft. I found some samples which uses native code from Windows Forms, but the native code requires a handle to the component which a bit difficult for a WPF application since it doesn't follow the same concept. I found some sample code which uses WPF's decorato...

How to write GUI in Python?

I would like to try to write a GUI application in Python. I found out that there are a lot of ways to do it (different toolkits). And, in this context, I have several basic (and I think simple) question? Is it, in general, a good idea to write a GUI application in Python? What is the standard (easiest and most stable) way to create a G...

Pretty JPanels in Swing

I'm currently working on making my Swing application look better. I want to achieve something along these lines: The idea is for each box to have a pretty header with a background similar to the above image. The closest I can get to anything like this using basic Swing components is adding a TitledBorder but this is nothing close to w...

Using FileReadFields with Wonderware

I suppose this is a long shot considering how few Wonderware questions I've seen on here, but anyway... The FileReadFields function in Wonderware is supposed to parse a CSV file into memory tags. There are no debug messages when stuff doesn't work in Wonderware (not my choice of HMI software, that's for sure), so I have no idea why thi...

Delphi Getting 'Ctrl Tab' and 'Ctrl Shift Tab' in application

In my application I use tabs, my own component, like Google chrome sort of. Each tab reference an explorer component so it is basicly a tabbed browser/explorer. My problem is that I want to use Ctrl Tab and Ctrl Shift Tab to navigate tabs. Setting forms.KeyPreview will not help since the tab key is special key. How can I, in an easy way,...

Book for a Windows Application

Hello everybody. I want to create an small GUI Windows application that looks like all the other usual appz. I am searching for a book that describes the whole procedure. Let's say an address book application that can be have a small database, minimized in the task bar, doing things in the background and so on. I don't care for the l...

How do you force a java swt program to "move itself to the foreground"?

Currently with swt, I sometimes want a program to arbitrarily come to the foreground (like an alarm clock might). Typically the following works (jruby): @shell.setMinimized(false) @shell.forceActive This brings the shell to the front if it was minimized. Creating a new shell at any time also brings the (new shell) to the front. So ...

help with mixing widget painting and UDP data transfers in a multi-threaded context

Here is what I need to do. -I receive log data through a udp connection -I stack relevant data in a qlist -I have a timer running in the main thread that, on timeout, unstacks this data, updates some arrays then calls widget->update -The widget re-implements paintEvent and uses these arrays to draw charts. What would be the best way ...