tag:blogger.com,1999:blog-4481781585418842840.comments2024-03-14T16:12:32.591+09:00Java Swing Tipsateraihttp://www.blogger.com/profile/07647339065761407369noreply@blogger.comBlogger251125tag:blogger.com,1999:blog-4481781585418842840.post-73984411222599087482023-09-14T18:07:29.258+09:002023-09-14T18:07:29.258+09:00This comment has been removed by a blog administra...This comment has been removed by a blog administrator. our sclinbio.comsclinbiohttps://www.blogger.com/profile/13370742983082055641noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-8092132219486455182022-06-03T23:04:33.441+09:002022-06-03T23:04:33.441+09:00Hi, idarwin
Thanks for pointing that out. I’ve upd...Hi, idarwin<br />Thanks for pointing that out. I’ve updated the example code.<br /><a href="https://github.com/aterai/java-swing-tips/issues/11" rel="nofollow">DnDTabbedPane: Drag a tab and start moving it, the tab component disappears ・ Issue #11 ・ aterai/java-swing-tips</a><br /><a href="https://github.com/aterai/java-swing-tips/pull/12/commits/e200464239b4591910dfa3c3c9a2d3c615c18e05" rel="ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-43300947699095779092022-06-02T09:13:14.610+09:002022-06-02T09:13:14.610+09:00This is really awesome. Thanks for putting it up, ...This is really awesome. Thanks for putting it up, and for maintaining it over the years.<br /><br />I have the same problem as "Jack" who had a close button issue but gave no useful info. My issue is this: Dragging tabs works fine, but after the drag, the tab has its title but not its close button! Rather than cutting snippets out of context, I'll refer you to the complete project, idarwinhttps://www.blogger.com/profile/12560515955464436138noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-32415385385990619972021-10-05T15:46:21.082+09:002021-10-05T15:46:21.082+09:00Yes it works fine. Thanks so much, good work Yes it works fine. Thanks so much, good work Laborantinhttps://www.blogger.com/profile/00200838272515138157noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-5824947778359447142021-10-04T12:51:05.824+09:002021-10-04T12:51:05.824+09:00Yes, JFormattedTextField inherits from JTextField,...Yes, JFormattedTextField inherits from JTextField, so you can do that as well.<br /><br />ex.<br />JFormattedTextField f = new JFormattedTextField(NumberFormat.getNumberInstance()) {<br /> @Override protected void paintComponent(Graphics g) {<br /> if (!isOpaque() && getBorder() instanceof RoundedCornerBorder) {<br /> Graphics2D g2 = (Graphics2D) g.create();<br /> g2.ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-8606400496854050682021-10-01T17:06:56.500+09:002021-10-01T17:06:56.500+09:00Can I do it with jformattedtextfield?
How then? Can I do it with jformattedtextfield?<br />How then? Laborantinhttps://www.blogger.com/profile/00200838272515138157noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-82686180654873007812021-01-05T05:58:46.608+09:002021-01-05T05:58:46.608+09:00Good job... Check you email...Good job... Check you email...RMBS Rockhttps://www.blogger.com/profile/11332861705630005482noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-27501313955135366702020-09-01T14:44:40.957+09:002020-09-01T14:44:40.957+09:00I overlooked it. Thank you.I overlooked it. Thank you.ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-85911215452449060202020-07-13T22:44:13.619+09:002020-07-13T22:44:13.619+09:00Good. Very good.Good. Very good.RMBS Rockhttps://www.blogger.com/profile/11332861705630005482noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-14527157169417971302020-05-16T13:35:38.837+09:002020-05-16T13:35:38.837+09:00Thanks for the fast response, I will try itThanks for the fast response, I will try itMohammed Essamhttps://www.blogger.com/profile/17421932233827100116noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-46103561498947218182020-05-15T03:40:46.985+09:002020-05-15T03:40:46.985+09:00Hi Unknown,
JComboBox: How about using the BasicC...Hi Unknown,<br /><br />JComboBox: How about using the BasicComboBoxUI https://ateraimemo.com/Swing/RoundedDropDownList.htmlateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-67602010106719992592020-05-13T19:03:38.006+09:002020-05-13T19:03:38.006+09:00Hello aterai,
First, I want to thank you for this ...Hello aterai,<br />First, I want to thank you for this amazing work<br />I try to use it with JComboBox and JScrollPane but the corners still visible<br />I know you make it for JTextField, but if there is a way to use with them, I will be very blessed to you<br />Thanks in advanceMohammed Essamhttps://www.blogger.com/profile/17421932233827100116noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-8649781956057571942020-05-01T03:12:20.478+09:002020-05-01T03:12:20.478+09:00Its really cool to watch how IT develops and how y...Its really cool to watch how IT develops and how you guys create more solutions. Keep doing the awesome job! Additionally companies like this one: https://pro4people.com/medical-device-software-development/ create more and more useful stuff. Right now for medical servise it seems. Cool!Anitahttps://www.blogger.com/profile/06024819529023051048noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-86834530024229348032020-05-01T03:11:05.564+09:002020-05-01T03:11:05.564+09:00Cool!Cool!Anitahttps://www.blogger.com/profile/06024819529023051048noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-11769859740104891002019-11-06T21:41:24.183+09:002019-11-06T21:41:24.183+09:00571575170 fix: when a tab runs rotation occurs, a ...<a href="https://github.com/aterai/java-swing-tips/commit/571575170615083339857278660f2512d82bbe49#diff-0ca53676c5acf09d0d559c88c862df8d" rel="nofollow">571575170 fix: when a tab runs rotation occurs, a tab that is not the target is dragged<br /></a><br />ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-87431840409346011532019-11-05T22:33:34.551+09:002019-11-05T22:33:34.551+09:00Hi, Arjen
I was able to reproduce this problem in ...Hi, Arjen<br />I was able to reproduce this problem in my environment.<br />I would like to fix this as soon as possible. Thank you for the report.<br />ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-31386787287636763812019-11-04T21:52:49.252+09:002019-11-04T21:52:49.252+09:00Awesome project. Thank you so much for this.
Ther...Awesome project. Thank you so much for this.<br /><br />There's one thing that's confusing our users, however.<br />We use WRAP_TAB_LAYOUT, so we have two rows of tabs at the top of the pane.<br />If we want to drag a tab on the top row, that row immediately flips to the bottom.<br />And instead of dragging the tab we wanted, we're dragging the tab that was on the other row (which is Arjenhttps://www.blogger.com/profile/09239060720608440556noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-82867255244024078542019-08-06T14:36:35.742+09:002019-08-06T14:36:35.742+09:00You might be able to use UIManager.put("Progr...You might be able to use UIManager.put("ProgressBar.selectionBackground", Color.ORANGE); or override the <a href="https://docs.oracle.com/javase/8/docs/api/javax/swing/plaf/basic/BasicProgressBarUI.html#getSelectionBackground--" rel="nofollow">BasicProgressBarUI#getSelectionBackground()</a> method:<br /><br /> // ...<br /> // Deal with possible text painting<br /> if (ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-19843905240445402902019-08-05T22:23:57.973+09:002019-08-05T22:23:57.973+09:00How do i change the color of the 64% label inside ...How do i change the color of the 64% label inside the blue circular progress bar. I just want to change the color of the text (64%). Thanks.Anonymoushttps://www.blogger.com/profile/15615339592527332032noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-59174359395054641222019-03-16T23:15:06.913+09:002019-03-16T23:15:06.913+09:00Thanks for the comment, and I'm sorry I overlo...Thanks for the comment, and I'm sorry I overlooked it...ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-87555698561152678702019-03-16T23:13:24.486+09:002019-03-16T23:13:24.486+09:00Hola Jorge,
> en donde tengo que poner este cod...Hola Jorge,<br />> en donde tengo que poner este codigo?<br />Puede colocarlo en el mismo directorio si usa el mismo paquete que el código que desea usar.<br />Si es problemático, puede agregarlo al mismo archivo.ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-36022171641027877032018-12-05T23:06:22.647+09:002018-12-05T23:06:22.647+09:00Sorry, I missed your comment. It may be too late, ...Sorry, I missed your comment. It may be too late, and furthermore I may not have understood the intent of your question correctly, but the "javaagent" option may be helpful.<br /><br />https://ateraimemo.com/data/swing/loggeragent.zip<br /><br />> "%JAVA_HOME%\bin\java" -javaagent:loggeragent.jar -jar example.jar<br /><br />public class DebugLoggerAgent {<br /> public ateraihttps://www.blogger.com/profile/07647339065761407369noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-5498548213145544342018-11-24T04:42:51.748+09:002018-11-24T04:42:51.748+09:00I am new with this topic and I need help, I have a...I am new with this topic and I need help, I have a class with several methods that contain logs, I want to print those logs in a JTextArea while the program is running.Onairoshttps://www.blogger.com/profile/02514300957862148891noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-80095031402606295192018-09-03T22:19:54.914+09:002018-09-03T22:19:54.914+09:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/06790285542086360396noreply@blogger.comtag:blogger.com,1999:blog-4481781585418842840.post-62348485442888232822018-08-19T01:51:42.581+09:002018-08-19T01:51:42.581+09:00Como se prueba
Soy nuevo y no se casi nada
Por fa...Como se prueba <br />Soy nuevo y no se casi nada<br />Por favor<br />Esto me puede ayudar en algo que quiero hacer <br />Anonymoushttps://www.blogger.com/profile/04155748190146981270noreply@blogger.com