Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I am a very new programmer, it is part of my degree requirements and I am having a hard time with it. I am working on basically a three part GUI and I am wondering how I would create a JTextArea that will display each item that is entered.
Start by taking a look at Creating a GUI With JFC/Swing, this will give you a basic grounding in how to use Swing.
Take a closer look at How to Use Text Areas for specific details about how to use JTextArea
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How I can create this type of sweep animation using gesture or other method in android studing using java.
Effect: https://ibb.co/hKJjen
So for the swiping cards you'll have to use this library
https://github.com/flschweiger/SwipeStack
When user will touches/swipes the cards there will be a white dot which acts as a pointer just like how you'r attached example shows. Click the below link and you'll get the right code implementation for it!
http://android-er.blogspot.in/2015/05/android-custom-touch-view-with-callback.html
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
when key relese from the red marked area add new row.
First of all use a proper image description...
To your question: You can see the answer in your picture. You just have to edit the tablemodel (right side at the bottom). There you can insert a new row or a new column and put some test data into the table.
If you want to learn swing I wouldn't recommend to start with the GUI designer. Yes it's a very useful tool and probably the best GUI designer for Java atm but the downside is that you donĀ“t learn the basics of swing with that.
I would recommend to create some JFrames first via coding them by yourself and by recreating some good examples like this one: https://examples.javacodegeeks.com/desktop-java/swing/jframe/java-jframe-example/
or this:
https://docs.oracle.com/javase/tutorial/uiswing/learn/index.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am making a program where I want to create a GUI for a text calculator that I made that prints out what the user types as he or she is typing it in the text box. How can I go about this?
For javax.swing.* and JTextfield you can use the KeyAdapter class and the corresponding methods to check for user input.
You can add the key adapter to the JTextfield using the JTextfields addKeyListener method.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
Hi am new to java is there any other way to find string length pixel without using awt and swing
No. The length depends on how the String is rendered, so obviously only libraries that know how to render a String will be able to tell how big it would be.
It's as if I asked you to tell me the required dimensions if I wrote my username on paper.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm currently making a mortgage calculator, but I need some help. I have a reset button on my GUI that makes all of the forms blank again after typing something into them. The IDE already helped me make the button, so here is where I'm at:
private void resetActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
What do I need to put in here?
You either recreate your complete GUI (probably not an option), or painstakingly use .setText("") against each and every input field you have, and similar logic for radio buttons, etc. There's no royal way to it, unfortunately.