Top "Settext" questions

The concept of assigning text to a UI element

Swing/Java: How to use the getText and setText string properly

I'm trying to make input nameField appear in a Label called label1 after a Button called button1 is clicked. Right …

java swing jbutton jlabel settext
How to print a double with two decimals in Android?

Maybe this is a silly question, but I cannot guess how to solve it if it's not creating a method. …

android format double show settext
how to set new text in JTextField after creation?

I have a jTextField , and I set it's value to a certain sum when I create the frame. Here is …

java swing jtextfield settext windowlistener
How to clear JTextArea?

I'm trying to clear the JTextArea. Currently, I'm using jtextarea.setText(null); What is the difference if I use jtextarea.…

java swing jtextarea settext
Difference between setText() and append()

I'm curious about the difference setText() and append() are creating. I'm writing a very basic editor with line numbers. I …

android append textview settext
Android setText / R.string / values

I am having trouble with setting text in a text view with format and multiple values. holder.car.setText(R.…

android textview settext
How to update a UILabel in Xcode programmatically without XIB files?

I'm stuck :( In my application I require an update from CLLocationManager every time it gets an update to a new …

iphone xcode ios uilabel settext
How to setText for QPlainTextEdit?

Qt5's documentation doesn't mention that QPlainTextEdit has setText(QString) like QTextEdit does. But, I don't think it's impossible. The …

qt qt5 settext
android-TextView setText in Html.fromHtml to display image and text

I try to display the text and image in Html.fromHtml() but it is doesn't work in image display. message = (…

android html textview imageview settext
error: Only the original thread that created a view hierarchy can touch its views

Hi and thank you for looking at my question. I am an intermediate programmer in C but an Android newbie. …

android view hierarchy settext