Questions tagged [user-interface]

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions. Note that there's a separate Stack Exchange site for User Interfaces, Interactions with the Computer and User Experience design: https://ux.stackexchange.com.

User Interface (UI) is the system through which people interact with a computer. This tag can be used for UI-related programming questions.

Note that there's a separate Stack Exchange site for User Interfaces, and Interaction- and User Experience design.

References

56892 questions
12
votes
4 answers

QML ComboBox item DropDownMenu style

I want to use the ComboBox type in my project. Is it possible to change the appearance of the drop-down menu (color, shape, text style) or do I need to use a combination of rectangles, ListViews and other types? The following code applies…
otashlanov
  • 320
  • 1
  • 2
  • 9
12
votes
3 answers

Error when attempting to run UI automation script from jenkins

I am using Xcode 6.1. And i need to run a UI automation script from jenkins as a post build action. The command that i use is shown below. instruments -t $TRACETEMPLATE -w $DEVICE $APP_PATH -e UIASCRIPT $SCRIPT -e UIARESULTSPATH $RESULTS_PATH | grep…
Lrenger semigo
  • 243
  • 2
  • 9
12
votes
2 answers

Assembly-> Gui?

Is there any way to link an application programmed in TASM ASSEMBLY to a windows form application or any kind of GUI? Thanks
Natasha
  • 205
  • 1
  • 4
  • 8
12
votes
5 answers

What does getContentPane() do exactly?

When to use: Container c = getContentPane(); And when to use: frame.getContentPane();
Chinmay Kale
  • 161
  • 1
  • 1
  • 14
12
votes
4 answers

How can I set distance between elements ordered vertically?

I have code like that: JPanel myPanel = new JPanel(); myPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS)); JButton button = new JButton("My Button"); JLabel label = new JLabel("My label!!!!!!!!!!!"); …
Roman
  • 124,451
  • 167
  • 349
  • 456
12
votes
4 answers

How can I remove a JPanel from a JFrame?

Recently I asked here how to add a new JPanel to JFrame. The answer helped me to get a working code. But not I have a related question: "How can I remove an old JPanel". I need that because of the following problem. A new JPanel appears appears when…
Roman
  • 124,451
  • 167
  • 349
  • 456
12
votes
4 answers

How does the event dispatch thread work?

With the help of people on stackoverflow I was able to get the following working code of a simple GUI countdown (which just displays a window counting down seconds). My main problem with this code is the invokeLater stuff. As far as I understand…
Roman
  • 124,451
  • 167
  • 349
  • 456
12
votes
5 answers

How to let an average user design a boolean expression graphically

In our application there's a list of customers, and a list of keywords (among other things). Each customer can have a number of keywords, but it's not mandatory. So for instance, one customer can have the keywords "retail" and "chain", one can have…
Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73
12
votes
1 answer

Textview: adjust font size to match parent

Is it possible to set font size to automatically match_parent? My TextView is already width/height="match_parent" but the font size is small and doesn't fit to the parent size. How to do that?
AngryOliver
  • 397
  • 1
  • 4
  • 18
12
votes
4 answers

What's the best way to share actions between separate GUI classes (menu, toolbars, etc.)

I have several sets of actions (e.g., copy, paste, undo, redo, show dockable window XYZ, zoom, etc.) that I don't want to duplicate in multiple locations but that are shared by different parts of the GUI like the main menu, a toolbar, and…
metal
  • 6,202
  • 1
  • 34
  • 49
12
votes
1 answer

Placeholder text not showing (pyside/pyqt)

Learning PySide, I'm tweaking a text edit widget (QLineEdit) and trying to set the placeholder text using setPlaceHolderText as in the code snippet below (which I invoke from main). Unfortunately, it is not working as I expected. The code runs, but…
eric
  • 7,142
  • 12
  • 72
  • 138
12
votes
2 answers

JSeparator wont show with GridBagLayout

I want to add a vertical JSeparator between two components using a GridBagLayout. The code I have is as follows: public MainWindowBody(){ setLayout(new GridBagLayout()); JPanel leftPanel = new InformationPanel(); JPanel rightPanel = new…
Aly
  • 15,865
  • 47
  • 119
  • 191
12
votes
3 answers

Select Multiple Items In JList Without Using The Ctrl/Command Key

I am looking for a way to select multiple items within a JList by just clicking each item. The normal way to do this is to hold the command/ctrl key and then click. I think it would be more intuitive just to allow the user to click the items on and…
Gordon
  • 4,823
  • 4
  • 38
  • 55
12
votes
3 answers

PHP: ignore_user_abort(true) in all scripts

I have a website which works with PHP on the server side. Users access pages and PHP does some calculations, writes data to a MySQL database etc. Imagine a user accesses a page where PHP creates an account for the user. The creation consists of two…
caw
  • 30,999
  • 61
  • 181
  • 291
12
votes
5 answers

Bind Font Size in JavaFX?

I'd like to make my application fluid. However, the fonts look small compared to the UI elements when I make the windows bigger. Ultimately, I want the size of my text to get bigger or smaller when I resize the window. I know I could theoretically…
Taconut
  • 951
  • 4
  • 10
  • 29