5,566 questions
550
votes
9
answers
152k
views
The Use of Multiple JFrames: Good or Bad Practice? [closed]
I'm developing an application which displays images, and plays sounds from a database. I'm trying to decide whether or not to use a separate JFrame to add images to the database from the GUI.
I'm ...
1607
votes
47
answers
859k
views
How do I update the GUI from another thread?
Which is the simplest way to update a Label from another Thread?
I have a Form running on thread1, and from that I'm starting another thread (thread2).
While thread2 is processing some files I would ...
6430
votes
35
answers
1.5m
views
What is the difference between px, dip, dp, and sp?
What is the difference between the units of measure
px, dip, dp, and sp?
53
votes
2
answers
89k
views
Applying MVC With JavaFx
I'm new to the GUI world/OO design pattern and I want to use MVC pattern for my GUI application, I have read a little tutorial about MVC pattern, the Model will contain the data, the View will contain ...
44
votes
3
answers
178k
views
tkinter: how to use after method
Hey I am new to python and am using tkinter for my gui. I am having trouble using the frame.after method.
The goal is to make a random letter appear every 5 seconds.
Here is my code:
import random
...
100
votes
8
answers
149k
views
How can I schedule updates (f/e, to update a clock) in tkinter?
I'm writing a program with Python's tkinter library.
My major problem is that I don't know how to create a timer or a clock like hh:mm:ss.
I need it to update itself (that's what I don't know how to ...
9
votes
2
answers
13k
views
Netbeans GUI editor generating its own incomprehensible code
When creating a new project in netbeans, if i select JAVA Desktop application, it creates some code which I DO NOT RECOGNISE AT ALL as what i had learnt in swing.
It imports packages such as :
org....
118
votes
8
answers
59k
views
What is the need of JSF, when UI can be achieved with JavaScript libraries such as jQuery and AngularJS
I was reading about JSF that it's a UI framework and provides some UI components. But how is it better or different from number of components that are available from jQueryUI, AngularJS, React, Vue.js,...
14
votes
1
answer
10k
views
Swing: link toggle buttons together with a button group, along with corresponding menu items
For a school project, I need to make a simple paint application that can draw lines, ovals, and rectangles.
The assignment specifies that I need toolbar buttons and menu items for each type of shape.
...
12
votes
2
answers
23k
views
How to access variables from different classes in tkinter?
I have been searching a lot and I still don't know how you access variables from different classes in python. In this case I want to access the variable self.v from PageOne class to PageTwo class.
...
589
votes
15
answers
269k
views
Difference between a View's Padding and Margin
What is the difference between a View's Margin and Padding?
7
votes
4
answers
23k
views
Multiple row selection in JTable
I have a JTable, that has one column that is text which is not editable and the second column is a check box that displays boolean values.... Now what i want is, when the user selects multiple rows ...
34
votes
9
answers
248k
views
Formatting MM/DD/YYYY dates in textbox in VBA
I'm looking for a way to automatically format the date in a VBA text box to a MM/DD/YYYY format, and I want it to format as the user is typing it in. For instance, once the user types in the second ...
24
votes
4
answers
29k
views
Java and GUI - Where do ActionListeners belong according to MVC pattern?
I'm currently writing a template Java application and somehow, I'm not sure about where the ActionListeners belong if I wanted to cleanly follow the MVC pattern.
The example is Swing based, but it's ...
315
votes
14
answers
245k
views
Create a directly-executable cross-platform GUI app using Python
Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux.
The problem ...
112
votes
15
answers
195k
views
How to change the background color of the options menu?
I'm trying to change the default color for the options menu which is white: I want a black background for every item on the options menu.
I've tried some shoots like android:itemBackground="#000000" ...
4
votes
2
answers
11k
views
How do I create a C++/CLI Winforms app in VS2012?
I just installed Visual Studio 2012 express for Desktop. I can't see any place to create a GUI application with C++ ! Where is this "Windows Form Application" used to exists in Visual C++ 2010 ? Where ...
16
votes
2
answers
47k
views
Simple popup java form with at least two fields
When the user clicks a button, I want to show a popup form that should have at least two JTextFields and two JLabels, so using JOptionPane.showInputDialog is not a possibility.
35
votes
2
answers
45k
views
Cross-thread operation not valid [duplicate]
Possible Duplicate:
Cross-thread operation not valid: Control accessed from a thread other than the thread it was created on
Okay, I know why this is giving me this error:
Cross-thread operation ...
121
votes
19
answers
108k
views
How to crop circular area from bitmap in Android
I have a bitmap and I want to crop a circular region from this bitmap. All pixels outside the circle should be transparent. How can I do this?
37
votes
11
answers
87k
views
How to add placeholder to an Entry in tkinter?
I have created a login window in tkinter which has two Entry field, first one is Username and second one is Password.
code
from tkinter import *
ui = Tk()
e1 = Entry(ui)
#i need a placeholder "...
6
votes
1
answer
9k
views
how to change UI depending on combo box selection
In dialog I need to display one group of controls if some combo is checked and another group of controls otherwise.
I.e. I need 2 layers and I need to switch between them when combo is checked/...
145
votes
4
answers
76k
views
Responsive website zoomed out to full width on mobile
I am testing out Bootstrap responsiveness navbar and I have a demo website. When I resize the browser on a desktop, it all works fine including the nav bar which become collapsible menu with a small ...
453
votes
8
answers
1.5m
views
Left align and right align within div in Bootstrap
What are some of the common ways to left align some text and right align some other text within a div container in bootstrap?
e.g.
Total cost $42
Above total cost should be left ...
201
votes
11
answers
470k
views
Choosing a file in Python with simple Dialog
I would like to get file path as input in my Python console application.
Currently I can only ask for full path as an input in the console.
Is there a way to trigger a simple user interface where ...