35,619 Topics

Member Avatar for
Member Avatar for Fazle

Hi, I am struggling to read ( Hex )bytes from TCP port and write to a file. If someone can help me, I will aprreciate. Thanks,

0
67
Member Avatar for kspider811

I can not figure out how to add to my array. The invntory class and dvdrate subclass is not to change. So within my InventoryProgram2 I am told to copy a temp array with the addition of an element to the actual array using the add button. This is so …

0
59
Member Avatar for ziaul1234

Hi I am using netbeans and mysql. I am trying to run the an inventory system. I have linked the program with mysql. The program is running but when in log in page I input username and password which is preinstalled in mysql and then press submit, its not going …

Member Avatar for javaAddict
0
3K
Member Avatar for petee1302

Hi everyone, Apparently I'm very bad at this whole programming thing, but, nevertheless, I am currently in a CPS course and in dire need of assistance! I have 3 objects set up: TwoNumbers, TwoNumbersTester, and Test. When I build the code, it's all fine. When I run the code, though, …

Member Avatar for petee1302
0
297
Member Avatar for shyni

The program which is executing in windows has occurred error in linux. The program is on the jframe which is designed by using swing controllers is executing with error free in windows but when i use to execute the same program in linux an error as [B]GroupLayout [/B]error is occurring. …

Member Avatar for Kruptein
0
105
Member Avatar for solomon_13000

What is the difference between the following two interface. How does the term "abstract" used along with an interface makes it different?. [CODE] abstract interface Bendable { } interface Bendable { } [/CODE]

Member Avatar for BestJewSinceJC
0
94
Member Avatar for karamjeet2004

i hav cod to redirect to two different pages but one cod is working and one not one form enctype is urlencoded which is default is working and other with enctype=multipart is not working plz help i googled about this but nothng works so i came here 4 d sol …

Member Avatar for jwenting
0
109
Member Avatar for ceyesuma

I have a class KeyCards.java that just sets up a panel (gui) with labels,combobox and text fields when the combobox is selected a class generates strings to send to a class public Class Progressions extends KeyCards and puts the strings in setters. once all the strings are there it calls …

Member Avatar for BestJewSinceJC
0
182
Member Avatar for JanieRae

Hi, I'm a freshman and I just started programing. I have an assignment due soon, and it's almost finished. My only problem is there is one build error that tells me ".class expected". This is on the same line as a for statement... and that really confuses me. Here's my …

Member Avatar for BestJewSinceJC
0
119
Member Avatar for heroes8453

Does anyone know where I can find information about writing a java application for a file dump utility, a java program that will read a file and display the contents of the file in a byte by byte format? I am lost on this one.

Member Avatar for jwenting
0
117
Member Avatar for kvass

Hey everyone~! I am having a major issue understanding class casting. I thought I understood it, but I found 2 problems in my Barron's book that seem to contradict in their explanations. Can someone please explain the distinction between these two problems??? [B][U]Problem 1:[/U][/B] [INDENT] Bird = Super class Owl …

Member Avatar for kvass
0
233
Member Avatar for ef32

Hello , am new here and i need some help in finding prime numbers.....I actually wrote this code below and it compiles but it repeats sequence with some numbers or most, plus if you run it you will see that the prime numbers are printed as prime numbers only but …

Member Avatar for mrnutty
0
127
Member Avatar for musthafa.aj
Member Avatar for musthafa.aj
0
3K
Member Avatar for BobLewiston

To avoid malware infections, should I permanently disable Java and ActiveX in Internet Explorer? How about Javascript? If I should also disable Javascript, should I just disable Active scripting, or all options? But I don't also need to disable any of these in Windows itself, right?

0
87
Member Avatar for beGinneR24

Hello, i am just starting with Java and one of the programs is, to make a long story short, evaluate a computers power (pretend). you put in how many applications you want to run, what operating system and what power your computer is and it tells you whether you can …

Member Avatar for beGinneR24
0
98
Member Avatar for rsaska

Hello, I am studying for SCJP 6 Exam, and came across this question which shows code as asks for the output [CODE] 3. public class Ebb { 4. static int x = 7; 5. public static void main(String[] args) { 6. String s = ""; 7. for(int y = 0; …

Member Avatar for rsaska
0
224
Member Avatar for solomon_13000

Why is it that when I invoke the Derived constructor from the main method, I get a compilation error pointing to the Derived constructor of the Derived class. I never called the Base constructor of the Base class. Therefore why is the error happening?. [CODE] class Base { private Base() …

Member Avatar for PatrickSharp
0
128
Member Avatar for Siren88

Hi, My assignment is to write static methods to give the following output: - Lists of all the sequences, all the perms, all the sets, and all the multisets with n=5 and k=3. -The [I]N Queens Problem[/I] considers how many ways n queens can be placed on an n by …

0
59
Member Avatar for jorgelex008

Hi all, I've got a main form, and a secondary form (this being a list from which I pick a number). I can store values as "global" variables - so as to bring the value across different classes. Also I've managed to get the main JFrame to display the value …

Member Avatar for jorgelex008
0
168
Member Avatar for java_programmer

Hi, I have another question. What is the advantage of arraylist over vector. Why arraylist is widely used instead of vector in java programming? Thanks in advance.....

Member Avatar for BestJewSinceJC
0
119
Member Avatar for mahdi68

Hi i install openJDK on fedora 12 , after run eclipse this message shown : [QUOTE]JVM terminated. Exit code=-1 -Xms40m -Xmx256m -XX:MaxPermSize=256m -Djava.class.path=/home/mahdi/App/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -os linux -ws gtk -arch x86 -showsplash /home/mahdi/App/eclipse//plugins/org.eclipse.platform_3.3.201.v200909170800/splash.bmp -launcher /home/mahdi/App/eclipse/eclipse -name Eclipse --launcher.library /home/mahdi/App/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.200.v20090520/eclipse_1206.so -startup /home/mahdi/App/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar -vm /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/../lib/i386/client/libjvm.so -vmargs -Xms40m -Xmx256m -XX:MaxPermSize=256m -Djava.class.path=/home/mahdi/App/eclipse//plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar[/QUOTE] please help me what …

0
76
Member Avatar for chama89

I'm working on a Java program that is calling sqlcmd. It works perfectly on a computer with SQL server installed, but not at all on a computer that doesn't. I want to include the necessary exe and dll files to run this command in my jar. Anyone know which ones …

0
53
Member Avatar for JuneM

I need to create a JApplet containing a JLabel and a Jbutton. a JButton should automatically change font typeface, style and size when clicked. I have this coding so far : import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JFrame implements ActionListener { JLabel name = new JLabel …

Member Avatar for verruckt24
0
99
Member Avatar for kgkamaraj

Hi friends, This is not java technical question. I am doing project java thats why i am posting here. I am doing project for SUMMARIZATION OF DOCUMENT. I finished 90 percent of my project. To test my project i need Data Set ( That means, Document with summarization ) . …

Member Avatar for kgkamaraj
0
123
Member Avatar for ahmedshayan

I am faced this Problem that I can't print display parent's content. Please help: [CODE] import javax.swing.JOptionPane; public class BinaryTree { private Node root; BinaryTree() { root = null; } //------------------------------------------------------------------ void buildTree() { String n=JOptionPane.showInputDialog("Root Information:\nEnter Name: "); int a=Integer.parseInt(JOptionPane.showInputDialog("Root Information:\nEnter Age of Root:")); String s=JOptionPane.showInputDialog("Root Information:\nAlive or Dead?"); …

0
74
Member Avatar for musthafa.aj

i coding these line ... it is working fine.... but what i need is compress that [COLOR="Red"]Bufferedimage [/COLOR] before getting it as [COLOR="Green"]Raster[/COLOR] i tried jpeg compreesion but it return bytestream instead of int.. so i got exception "can't cast BufferdByte as BufferedInt"... [CODE] [COLOR="Red"]Bufferedimage [/COLOR]image=robot.createScreenCapture(new Rectangle(width, height)); ////here i …

Member Avatar for masijade
0
171
Member Avatar for Sherril

I am attempting to stream accelerometer data from a Python script to a Java midlet via a socket connection on a Nokia N97, using the following code. Unfortunately, this code (which previously worked fine on a N95 8GB) doesn't seem to send any data to the midlet, and I have …

0
56
Member Avatar for henrybahus

Hi all, I want to say first of all that I'm a beginner with jsp. Now I explain my issue: I have a page (called A) where I want to execute some code if user come from page B and other code if user came from page C. How could …

Member Avatar for peter_budo
0
81
Member Avatar for Dedodido

Hi, I'm writing a small program to simulate a projectile moving through air in a gravitational field. I have several classes for vectors, the gravitational field, and the projectile itsself. However, when constructing any of these objects in the main method, I get a "cannot find symbol" error, despite the …

Member Avatar for Dedodido
0
134
Member Avatar for manikandan_dani

hi, please give some information regarding dialog box, conformation box in jsf2.0. In my login screen, how to show the success or failed message through dialog box thanks.

0
57

The End.