32,199 Topics

Member Avatar for
Member Avatar for StarZ

I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then …

Member Avatar for BestJewSinceJC
0
100
Member Avatar for whiteyoh

Hi all, Im trying to get my head around object persistance, yet im getting nowhere. All i have found is examples of stuff to do with databases. Can somebody offer an explination for an idiot please. Regards Paul

Member Avatar for kvprajapati
0
161
Member Avatar for chandini.david

Hey!! I am trying to make a 2-player game; where one player plays after the next. I have used socket programming in the code; so that, when the client (player 1) clicks on the window, the co-ordinates are sent to the server (player 2) and vice-versa. (For now, both player …

Member Avatar for chandini.david
0
211
Member Avatar for gotm

So one of the problems I have been having with my programs is the length of time it takes to print out a pixel map into the XPM file. I tested it with like : 500 rows and 2 columns -- 1 second 500 rows and 10 columns -- a …

Member Avatar for BestJewSinceJC
0
115
Member Avatar for sravan953

Hey All, I have been asked to do a project on Java at school. We are still learning it at an elementary level... Many decided to do the project on things like ticket booking, banking and stuff... whereas I wanted to do something innovative and so decided that my topic …

Member Avatar for BestJewSinceJC
-2
322
Member Avatar for tom.t

I have been asked to find the inefficiency in a piece of pseducode. I've looked at it but can't see it. IF count > 10 THEN WHILE x < 0 DO INPUT x ENDWHILE ENDIF My understanding: Count is evaluated. If count is <10, the app moves onto the next …

Member Avatar for tom.t
0
127
Member Avatar for kolibrizas

Hello, I am having a difficulty in passing a barrier of JAVA graphics generating. I hope you could explain some things to me, cause I have noone to help me and it is hard to get help in internet, because I feel like missing something important. The thing is I …

Member Avatar for kolibrizas
0
130
Member Avatar for kjiu

Hello, I have a problem.How I must add QMainWindow to my code, because the error is: [COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method menuBar() is undefined for the type Calendar[/COLOR] [CODE]package Kalendarz; import com.trolltech.qt.gui.*; import com.trolltech.qt.core.*; import com.trolltech.qt.gui.QMenu; import com.trolltech.qt.gui.QAction; import com.trolltech.qt.gui.QApplication; import com.trolltech.qt.gui.QColor; import com.trolltech.qt.gui.QIcon; import …

Member Avatar for kjiu
0
139
Member Avatar for krusso88

For a computer networking course I was given a project to make a Mail User Agent. We were given a few completed classes, but one of them is giving an error. Here is the part of code in question: [CODE] try { Envelope envelope = new Envelope(mailMessage, serverField.getText()); } catch …

Member Avatar for santiagozky
0
190
Member Avatar for Clawsy

Hello, I am trying to design an java desktop application. My question is: Is there a way to change the whole look? From example different titlebar, different jFrame, buttons... (designed with PNG images, transparency, etc.). Is it possible? If so, how? In VB or C# I can easely change those... …

Member Avatar for Clawsy
0
818
Member Avatar for abalasuriya

[CODE]public class Test { static Test t = new Test(); public static void main(String[] args) { Test a = new Test(); System.out.println(a.t); }}[/CODE] This results stack overflow why[code][/code]

Member Avatar for MoZo1
0
114
Member Avatar for santiagozky

Hello everyone, first of all, I dont know if this should be in the java or the jsp forum. I put it here since is a web related question. I am making a report module for a web page using java. For this I will use a jquery plugin called …

Member Avatar for santiagozky
0
152
Member Avatar for hanzooi

[IMG]http://i64.photobucket.com/albums/h200/chimine/Untitled-2.jpg[/IMG] it will then pop up this screen. [IMG]http://i64.photobucket.com/albums/h200/chimine/Untitled1-1.jpg[/IMG] how to do it?

Member Avatar for hanzooi
0
110
Member Avatar for rameshnerella

i am new to this kind of programming. please help me,. i got an IP address (32bits) & 3 int (32 X 3 = 96bits) totaling for 128bits i.e., 16bytes. my problem here is, how to club them all together to create a 16byte string. please help. thanks in advance

Member Avatar for mruthyunjaya
0
146
Member Avatar for roshnal

I have made a address book software with vcard ans csv support and a really nice interface. i have found no bugs so far. If i sell this software about how much should i charge? And does anyone know a site where i can get paid for my software?

Member Avatar for javaAddict
0
224
Member Avatar for jrosh

I did this .. [CODE] String filename = "tempoutfile.txt"; String tablename = "table1"; try{ Connection con = DriverManager.getConnection("jdbc:mysql://localhost/Test","root",""); Statement s=con.createStatement(); ResultSet r=s.executeQuery("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); }catch(SQLException se){System.out.println(se.getMessage());}[/CODE] But I can't find the file that is created!! When I run the query in …

Member Avatar for masijade
0
364
Member Avatar for Sandar Khin

Hi all, Pls help me .I want to make multile JLabel or JTextField with multiple Link in Marquee.I can do only one.Here is my code [code=java] import java.awt.*; import java.io.IOException; import java.util.*; import javax.swing.*; import java.awt.event.*; public class MovingText extends JFrame implements ActionListener{ JLabel label; JLabel label2; JLabel label3; public …

0
138
Member Avatar for Ryujin89

I am trying to create a program that has a class with a method that accepts a charge account number as an argument. Then the method should determine if the account number is valid by comparing it to the list of accounts in a text file (Accounts.txt). Then method should …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for StarZ

I'm supposed to merge a ordered data of two files into a third file, keeping the data in order. I'm suppose to create a MergeFiles application that merges the integers ordered from low to high in two files into a third file, keeping the order from low to high. Then …

Member Avatar for BestJewSinceJC
0
412
Member Avatar for LKH

how to create a mutlipication table in java program for example: enter x=5 enter y =6 output is: 1*6=6 2*6=12 3*6=18 4*6=24 5*6=30

Member Avatar for eggmatters
-3
190
Member Avatar for geek_till_itMHZ

I have a Java Program that I need to create that will show five random images selected form my image folder of 50 images. upon clicking a button the program should select 5 new random images. I have most of it figured out except for my ActionListener. Is it possible …

Member Avatar for Ezzaral
0
160
Member Avatar for jakx12

Ok so what i want to be able to do is connect to a mysql database. Here's my code so far: [CODE] Connection connection = null; try { // Load the JDBC driver String driverName = "postgresql-8.4-701.jdbc4.jar"; // MySQL MM JDBC driver Class.forName(driverName); // Create a connection to the database …

Member Avatar for masijade
0
525
Member Avatar for treyd

I have to write a program that has a tic tac toe board. When you click it, it should go from one image to another. My code compiles fine, but it doesnt run. I get some errors: Exception in thread "main" java.lang.NullPointerException at TicTacToe3.<init>(TicTacToe3.java:27) at TicTacToe3.main(TicTacToe3.java:41) My code: [CODE]import java.awt.*; …

Member Avatar for treyd
0
125
Member Avatar for jko2326

I have my program working but, I need to cut out the repeated code. How do I change this part of my code to pass arguments to a user defined method? I'm lost. I really have no clue exactly where to start on this. Basically when a user clicks a …

Member Avatar for jko2326
0
141
Member Avatar for GradStudent

I am a beginner with Hibernates. I added the appropriate files / Jar to my Project in netbeans ide 6.7.1. My Hbm file has multiple <class> </class>.. and i get this error. errororg.hibernate.InvalidMappingException: Could not parse mapping document from resource Customer.hbm.xml Was wondering this issue is associated with multiple <class>tags.

Member Avatar for GradStudent
0
90
Member Avatar for asong

i have a question but am confuse the question is create and array of random double floating point numbers,calculate and print the sum off all the numbers in the array.truncates all of the numbers in the array up to 7 decimal places and then calculate and print the sum of …

Member Avatar for javaAddict
0
108
Member Avatar for eggmatters

In Design mode in NetBeans IDE, I had a palette with all of my AWT and Swing controls and some netbeans that I can drag and drop onto the Jframe I'm designing, I accidentally closed it. I am not seeing a menu option anywhere to add that palette back as …

Member Avatar for eggmatters
0
282
Member Avatar for kjiu

Hello, I have the code: [CODE] public void color() { QColor color = QColorDialog.getColor(textEdit.textColor(), this); if (!color.isValid()) return; editor.setTextColor(color); } private void setupEditor() { QFont font = new QFont(); font.setFamily("Arial"); font.setFixedPitch(true); font.setPointSize(10); editor = new CodeEditor(); editor.setLineWrapMode(QPlainTextEdit.LineWrapMode.NoWrap); editor.setFont(font); new Highlighter(editor.document()); }[/CODE] but the error is : [B]The method setTextColor(QColor) is …

0
94
Member Avatar for Q8iEnG

Hi.. Is there any ready-made code for "Binary Search Tree" for Strings? if not, how to use Binary Search Tree with Strings? Thanks.

Member Avatar for Q8iEnG
0
117
Member Avatar for legilimen

When i do something like [CODE] static int call (Object a){ } main(){ call(10); } [/CODE] it works because of autoboxing But why didn't the language designers support something like this ? [CODE] static int call (Object []a){ } main(){ int []a = new int[10]; call(a); } [/CODE] Why didn't …

0
89

The End.