File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How can I customised the Ok-Cancel Button in JOptionPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How can I customised the Ok-Cancel Button in JOptionPane" Watch "How can I customised the Ok-Cancel Button in JOptionPane" New topic
Author

How can I customised the Ok-Cancel Button in JOptionPane

Rohit Kedia
Ranch Hand

Joined: Apr 24, 2010
Posts: 79
Can I make this size like the Above Search Button


[Thumbnail for untitled.jpg]

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
really looks like you should be using a modal JDialog (instead of the simplified JOptionPane),
then you can easily do just about anything you want with it.
Rohit Kedia
Ranch Hand

Joined: Apr 24, 2010
Posts: 79
Sir ,
But I have to used JOptionPane only because I have here a popup actually a JPanel from where user can select a User Info by Searching and after selecting that information he can add that in the JTextField.

So thats why I had shifted from JFrame to JOptionPane.

For that also I had raised Posts earlier in this Forum.
I had been sugessted to use a JOptionPane and which actually worked perfectly.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19542
    
  16

But now your requirements have changed, and therefore also the solution.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How can I customised the Ok-Cancel Button in JOptionPane
 
Similar Threads
html button and hyperlink
java script
button trigger
File downloading
How To Make the "Browse ..." Button Work?