Responsive Java, Fast Java !
Posted on | June 14, 2007 |
জাভার বিরুদ্ধে সবচাইতে বড় অভিযোগ এটা রেসপন্স করতে দেরী করে, তাই ব্যাবহারকারীর কাছে এটা অনেক স্লো মনে হয়। অথচ, আমরা চাইলেই SwingUtils.invokeLater()ব্যাবহার করে আমাদের প্রোডাক্টকে আরও রেসপন্সিভ করতে পারি সহজেই।
jButton1.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent evt)
{
SwingUtils.invokeLater
(
new Runnable()
{
JOptionPane.showMessageDialog(null, “You clicked me : ) “);
}
)
}
});
বেশি ভেজাল মনে হলে একটা Action ক্লাস বানিয়ে নিন, যেটাতে এটা ইমপ্লিমেন্টেড থাকবে।
Action class use করা খুবই মজার হতে পারে, তা নিয়ে আরেকদিন আলোচনা করব ইনশাল্লাহ 
Category: j2se
Comments
2 Responses to “Responsive Java, Fast Java !”
Leave a Reply
April 6th, 2008 @ 10:45 am
I’ve been browsing for a very long time, trying to find something very special in Internet. It’s hard to imagine, how much time I spent searching for sensations. I have tried to find something interesting and not very serious, just to enjoy reading it. I can’t believe that I’m finally here and that I found everything I was looking for. Interesting information, interesting people. That’s exactly what I needed.
April 9th, 2008 @ 2:22 am
I adore this site! I can stay up all night just to have fun and see new posts. I love to spend my free time this way