tag:blogger.com,1999:blog-8712770457197348465.post184926358062684782..comments2024-03-19T01:04:48.783-07:00Comments on Javarevisited: Top 10 Java Swing Interview Questions Answers asked in Investment banksjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-8712770457197348465.post-25720147403860544972018-03-06T08:45:11.991-08:002018-03-06T08:45:11.991-08:00I understand Swing components should only be updat...I understand Swing components should only be updated in the EDT thread so my question is how do you disable a button then connect to a database in a separate thread then enable the button once the connection is complete? The button is not thread safe so it shouldn't be passed to the 'start connection' thread.<br />Anonymoushttps://www.blogger.com/profile/09593940980455724382noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-20995607946728169762016-12-29T09:00:01.035-08:002016-12-29T09:00:01.035-08:00Thank you for your reply Javin. Nice to see that y...Thank you for your reply <b>Javin</b>. Nice to see that you're still sticking around 5 years later!<br />Well it seems that a lot of people get confused about which one is light of heavy. In my mind, Swing was heavy cause all components (UI & behaviour) are embedded in it, needing a lot of classes to be loaded, whilst AWT relies on system pre-made components, thus being smaller in memory Anonymoushttps://www.blogger.com/profile/16294505450697524977noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-43613951634907968242016-12-28T06:45:07.867-08:002016-12-28T06:45:07.867-08:00Swing questions in 2017??? OMFG
This should have ...Swing questions in 2017??? OMFG <br />This should have been buried deep like a decade ago. No sane developer use swing anyways...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-40828712156720087022016-12-28T05:52:38.642-08:002016-12-28T05:52:38.642-08:00Hello Xavier, Sorry about EDT typo, I should have ...Hello Xavier, Sorry about EDT typo, I should have corrected it long back. I didn't get your comment regarding AWT being lightweight and Swing being heavyweight, I think I have wrote it correctly, AWT is heavyweight because each AWT component is a native platform component. Let me know if I am overlooking something. <br /><br />Anyway, thanks for your comments and concern, completely agree. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-85822418744218097682016-12-27T05:50:15.310-08:002016-12-27T05:50:15.310-08:00Dangerous misinformation blog here!
1) As it have ...Dangerous misinformation blog here!<br />1) As it have been pointed out, EDT = "Event Dispatch Thread". You read that and write "its indeed called Event Dispatcher Thread" (and did not correct your article, btw). Please, learn to read before writing (and after learn to write as well)! "Dispatch", not "Dispatcher"!<br />3) and 4) AWT: lightweight, Swing: Anonymoushttps://www.blogger.com/profile/16294505450697524977noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-61497713775135582732013-05-06T21:05:31.525-07:002013-05-06T21:05:31.525-07:00Couple of Swing questions for experienced and Seni...Couple of Swing questions for experienced and Senior Java Developers, mostly 4 to 6 years experieced :<br /><br />1) Is Swing is thread-safe? (No)<br />2) Can we modify TableModel in thread which loads data from database? (No)<br />3) What is SwingWorker? How does it work? It works on worker pattern and used to perform time consuming task in worker thread. It also manages to update EDT when task Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-36613181490206291142013-01-03T19:01:41.071-08:002013-01-03T19:01:41.071-08:00Can you please share some AWT Interview questions ...Can you please share some AWT Interview questions and some Java FX Interview question. I know little bit of Swing and AWT and learning Java FX. There is not many Java FX or AWT interview question available, Please share with answers. ThanksViratnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-20766813509093082742012-04-24T22:30:43.799-07:002012-04-24T22:30:43.799-07:00Indeed these interview questions on Swing is much ...Indeed these interview questions on Swing is much better than the other source available on Internet. I just think number of questions are little less but quality is awesome. Few more JFC Swing interview questions from my collection:<br /><br />1) Why can't you call paint() method directly instead of calling repaint() method?<br /><br />2) What is clipping? How do you create animation using Prabhunoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-5910379251367753412011-09-15T06:01:02.810-07:002011-09-15T06:01:02.810-07:00my bad Tavi and Anonymous , its indeed called Even...my bad Tavi and Anonymous , its indeed called Event Dispatcher Thread.Javin @ stringbuffer vs Stringbuilderhttp://javarevisited.blogspot.com/2011/07/string-vs-stringbuffer-vs-stringbuilder.htmlnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-41780700299621190982011-09-15T03:27:12.183-07:002011-09-15T03:27:12.183-07:00I believe its called Event Dispatch Thread... (ht...I believe its called Event Dispatch Thread... (http://download.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html)<br /><br />Anyway... nice list of sweetpoints :)Tavihttps://www.blogger.com/profile/05323271180930483573noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-68957288675287993362011-09-15T01:40:33.240-07:002011-09-15T01:40:33.240-07:00EDT != Event Driven Thread
EDT == Event Dispatch T...EDT != Event Driven Thread<br />EDT == Event Dispatch ThreadAnonymousnoreply@blogger.com