-
as seen on Programmers
- Search for 'Programmers'
I am using NetBeans, and I have a class that extends to JDialog, inside that Dialog box I have created a Tabbed Pane. The Tabbed Pane contains 6 different tabs, with 6 different panels of course. What I want to do is when I click on the different tabs, a diagram is supposed to be drawn with the paint…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I would like to create an application in swing in the style of web 2.0 but have the power and functionality of a thick client. I know substance and some other look and feels help with this some, but I was wondering if there is a way I can actually use some kind of html panel / canvas to create the…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello.
I have one problem I've been dealing with for this week. You see, I'm new to Java, so that's probably it...
Anyways, I've started a project out of pure curiosity. I had it done in Java, but in plain CMD-style, which is not very pretty. It calls one of my ten programs, chosen by the user using…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using JDBC to connect my program to a MySQL database.
I already put the port number and yes, my database have permission to access.
When i use localhost work perfectly, but when i try connect to a remote MySQL database, show this error on console.
java.lang.ExceptionInInitializerError
Caused…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
package session;
import java.io.FileWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.swing.JOptionPane;
import org.openymsg.network.FireEvent;
import org.openymsg.network.Session;
import org.openymsg.network.SessionState;
import org.openymsg.network.event.SessionListener;
public…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
I have a method in my application called "Save as" which Saves the image of my application on computer my into a file.
I used the JFileChooser to let the users choose their desired location for saving the file.
The problem is unless user explicitly types in the file format, it saves the file…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
I have a question about the JFileChooser in Swing. I'm trying to get multiple file extensions in the drop-down box, but have no idea how to do it.
There is the method
extFilter = FileNameExtensionFilter(description, extensions);
that I can then use by writing
fileChooser.setFileFilter(extFilter);
however…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I don't like this ugly FileChooser layout in Linux.
This layout is used by any other program and is MUCH more beautiful.
Is this layout available in Java? If so, how?
Thanks
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Didn't want to bother people in here, but since I am under a time pressure, I am desperate to get help. My questions is how to link the file choosen from a JFileChooser to a file, and how to convert it to string being able to display and edit it in a TextArea.
I have the GUI set up using swing, but…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
i have this issue working but i would like to know if there is a better way of adding the file extension?
what i am doing right now is:
String filePath = chooser.getSelectedFile().getAbsoluteFile() + ".html";
im adding the extension hard coded. and then saving to it.
just wondering if there is…
>>> More