Up |
|
|
  |
Author: nono_junnono_jun
Date: Feb 28, 2008 04:56
Hi. I have problem related with swing component.
I want to change a cursor which is a default icon in windows xp.
(C:/WINDOWS/Cursors/stopwtch.ani) -> animation icon. Icon move like
clock rinigng.
But Because of the file description ( .ani, and .cur. ) I can't use
that icon in swing component.
Cursor works invisiblely. Java doc says that when cursor is inable ,
Icon become trasparent.
When I use jpg format for below logic, it was working well.
So is there any way to use that file for cursor ?
logic is here.----------------------------------
File file = new File("C:/WINDOWS/Cursors/stopwtch.ani");
if(file.exists()){
Image image = Toolkit.getDefaultToolkit().getImage("C:/WINDOWS/
Cursors/
stopwtch.ani");
|
| Show full article (0.96Kb) |
|
| |
1 Comment |
|
  |
Author: recruiter.isaacrecruiter.isaac
Date: Feb 26, 2008 12:48
Hi Friends,
This is John Isaac from innovative InfoTech technologies; we have an
urgent requirement for the "Java Swing Developer ". If you are
comfortable with requirement please send your updated résumé's to
John@ innovativeinfotech.com . ASAP.
Job: Java Swing Developer
Location: Dallas, TX.
Duration: 12 Plus month.
Rate :$43-$45.
Skills Set Required: Java, J2EE, and Java Swing.
· Client needs strong Java Swing experience.
· Should have great communication skills
· Airline Industry experience will be a plus
--
Thanks and Regards
|
| Show full article (0.75Kb) |
|
| |
no comments
|
|
  |
Author: Roedy GreenRoedy Green
Date: Feb 26, 2008 11:34
Does anyone know the status of Thomas Weidenfeller's GUI FAQ and where
the latest copy is posted?
|
| |
|
1 Comment |
|
  |
Author: Hal VaughanHal Vaughan
Date: Feb 26, 2008 09:11
I have an unusual situation that would most easily be solved by being able
to duplicate a JTextArea in size and position, then to swap between them by
making each visible at different times.
I know I can duplicate the JTextArea with clone() and I can get the size to
make sure they match. If I were working with an absolute layout, I know I
could position them both at the same place and switch between them by
making one visible while the other isn't. However, I'll be working with
other layouts types and I don't have access to the container the first one
is in.
Is there some fairly easy way I can duplicate the first JTextArea and swap
the two in and out without messing up other components or the display?
Thanks!
Hal
|
| |
|
4 Comments |
|
  |
Author: JohnJohn
Date: Feb 26, 2008 08:44
Ender a écrit :
> I have a JTree with a child node that has a dropdown list in it. When I
> click on the node to make the list appear, then make a selection, the
> icon changes to what looks like a document icon.
>
> My problem is that the document icon stays there after I make the
> selection in the dropdown list until I click on another node. It's like
> the process of making a selection is unfinished.
>
> Anyone know what that is?
The combo box is still in editing state when you select a value. You could add an action listener to the combo box (problem for reselecting the same value) and stop the editing when you receive an action event.
|
| |
|
no comments
|
|
  |
Author: Thorsten KieferThorsten Kiefer
Date: Feb 26, 2008 01:35
Hi,
many programs have close-buttons or a context menu in the tabs.
Can this be done with JTabbedPane?
Is it possible to customize the tabs ?
jdk 1.6.0
Regards
Thorsten
|
| |
|
1 Comment |
|
  |
Author: RCRC
Date: Feb 25, 2008 12:50
I want a simple popup for few seconds
Popup popup = new Popup(null, new JLabel("Done"), 10, 10);
popup.show();
try {
Thread.sleep(2000);
} catch (InterruptedException ie) {
}
popup.hide();
Everything is OK except I don't see the word "Done" in the label.
If I comment out the lines for try, Thread.sleep(###) and catch
Then I can see the word "Done in the label, then I can't make the popup
for few seconds.
Anyone knows why the word "Done" won't show up if I use Thread.sleep?
Any idea how do I fix the problem?
I don't need JProgressBar nor JMonitor for my simple application.
I want similar to the Tooltip popup for few seconds, but without
move the mouse pointer to a particular JComponent.
Thank you in advance!
|
| |
|
4 Comments |
|
  |
|
|
  |
Author: Bruintje BeerBruintje Beer
Date: Feb 23, 2008 01:45
Hi,
I am starting with my Java Developper Exam and I was asking myself if it is
alowed to use netbeans to design the gui.
John
|
| |
|
3 Comments |
|
  |
|
|
  |
Author: EdsoncvEdsoncv
Date: Feb 22, 2008 05:58
I'm having the following problem while configuring a JTable row
height.
The fact is when my row height does not have the exactly heigth of
"row header", exactly figure bellow:
http://www.crionics.com/products/opensource/faq/swing_ex/images/table...
The line height seems almost the same but this little difference
increases as the # of rows increase or the look and feel is changed.
My code is very similar like this:
/* (swing1.1beta3) */
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
/**
* @version 1.0 11/09/98
*/
class RowHeaderRenderer extends JLabel implements ListCellRenderer {
|
| Show full article (2.51Kb) |
|
2 Comments |
|
|
|