32,204 Topics
| |
does anyone know how to fill the JTable with the binary values such as if we have 2 variables a and b the table should be filled in as follows: a b 1 1 1 0 0 1 0 0 any suggestions would be useful.. thanks | |
Every time when i try to catch exception on the rage of my port Also the Message input box ( can't enter the negative number ) The program seems like doesn't response for my action but when i disable all the code below it will work fine Here is code[CODE]private … | |
I want to create a Entity class with database in Netbeans. When i select a Data source jdbc/Ionbank (custom Jdbc connection Using JDBC-ODBC bridge with Ms SQL 2005 as database). I see all the table from that database. All tables show no primary key, but they have primary keys in … | |
Good morning everyone, I have a small problem here. I tried to code a piece of program which allows users to construct logic formula. (E.g A V NOT(B)) When the button NOT (unary connective) is pressed 2 times then this happens: [COLOR="Green"]NOT(NOT())[/COLOR], using a static recursive method called Rec returning … | |
Hi I'm new to java and I have written a simple Program and everything and set up a Path variable And then I tried to compile it by changing the cd and using javac Then it asks whether javac.exe can make changes to the computer. I tapped yes and then … | |
I am working on this for hours..Your help is highly appreciated. The client will send 32 integers to the server. These 32 integers will be read from a file called DataInput.txt that is the same directory as the source of the client. I am trying to implement this delivery using … | |
Hi, I'm trying to make an online compiler for java using ASP.NET C# Process p=new Process(); p.StartInfo.FileName = "C:\\Program files\\Java\\bin\\javac.exe"; p.StartInfo.UseShellExecute = false; p.StartInfo.Arguments = "C:\\Hello.java"; p.StartInfo.RedirectStandardInput = true; p.StartInfo.CreateNoWindow = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.CreateNoWindow = true; p.Start(); p.StandardOutput.ReadToEnd(); p.WaitForExit(); I run javac.exe to compile Hello.java, but the process … | |
Hiya, I wasn't really sure if this goes under Java or Game Development forums, so I decided to post it here. I'm making a simple "Scrabble" game, which checks letters placed on the table and tries to find if they form proper nouns. I have a list of words, and … | |
| This is a mess. What I want to do is make 1 program with the 3 loops in it do something different and produce an output of what each loop does. Do loop: print out every other character For loop: print out the string reversed While loop: print out in … |
Hello, I am creating a basic Java program that will store music. musicID Track Name Track Artist I have chosen to do this through a text file, to store and view my data. My text file output currently looks like this: [CODE] 1 TrackName1 Artist1 2 TrackName2 Artist2 3 TrackName3 … | |
Hey so I dont want someone to just show me the code, but I've been struggling to get this to work for hours. I need to write a program that finds all the words with consecutive vowels in them... this is what I have so far... -we are given a … | |
Does anyone have an example or a starting point for this? I have written a program that checks for palindromes but I am lost with this. Any help would be great, thank you! [COLOR=#000000][/COLOR] [COLOR=#000000]Create a class that models a palindrome. The program should have getter and setter methods for … | |
Plz help me in writing a prog that coverts a integer values to respective hexa value and store it to a file eg: in file i need like this 15 0xf(0x mandatory), 255 0xff 254 0xfe | |
So I have an assignment due tomorrow and I've been trying to get this program to work, but it's quite difficult for me to do. I need help in taking the user's input and placing it on the grid and checking for all the matches to see if one of … | |
Hello, I have a project to complete where I need to create a system that stores Clients, Stock and Invoice data through a GUI. I need to be able to store multiple unique records of 'Client' in an array that allows me to edit, delete & navigate through them one … | |
I Want to develop an application from which user can login into the particular website which sends SMSs, so ultimately we can send SMSs using application without opening website.. i dont know how do i code for that, can anybode help me ?? thanks in advance | |
Here is my assignment: In Chapter 5, you created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30 inclusive. Allow the user to choose six check boxes to play the game. [B][U](Do not allow the user … | |
I have a class called "Vindu" and a class called "Innlegg". I am adding a object from "Innlegg" into an ArrayList called al. But when i try to get the text out from al i only get text like this: "Innlegg@5de9ac4" Is this the memory address or something? How can … | |
Im making a program that has to call on a method when space is pressed,note it is the first time I'm doing a keylistener To do this i did [CODE]public void keyPressed (KeyEvent e) { int key =e.getKeyCode (); int space = 32; if (key==space) { } } [/CODE] and … | |
Hi! I'm having some problems with my build files while running junit tests via ant. The build worked fine until a couple of days ago when I got a "process fork failed" error message. Further down in the stack trace i got: Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_25\jre\bin\java.exe" … | |
I am making an app similar to the CMD in windows, or Terminal in Linux. My problem is, after calling the method the user has selected, I want them to be able to select another. Instead, it closes. Main class (jDOS.class) [CODE]package jdos; /** *jDOS Cross-Platform Java Console *Luke Pattinson … | |
HOw can i read from a socket and display message from socket in Textarea of Chatpanel even if there is no any focus in Chatpanel.I mean when i create two chatpanel instance then after clicking the send button in 1st chatpanel the message from socket should be displayed in Textarea … | |
I'm writing a program that compare two objects'distance. I already implements the comparable class to my distance. I also override the compareTo() method. So far it does not give me a compiler error, but I have a logic error. I have been try to search where my error occur, but … | |
I spent about 4 hours trying to make PMD being able to validate my Java code but XPath proved to be very painful to work with when developing fairly original custom rules. My rule requires me to apply them only to methods without 'get' as part of their name. In … | |
I hope someone can help me.. I'm taking a course in programming with java and I have an assignment which is just killing me. I've been visiting the Blackboard page for the class and looking at other questions asked for help from other students in the class having similar issues, … | |
hello, can any one answer me is java the router's programming language, or at least the mostly used in it? thank you in advance for any kind of help best regards | |
HI ALL, well i am writing a program for quick sort but with some changes. The following code sorts the integers but i need it to show the sorting process in each steps.i.e. for example: Initial List: 5 -> 9 -> 2 -> 9 -> 7 -> null Level 0: … | |
Hey guys, I'm here to ask you a question. I have a constructor to get the highest ID (first int) from my Employee data file (int string string string int double), but I have no idea on how to actually display it within my JTextField, with a +1, so I … | |
I have to find out how many times the [CODE]createPerson()[/CODE] function is called This is my Main.java file [CODE]import java.io.IOException; public class Main { public static void main(String[] args) throws IOException{ int i; Student[] totalStudents = new Student[10]; Student.create3Persons(); Student.create2Persons(); } } [/CODE] this is my student.java file [CODE]import java.io.*; … | |
Hi people, well i am a computer science student and my dissertation title is "An Agent Based Tutoring System" and i am using JADE to do it and MySQL for the database. Can any one help me in doing it?? I want you people propose me some ideas so as … |
The End.