gui

Netbeans - How to do setsize() of a frame?

I have made a GUI in Netbeans. Now I want that the frame size should remain constant, means the user cannot do maximize or restore the frame. When I go the the frame properties dialog box, I didn't see any property that allow me to set the size of the frame. I opened the frame properties dialog box by right clicking on the "FrameView" ...

adding a JList to a table and adding the table to a scroll pane

I have created a JList and I want to add it to the table and then add the table to the scroll pane so that both of them will be contained in the scroll pane. import model.*; import java.awt. *; import java.text.*; import javax.swing.*; import javax.swing.table.TableColumn; public class ScrollPanel extends JPanel implements View { priva...

GUI frameworks for Java

I was wondering if anyone has any suggestions of frameworks to give an old desktop application a much needed facelift. The application has had a long life without anyone giving any attention to its exterior resulting in a monster with an 80s look. I've just downloaded and tried MyDoggy framework for making windows floatable and dockable...

Does Windows 7 render old programs' controls with GDI or the new DWM/WDDM?

In Windows XP the Win32 API renders the controls using GDI/GDI+. Now I'm on 7, so if I use the API's functions, will the rendering automatically be handled by the DWM/WDDM (so by DirectX)? or will it continue to render with GDI? Or likewise, will an old app written with WinAPI, be rendered with GDI also in Windows 7? Thank you in advan...

How to show items on a jList in java?

I have made a java GUI program and have added a jList on that GUI so as to print output of the program on that jList by adding an item by calling listBox.addElement(""); // where listBox is an instance of jList But the problem is that the items are not being displayed at the time of addition. They are being shown when the program is ...

Most natural blinking visualization?

What is the ideal method for blinking information on a display to draw attention to an error condition in some data in a natural fashion. Should the blink be all on / all off, or should there be an aspect of fast ramp up and down of brightness instead of instant on / off transitions? Should the blink be equally on and off, or should it...

Windows 7: Change Windows Snap edge padding?

The global windows 7 snap function lets you snap windows to max or to the left/right edges of the screen. Is it possible to change the default padding between the snapped windows frames and the very edge of the screen? The default padding is 0, as everything snaps to the very edge. But I think putting a padding in there would help re...

Null pointer exception error

When I run my program I get this error nullPointerException: null. import model.*; import java.awt.*; import java.awt.event.*; import java.text.*; import javax.swing.*; public class ButtonPanel extends JPanel implements View { private Prison prison; private LeftInputPanel leftInput; private DaysPanel days; private MonthsPanel months; ...

using attach(this); in a GUI program

I'm looking at a GUI program made using MVC and they have this method. What does this method do and when will you need to use it? attach(this); Here is one of the classes with the method. import model.*; import java.awt.*; import java.text.*; import javax.swing.*; public class IncomePanel extends JPanel implements View { private ...

Choosing between WPF, wxWidgets, Win32 API and MFC

Imagine you are on Windows 7 and you have to write a GUI for a GRAPHIC application, (like a terrain editor, mesh viewer ..) which involves a great use of DirectX and OpenGL (so written in native C++). If your goal is a multi-platform software then you should go for wxWidgets, but imagine you're doing a Windows' only app...what would your...

Hide scrollbars of a RichTextBox

I'm trying to write a simple text editor like DarkRoom with just a RichTextBox (or alternatively a TextBox) in it. My problem is that I can't use the mouse wheel for scrolling unless I have a vertical scrollbar. Is there any way to hide this scrollbar and still be able to scroll with the mouse wheel? So far I have several ideas how this...

C++ library for making GUIs

Hi, I am looking for a simple C++ library for making GUIs. I tried wxWidgets and GTK, but I think both are complex. I want your opinion on what to use. Should I learn wxWidgets or you know a better one? Thanks. ...

How do I know if a branch has already been merged in SVN/Mercurial/Git?

Is there any way of easily deciphering (i.e. at a glance) whether or not a branch has already previously been merged with the another branch or the trunk? The nearest I've been able to figure out is by looking at the commit notes and displaying the merged commit notes. The disadvantage with this seems to be that unless you know which b...

Learn How To Develop GUI Applications

Hello, I'm learning Objective-C and already know many other languages, but every time that i try to develop GUI applications i stuck, because i didn't understand and mental visualize the application running and those coordinates of the buttons and the other objects always let me confused, but where i can learn how to do good GUI applica...

Blackberry - draw label in the center of custom ButtonField?

I created a CustomButtonField in blackberry using that i can able to set our own height and width of the button.The problem i m facing is i dont know how to show the label in the center of the button. ...

How to maintain application geometry, size (including child widgets') through sessions

I am writing a small application in GTK+ and java, and I want it to maintain its position, size, including those of child widgets, for each session. Is there any other way instead of manually storing size of each child widgets, and recovering them at startup? ...

GUI as a finite state machine

To implement application's GUI I would like to have all the logic to go from one form to another centralized. This GUI manager will behave as a finite state machine. Although I think I have seen this kind of implementation somewhere, I can't find a design pattern that matches with this kind of solution. A form will look like this: publ...

GUI + multithreading support + regex support. Which language? JAVA / Python / Ruby ??

I'm interested in learning a programming language with support for GUI, multithreading and easy test manipulation (support for regex). Mainly on Windows but preferably cross-platform. What does the Stack Overflow community suggest? ...

GNUstep And GTK

Hello, I'm learning Objective-C using GNUstep, because I don't have a Mac and the GNUstep GUI applications have that Window Maker style, but it's possible to develop this GUI applications using GTK? Thanks. ...

How to disable javax.swing.JButton in java?

I have created a swings application and there is a "Start" button on the GUI. I want that whenever I clicked on that "Start" button, the start button should be disabled and the "Stop" button be enabled. For that I have written the following code in the "ActionPeformed(...)" method of the "Start" button startButton.setEnabled(false); st...