32,199 Topics

Member Avatar for
Member Avatar for leiger

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 …

Member Avatar for leiger
0
194
Member Avatar for DeadSoul

[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; …

Member Avatar for DeadSoul
0
7K
Member Avatar for zango

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 …

Member Avatar for zango
0
739
Member Avatar for rmsagar

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 …

Member Avatar for JamesCherrill
0
214
Member Avatar for litchi

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 …

Member Avatar for litchi
0
161
Member Avatar for Lordson60

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 …

Member Avatar for jwenting
0
89
Member Avatar for mohamed mo'men

there is Inheritance mean subtype polymorphism or there not have same job ??

Member Avatar for xonglennao
0
60
Member Avatar for lich

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

Member Avatar for xonglennao
0
375
Member Avatar for johndoe444

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 …

Member Avatar for quuba
0
106
Member Avatar for lse123

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 …

Member Avatar for lse123
0
238
Member Avatar for spartanace

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 …

Member Avatar for BestJewSinceJC
0
90
Member Avatar for DrApe1

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. …

Member Avatar for DrApe1
0
121
Member Avatar for ceyesuma

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 …

Member Avatar for ceyesuma
0
111
Member Avatar for asad_80

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 …

Member Avatar for jwenting
0
154
Member Avatar for sciprog1

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 …

Member Avatar for stephen84s
0
163
Member Avatar for Lordson60

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

Member Avatar for javaAddict
0
60
Member Avatar for johndoe444

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 …

Member Avatar for ~s.o.s~
0
121
Member Avatar for johndoe444

[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?

Member Avatar for ~s.o.s~
0
62
Member Avatar for idlackage

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; …

Member Avatar for idlackage
0
238
Member Avatar for jakx12

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 …

Member Avatar for leiger
0
122
Member Avatar for Phoenix_7

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 …

Member Avatar for Phoenix_7
0
116
Member Avatar for pratz

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? …

Member Avatar for snippsat
0
246
Member Avatar for mahdi68
Member Avatar for newbie2010

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 …

Member Avatar for CrazyDieter
-1
298
Member Avatar for adity

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

Member Avatar for javaAddict
0
85
Member Avatar for gordonrehling

[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 …

Member Avatar for gordonrehling
-1
222
Member Avatar for spartanace

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 …

Member Avatar for javaAddict
0
3K
Member Avatar for SHARKASI

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 …

Member Avatar for stultuske
0
170
Member Avatar for Memo..~

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 …

Member Avatar for s_sridhar
0
108
Member Avatar for sajithdil

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!!!

Member Avatar for sajithdil
0
266

The End.