32,204 Topics

Member Avatar for
Member Avatar for Majestics

at javax.swing.table.DefaultTableModel.setValueAt(Unknown Source) at javax.swing.JTable.setValueAt(Unknown Source) I am setting a table row manually.... its just for checking purpose , i have 10 rows and 10 columns but still i am getting this error, please help me to resolve it....

Member Avatar for Majestics
0
282
Member Avatar for foxy_123

Hi everyone, I'm trying to make a simple application displaying some amount of buttons which has added simmilar but different action. The amount of buttons is not known before compiling because it depends on external data. All the buttons are shown in some container. How did I get it: -creating …

Member Avatar for foxy_123
1
187
Member Avatar for mehnihma

Can you help me with this code, I do not know what is wrong? Thread is stuck somewhere? import java.io.*; import java.util.*; import java.util.concurrent.locks.ReentrantLock; public class Pokemon { private static ArrayList<String> pokemonList = new ArrayList<String>(); private static ArrayList<Thread> threads = new ArrayList<Thread>(); private static ReentrantLock lock = new ReentrantLock(); public …

Member Avatar for mehnihma
0
165
Member Avatar for sadzee

**I am making an Email Parser program. The email should follow following rules: • The prefix or the user-id (i.e. the characters before @) should contain at least 6 and maximum of 15 characters. • The domain name (i.e. the characters after @ and before dot) should contain at least …

Member Avatar for niranga
0
85
Member Avatar for Onlineshade

I have face some problem with java swing component.I need to show at least 200 data in a jtable.But here is the limitation in Jtable to show at most 100 data.How can I solve this problem?? I am using mySQL data base for handling data.So it is too difficult to …

Member Avatar for Onlineshade
0
185
Member Avatar for james chaco

Hi, I have created the following code to get connection object to Database(MySql in my case) using a static method. I wanna know whether it is a good practice or not? Will there be any problem like concurrent access? Any information will be helpful. public static Connection connection(){ Connection conn …

Member Avatar for SRocks
0
236
Member Avatar for FALL3N

I'm a 'JMenu Expert' or w/e, but I've used JMenus a few times before and have gotten them to do what I needed them to do... However, I am trying to do a new thing, and I'm not actually sure it's possible in java (maybe in Xcode) I am using …

Member Avatar for FALL3N
0
132
Member Avatar for darkseeker

Hello everyone, I'm new to java and I'm working on a assignment, but I couldn't compile the BookTest.java. Here's my Book.java package question_1; public class Book { private String title; // Title of the book private String author; // Author of book : private String isbn; // International Standard Book …

Member Avatar for NormR1
0
125
Member Avatar for zach1

Hey guys, i need help with this assignment. I am a complete beginner in java programming so i don't know how to get started in this thing. For this project, i am suppose to search for a specified word within a block of text. The word, the size of the …

Member Avatar for NormR1
0
234
Member Avatar for drameshgar1

hi! I am designing a 2d game, in my game i want to add a feature e.g. in my jframe i have three images if a user clicks on a image that image will automatically get set as a background throughout the three laves (in my game they are three …

Member Avatar for 117
0
129
Member Avatar for mehnihma

I need to input multiple files from directory but how to do it for any file name? If I do not know the file name So I can pass one by one file to thread? int 1 = 0; while(true) { String name = "Lab3File"+i+".dat"; File file = new File(name); …

Member Avatar for mehnihma
0
155
Member Avatar for mehnihma

How to take any bumner of arguments form command line and to search in arraylist> I now do it in with defined number of arguments and take every argument and search, but this is unlcear to me? Thanks

Member Avatar for mehnihma
0
65
Member Avatar for srinidelite

please tel me the logic behind the code for find the common aphabets between two words?? ex ... mine mind common letters are : m i n like

Member Avatar for JamesCherrill
0
82
Member Avatar for andisss

Hello! I need some help dealing with this error: java.lang.ArrayIndexOutOfBoundsException: 16 at com.lameguard.crypt.LamePacket.writeB(LamePacket.java:40) at com.lameguard.LameGuard.assembleAnswer(LameGuard.java:445) at l2ft.gameserver.network.l2.c2s.ProtocolVersion.runImpl(ProtocolVersion.java:94) at l2ft.gameserver.network.l2.c2s.L2GameClientPacket.run(L2GameClientPacket.java:50) at l2ft.commons.net.nio.impl.MMOExecutableQueue.run(MMOExecutableQueue.java:38) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) What could be causing this? Any suggestions are welcome! Thanks

Member Avatar for NormR1
0
189
Member Avatar for jshort89

I am a student and am pretty new with java. I'm trying to write a basic pacman applet for a class my problem is i have the code written to draw the maze and the pacman but when i run the applet all I am getting is the black background …

Member Avatar for NormR1
1
326
Member Avatar for raviaaaa

while configuring workspace in Eclipse, applet is not loading i am using jdk1.5 and Tomcat 5.5 but when iam try to open same application in IT link applet is loading sucessuflly (i have used the same code to configure locally) can any one please let me know how to resolve …

Member Avatar for NormR1
0
188
Member Avatar for SasseMan

Hi! I'm working with a huge software system with a lot of people being involved in the coding through many years. I'm noticing more and more that there is a lot of bad code, especially get methods here and there with huge side effects, which you totally not expect. So …

Member Avatar for SasseMan
0
244
Member Avatar for huskarit
Member Avatar for JamesCherrill
0
47
Member Avatar for LdaXy

I created a function that saves a file with a custom extention ".nra" however each time that i enter a file name, it throws ArrayIndexOutOfBoundsException public static void SaveFileNra() throws Exception { if(gl.DataStack.isEmpty()) { System.out.println("There is nothing to save!\n"); Menu(); } else { System.out.print("Enter the directory you wish to save …

Member Avatar for NormR1
0
158
Member Avatar for SD91

ok, so if i want to increment soemthing to "2.4," how would i do that? This is what i have: While (something == D) { total+=2.4; } Would this be correct?

Member Avatar for SD91
0
110
Member Avatar for tleverington1

Hi there, when calling a method from another class I get the following error message: ** Exception in thread "main" java.lang.NullPointerException at TextAnalyser.main(TextAnalyser.java:23) ** My two classes: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.lang.String.*; import java.util.*; public class TextAnalyser { static Tokeniser aTokeniser; public TextAnalyser(Tokeniser aTokeniser) { } public …

Member Avatar for tleverington1
0
2K
Member Avatar for Thermalnuke

Hey guys I need help with in my code... I need to add a method that checks wheather the weather attributes are consistant or not. thanks for the help heres my code... import javax.swing.JOptionPane; public class Week_eight_number_31 { private int DefaultFarenheit = 70; private String DefaultSky = "Sunny"; public Week_eight_number_31 …

Member Avatar for NormR1
0
181
Member Avatar for DavidKroukamp

Hey all, I have been wanting to make a cool game in jave such as a fighting game starting off simple with drwing stick figures :). But i was wondering why there are so many java games created in Japplet why not use swing- i know there are games out …

Member Avatar for DavidKroukamp
0
191
Member Avatar for Bradoz

Hello problem i am having is when trying to multiply polynomial 1 by polynomial 2 polynomial 1 gets mutliplied by the first term in polynomial 2 and not by each term in polynomial 2. Below is my code: ~~~~ /********************************************************************************************* * Multiplies Polynomial 1 to Polynomial 2 * The method …

Member Avatar for NormR1
0
311
Member Avatar for ibthevivin

So the program I'm writing should count how many of each individual vowel is in the program and then print that. I'm basically stuck with while and conditional statements. I think my if statement is where I've gone wrong. I'm not sure how to have it read the letter properly …

Member Avatar for SirMG
0
185
Member Avatar for RinzLove

> Quoted Text Here Hi, anyone can help pass values of JRadioButton to another JFrame? For example, if "twoway" Jradiobutton is selected, its value (a char i.e. "2-way face foundation") will be shown in another JFrame. Thanks in advanced.. Code blocks are created by indenting at least 4 spaces ... …

Member Avatar for NormR1
0
259
Member Avatar for rayan90

i have a single list program which i need to sort the nodes of int and String type unsing only one of these algorithms (insertion, selection, bubble and shell). no merge or quick or using collections and stuff. i'm having a difficulty here, i only know how to implement them …

Member Avatar for zeroliken
0
255
Member Avatar for helpsie

To make it short and sweet, here it is. Looking to do a simple screenshot on the client-side (and if anyone would be so kind, point me in the direction to create an automated upload of the screen to a server. ++ if you can provide a tip on doing …

Member Avatar for helpsie
0
887
Member Avatar for devninja

I have everything added to the JFrame using absolute positioning. It works fine but when it repaints the pie chart it also repaints the last JNumericField and button at the the very top left of the screen. At postion 0, 0 I presume PieChartFrame.java import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; …

Member Avatar for NormR1
0
187
Member Avatar for jarograv

I am working on a java application that will display an image and play a sound. It finds the current month and displays the appropriate information. Below is the code that I have been testing (that's why santa is in april) it will not work when trying to play wav …

0
224

The End.