32,199 Topics
| |
Basically I've got a text editor which revolves around a jTextArea. There are some settings (e.g. whether line wrap is enabled) that I'd like to save to a file when the application closes, and then load up again when it runs next. I've spent a few hours trying to get … | |
[QUOTE] Hello friends i have tried my code to get the values from the database n display it in JTables but i am getting two errors.please help me. [/QUOTE] [CODE] import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.JButton; import javax.swing.table.AbstractTableModel; import java.awt.Dimension; import java.awt.Component; import javax.swing.BoxLayout; import java.text.MessageFormat; … | |
So my coding is a temperature converter. I have gotten everything down the way that it is wanted by the assignment except for one part. When I run the program, put in a value and select the radio button for conversion, no output ever shows up. Was hoping that someone … | |
Hello, I have a code which has public void run() and I have no problems compile the code. When I try to execute the class file I get an error Exception in thread "main" java.lang.NoSuchMethodError: main. Does the command line execution needs main() ? Is there a way to execute … | |
Hello :) I am working on a CRUD app to directly change a MySQL database on a remote server. I have a section where I can edit or delete entries. I choose an entry from a JList (populated by a ResultSet in a loop), and a JTextArea populates with the … | |
So i am working on a game, and i have a string value, and 3 integer vales, that i would like to save, so when you close the program, and then re open it, if you type in the string value, you will have you integer values. How do i … | |
there is Inheritance mean subtype polymorphism or there not have same job ?? | |
i need to lock a label positions so that it wont move during a event. when there is a event happens that label is moving from that particular position. is there any solution for this | |
Say I have 2 columns of data. I want to display headers like "hour(24 hour)" and "Power(KW)" and then followed by a number of rows with 2 columns(hour and power). The hour should be under "hour" header and properly aligned and similarly for power. I want that all the data … | |
I think my jar to work needs mail.jar plus the others class files what to do? subject:javax.mail.Message I used jar cmf SMTPClient.mf SMTPClient.jar SMTPClient.class SMTPClient$SendAction.class SMTPClient$UpdateListener.class [B]mail.jar [/B]SMTPClient.java but gives (how include another jar in my jar and keep package structure?) [CODE] C:\Users\User\Documents\TextBooksDataFiles\Java Network Programming, 3rd Edition\jnp3examples\examples\19>jar cmf SMTPClient.mf SMTPClient.jar … | |
Hi guys I need help getting an event from a button in one class, so that i can act upon it in my other class. Because the class that invokes the class that has the buttons in it is the outer class, it has no access to the buttons on … | |
Okay so I'm making a basic spellchecker. I'm using a relatively small dictionary with about 1000 of the most common english words, all on separate lines in a text file. I'm on windows so I can't use the Linux dictionary. Anyways, It's not working. And I'm not quite sure why. … | |
I have a JDesktopPane that opens and with a login it will add an InternalFrame with the InternalFrame 'innerclass'. The problem is that when I want to add another InnerFrame to the desktop I can't call the inner class to add an Internal frame because it wants me to login … | |
Hi, I have to make a program containing 52 Buttons having icons on them and have to attach action listener so that each button could function independently. Have used array in this program and have also been able to attach action listener with the array of buttons. Action Listener works … | |
Hello Members, I have a java file (myapplet.java), the myapplet.class file and the myapplet.html file. I would like to run this applet on my webpage. I use IE 7.0 The myapplet.html and myapplet.class files are both in the public_html folder of my UNIX account,which happens to be on the school … | |
so i am creating a game, and what i would like to happen is if you type a string value into the "create new" 5 integer values will save. fi you type a string into the "Username" the 5 integers will be read and put back into the file | |
I want to know how to check gracefully whether 2 sets are distinct or has at least 1 element in common. I don't want to find the common elements. Just knowing whether there is intersection or not is sufficient. May be I can do this using retainsAll but it changes … | |
[CODE] Set s = new HashSet(); if (s.retainAll(anotherSet)) { ... } [/CODE] now it anotherSet is null the code is showing nullPointerExcpetion. How can I make retainAll work whether anotherSet is null or not? | |
Labels would not show up in the output window. The red highlighted code is where said labels get added to the window. I can't tell what's wrong with the code and I've looked at it over and over. [CODE]import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JButton; import java.awt.BorderLayout; import java.awt.GridLayout; … | |
So I have a boolean representation and inside that representation contains shapes. All the points of the shape must be true in the boolean array. For some reason its not putting the points on the array. Here is my code, please help me! [CODE] for (int d = 0; d … | |
this is my first time on this board, so hi. :p I'm currently learning basic java in college and I need some help. I have a constructor for my Node class and I've linked 3 string nodes together and I need to print them in order. So far I got … | |
I have just started learning python, I am a Java programmer. I think python is more simple than java. What I wanted to ask is, where is python used? And if python does not follow the complete OOP concepts, then can it be used to design large / major applications? … | |
Hi which mobile devices support JavaFX ??? thanks | |
Hello everyone, i'm trying to use 2 mootools scripts together in one source. They work serperately but as soon as i combine them only one is working. It seems they interfere with each other but i can't seem to find the problem. Can anyone help me out? I'll paste them … | |
I have a JTable as a leaf node of a Jtree. But though I can select each row in the table I cannot select each cell element. Please HELP! Adity | |
| [QUOTE=varunnanda;1173601]Thanks you very much, I am oblized.[/QUOTE] I'm very new to Grails, so hopefully this isn't blind leading blind! Below is the environment entries from my datasource.groovy dev works ok against memorydb prod works ok against MySQL running on a server with the noted IP address However, I can't get … |
This is my overloaded Jpanel i want to pass the event of the buttons, so that i can change the text in the jLabel in my main class listed below. [CODE]import java.util.Scanner; import java.awt.*; import javax.swing.*; import java.awt.event.*; public class Keypad extends JPanel{ private JButton b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12; public Keypad() { setLayout(new … | |
I'VE A PROJECT AND I'M JUST START LEARNING JAVA SO I NEED HELP . HOW SHOULD I START WITH THIS PROJECT ............????? Design and code a Java application to store and manage the rates of some currencies of interest and to perform conversions between them. The application should have a … | |
hi everyone.. I have this assignment that I should sort whatever I enter in ascending order of the variable a .. I want to know what is wrong with this Thank you all in advance.. [CODE]public void addRecord() { Scanner abc=new Scanner(System.in); System.out.println("Enter the file number "); int a=abc.nextInt(); System.out.println("Enter … | |
hey guys i want to know is it possible to take a 3ds max 3d model and show it in a java file?? if so could i have some pointers in the right direction?? thanks a lot its much appreciated!!! |
The End.