Skip to main content

Posts

Showing posts with the label gui

HTML/JavaScript UI widgets GUI builder

I've heard and used some of the libraries like Ext JS, qooXdoo, jQuery UI, dijit. I know there are unofficial attempts to create GUI builders but they are not really great. Any chance there is a HTML/JavaScript UI widget library with a decent GUI builder? Source: Tips4all

Getting rid of the gradient at the top of an Activity (Android)

How can I get rid of the gradient at the top of my screen (the very top of the blue in the screenshot below... below the notification bar)?

iPhone app design storyboard vs nib

As a beginning developer I'm wondering what the pros and cons are of using Storyboard vs. .nib files to build app interfaces. I'm aware that: Storyboards supposedly streamline the process of creating interfaces Apps created with storyboards are not compatible with devices running pre-iOS 5 However, I'd like to ask people with experience what the unforeseen drawbacks or advantages may be to using one method over the other, and what experienced developers recommend starting out on. (I'll be developing both for personal and commercial use.) Thank you very much!

updated gui application

I need to write an application that will check for something every X time and update it to GUI comtols. I have some little knowledge in java and written some applications before but I've never dealt with stuff like multiple threads and updating the GUI. I though it will be an easy task so I've started to write my software. Everything else is pretty much functioning. I just cant get the app to perform checks every X time and then update the GUI. Can someone please give some guidance on this? What shold I look into? what is the common practice? Is it threads? recursive? anything else? Also if possible provide me some code examples, I can understand better. thanks for any effort!

Swing high-performance charting library

I'm currently looking for a Swing component that will allow me to draw about 5000 points per sequence for at least 3 sequences with an update frequency greater or equal to 100 Hz (and preferably pretty looks). A clean API is definitely a plus and another plus is the possibility of having two (or more) vertical axes. The targets are java 6 and 7. Solutions which are not 100% java should support at least Windows 7 and Mac OS X Lion. Commercial and F/OSS solutions equally welcome. Thanks in advance

KeyListener does not respond if there is any input in JTextField

I develop a simple MVC Calculator app. I decided to add some functionality by implementing KeyListener in CalculatorView. But this KeyListener only responds when there is no input in JTextField (before any input was made by pushing GUI buttons) or it responds when I press "ESC". I know some people here advice to use KeyBindings instead of KeyListener, but then I need to have 12 KeyBindings in my code (10 for numbers, 1 for ESC and 1 for "." character). Is there any way to make KeyListener to work properly in my app? And here is the code: /** * * @author Kate Nezdoly */ public class CalculatorView implements ActionListener, KeyListener { private JButton[] operButtons = new JButton[13]; private JButton[] numberButtons = new JButton[12]; private String[] operators = {"C", "(", ")", "+", "-", "*", "/", "^", "cos", "sin", "tan", "sqrt"}; pr

Gui generator re-generate my maze if I change the current window dimensions(Java)

Given the following code : class Game() { private Shell shell; public Game(Display display,int level) { shell.addPaintListener(new ExmaplePaintListener()); shell.setText("Basic shapes"); shell.setSize(900,900); shell.setLocation(45, 45); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } } } The listener : private class ExmaplePaintListener implements PaintListener { public void paintControl(PaintEvent e) { drawMaze(e); placeTreasuresInMaze2(e); e.gc.dispose(); } } and the method that draw the maze private void drawMaze(PaintEvent e) { // this method creates a new maze and draw it using GUI Java } My problem is that after the window of the maze is created , if I use the mouse to change the dimensions of the window , then the method drawMaze creates a new m

Custom component's surfaceCreated never called

I am trying to create a custom component to have the camera's preview. The ctr is called, but surfaceCreated is never being called. Also, the xml graphical designer doesn't complain about anything not working with the custom component. CameraView: import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.List; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.hardware.Camera; import android.hardware.Camera.PreviewCallback; import android.hardware.Camera.Size; import android.util.AttributeSet; import android.util.Log; import android.view.Display; import android.view.Surface; import android.view.SurfaceHolder; import android.view.SurfaceView; import android.view.View; import android.view.ViewGroup; import android.view.WindowManager; public class CameraView extends SurfaceView implements SurfaceHolder.Callback { private static