gui

Porting java apps to Android platform

I know Java apps can be run in Android. But what I want to know is this: I have a perfectly normal Java app and I want to port it to an android platform. What changes would I need to do to my app in terms of GUI and other code to make it usable in Android? I know Android uses XML file to control the look and feel of its app. So would I n...

How should the model update the UI of its progress?

I am trying to solve a problem in Objective-C, but I don't think the question is language specific. I have to do some processing down in a model class that has no notion of UI. However, this processing takes some time and I want to let the user know the status via a progress bar. My first attempt at this was defining a notion of a pr...

would like to know how to go about doing regression testing effectively ??

Hi All, I would like to know how to go about doing regression testing effectively for a web application. I m spending a lot of time in regression testing for every build. I also hear that automated GUI testing is bad and not worth it. Is there any better way of automating regression testing. if so any good tools to automate GUI tests...

Saving TreeViewer state before setInput()

I'm trying to save jface TreeViewer expansion state to refresh it after calling setInput() method. I tried getExpandedElements, setExpandedElements, getExpandedTreePaths, setExpandedTreePaths methods of TreeViewer bu it doesn't work. Object[] expandedElements = viewer.getExpandedElements(); TreePath[] expandedTreePaths = viewer.getExpan...

How to Avoid Gui Lock

I'm developing a Desktop application. I have a button that upon click calls some webservices. Problem is when there is no connection or on a slow connection the interface becomes unresponsive and it seems as if the application crashed. Wonder what are the techniques to get around this ...

Python GUI Library for Windows/Gnome

I need to create a desktop app that will work with Windows and Gnome(Ubuntu). I would like to use Python to do this. The GUI part of the app will be a single form with a message area and a couple of buttons. The list of GUI's for Python seems overwhelming. I am looking for something simple if possible, the main requirements is it mus...

Show Content with UIWebView on the Iphone

Helllo, i would like to show Content in the UIWebView, which i have added to the Project. for example an image. I know how to set a text in the UIWebView, but i would like to add images or a video which i have added to the project best regards, ...

Free Windows Forms Components Similar to jQuery UI Draggables

EDIT: So, I ended up making my own basic solution to this problem, and it can be found in my own answer to the question below. Or, here's a link. Original Post I'm doing some UI programming for a small .NET application. The application has some collections of items that need to be displayed in a grid sort of format (X columns by Y row...

J2ME lcdui: Can I manipulate my GUI in a worker thread?

I'm just starting with J2ME and lcdui, and I'm looking at some sample code that calls methods on lcdui objects from a worker thread. In my experience with desktop GUI toolkits, this is usually forbidden - is lcdui different? Is it really OK to do this? (I've Googled for an answer to this question but not found anything - a link to a d...

Progress bar requirement as sufficient justification for multithreading via BackgroundWorker?

Taken as given that multi-threaded applications are debugging hell and should be avoided at all costs... Is the requirement to display of a progress bar a sufficient reason to enter multi-threaded land? Specifically, let's say a C# windows forms .NET 3.0 application needs to download a 100MB file. Is it right to multi-thread (via a Bac...

Automated testing for OpenGL application

I have a Java Application that uses JOGL to provide a large part of the GUI. Is there any tool which you know of, or have used which can automate the testing of OpenGL applications (or more specificly those using JOGL) Just to update: The tool can run on either linux or windows. ...

Best way to set up Java GUI

I'm currently working on my first GUI Programming project in Java as a school assignment. I've gotten pretty familiar with setting up classes and methods in Java, though with the introduction to GUI programming, I'm not sure how best to go about it. I've set up the GUI in its own package. Should I make a new class for each JPanel? I've...

GUI program, problem with tabbedpanes

I am creating a GUI program using MVC which should look like this.. I have created a Window and Panel class. I am thinking of creating the Input and Display tabs in the Panel class and then creating two more classes, InputPanel and DisplayPanel. So the InputPanel will contain the stuff in this picture under the Input tab and same for t...

problem with putting things inside a tabbed pane

I need to put check boxes inside tabbed panes, but they are always on the outside like this I want to put the murder check box inside the Input tab. This is what I have in my code import model.*; import java.awt.*; import javax.swing.*; public class Panel extends JPanel { JPanel panel = new JPanel(); public Panel(Prison p...

What to use for C# SlimDX Game UI

I am currently developing a 3d game using C#/SlimDX (The target is Direct3D 9). I've been looking for a suitable Game UI toolkit for a while, but I was unable to make up my mind. The Game UI will be for a roleplaying game, so it'll be fairly complex and will involve quite a few controls (text boxes, inventory grids, list boxes, select b...

Getting java applications to look native on windows - how?

Is it possible to use Java to create apps that look native on Windows? I don't care if the solution is portable or not, because I only plan to target windows users. I am using Scala if that matters. Sorry for the lack of details, but I have never used Java before so I'm not even sure if this is possible. ...

Display progress from time consuming process

Sorry for my bad English... Using Delphi 7 I want to create a dialog window to show that something is happening in my application when i have to run slow processes. My idea was to do something that i can use like: with TMyDialog.Create do begin //call the time consuming method here Free; end; When i create the dialog, a window wit...

onKeyDown not always called in Android app

I've created a simple android game, based on the Lunar Lander sample, and I'm having a problem with handling key events. When the activity starts, the only keys that onKeyDown or onKeyUp get called for are the dpad up/down/left/right keys. Neither the menu, back, or dpad_center keys trigger onKey methods. However, once I've pushed one...

Using different layouts in GUIs

This is what my program should look like and I'm a bit confused on where I should use different layouts. I have a Window class which calls the Panel class and the Panel class calls the InputPanel and DisplayPanel classes. My InputPanel class calls my DetailsPanel, CrimePanel and ButtonPanel classes so they make up what is seen under th...

Setting the size of panels

I have 3 panels. One is the main panel which holds 2 smaller panels. For the main panel, I used setPreferredSize(new Dimension(350, 190)); For the smaller left panel, I used setPreferredSize(new Dimension(100, 190)); For the smaller right panel, I used setPreferredSize(new Dimension(250, 190)); but the smaller panels remain t...