36,051 Topics

Member Avatar for
Member Avatar for chicago1985

I have a class that fetches a record but dont think I need to use List object because I am fetching one record and not an array of records. [code=java] public List getRecords(){ ResultSet rs = null; Statement stmt = null; Connection connection = null; List rows = new ArrayList(); …

Member Avatar for Ezzaral
0
115
Member Avatar for aan@ucsc

Could I run a java program without installing the java vitual machine on the computer?If yes how could I do it?

Member Avatar for Ezzaral
0
128
Member Avatar for ceyesuma

Can any one tell my why the images[i] is not affective? [code] /* * TPanel.java * * Created on December 9, 2007, 7:42 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package keycards; /* * TPanel.java * …

Member Avatar for darkagn
0
179
Member Avatar for Savage221

Hello everyone. I have to write a program that needs to use generics. I'm basically just hoping someone can guide me in the right direction here. Lets say I need a program that loads different crates onto a boat. I have to have a boat class (generic class), then other …

0
82
Member Avatar for lemme_live

Hey i have to create a vector in order to store shapes,in specific circles. but i have no idea of how to do such a thing. if anyone is able to help lemme know. thanks in advance.

Member Avatar for lemme_live
0
72
Member Avatar for Acidburn

Hey guys, How do you tell which type of GUI should you use ? I'm making a swing application but everytime I look at a Java example / tutorial they tend to use different ones for each example. Is there a reason? I'm guessing so which leads me to which …

Member Avatar for enes
0
103
Member Avatar for EMUGOD

[CODE] private int[][] gameBoard; private int[][] scratchBoard; public Intboard(int[][] world) { gameBoard = world; scratchBoard = world; } public void updateBoard() { gameBoard = scratchBoard; } //...skipping a bunch of confirmed working methods... public void advanceOneGen() { for(int x = 1; x<gameBoard.length-1; x++) { for(int y = 1; y<gameBoard.length-1; y++) …

Member Avatar for Ezzaral
0
120
Member Avatar for im_desperate

Hey I have a problem of how can i modify the bankAccount in order to count how many instances of the class have been created. I think of that but the problem is that don't know how to add it to the original program : private static int instanceCount = …

Member Avatar for jwenting
0
170
Member Avatar for Acidburn

Hey guys, Got my logger working as i wanted it to.. basically it just logs to a file using java.utils.logger anyway now got a problem. I'm wanting to duplicate the logging output to a JTextArea on my GUI. So I thought of building a wrapper class but to my suprise …

Member Avatar for Acidburn
0
135
Member Avatar for jinalh

hi, i am new beginner of the java & i want to create a application such using applet for create user - student & admin.

Member Avatar for jwenting
0
93
Member Avatar for berlin

not sure if i'm using the right term... i'm having a prototype built and i found that the programmer I hired isn't using php to show form errors. he's using javascript. there are 20 different forms in this app, from user profiles to submitting photos and videos. the site is …

Member Avatar for berlin
0
121
Member Avatar for mdzafaruddin

Hi, Need help in creating a small java user interface through which we can make a connection to MS Access database with (username and password) , the user interface should ask for a username and password to connect to that specified database, once verified username, should get connected to the …

Member Avatar for peter_budo
0
84
Member Avatar for CloudSportRacer

Hello, I am new to java and was looking all over the place for a pop up type warning box coding for java. If someone has any ideas, that would be excellent! Thanks!

Member Avatar for CloudSportRacer
0
119
Member Avatar for ivabigun

Hi, I am wanting to reverse mod 128 or 255 on ASCII values, does anyone know how to do this? Thanks

Member Avatar for ivabigun
1
150
Member Avatar for Artmann

Hello. I've recently started to explore the world of Java ME, and now ther's only one problem. Compiling. I've installed Java adk 1.6, Sony Ericsson SDK and even some tool I found under Suns Java ME section but the compiler still doesn't find the ME packages. Hope somone could post …

Member Avatar for peter_budo
0
155
Member Avatar for Magda

Hi all, I need to write this program today and I really struggle :-( Would you be able to help at all? public class ISPN { private int[] authorId; private int[] programId; /** * Creates a new instance of ISPN */ public ISPN(int[] anAuthorId, int[] aProgramId) //constructor that takes two …

Member Avatar for Joey Bumba
0
301
Member Avatar for jackskell26

Hello All, This is suppose to be my finished code for my "PacMan Game". All this "game" is suppose to do is to allow a Pacman to eat dots that can be placed on the screen at any location by clicking the mouse. It has a main class and a …

Member Avatar for jackskell26
0
127
Member Avatar for snitch321

i need some help with the SlowMovevertical method, i dont know how to incorparate it correctly into my source code to make it work? thanks if you can help.

Member Avatar for Ezzaral
0
128
Member Avatar for Danii

As an example, consider the following array of 9 integers in the range 1 to 5: [2, 3, 2, 1, 4, 5, 2, 3, 1] The count array would contain the following values: [2, 3, 2, 1, 1] Working from this set of counts, the sorted array would be: [1, …

Member Avatar for PoovenM
0
149
Member Avatar for naps

I am a final year student and thinking of a project topic to do. Any suggetion?

Member Avatar for masijade
0
82
Member Avatar for darko_petreski

Hi all, I like to see a project documentation and code. I like to see documentation that includes UML, activity diagram, sequence diagram and code. Where can I found such a documentation of some project? Is some good documented project available on the internet ?

Member Avatar for ithelp
0
32
Member Avatar for tactfulsaint

I have this code that i used for shoopping and adding to cart. but the problem here is that when i add to cart it'll not display the artist song that i choose and add 'em to cart rather it uses the one from another class. Please how do i …

Member Avatar for tactfulsaint
0
157
Member Avatar for tactfulsaint

please i need some help with this, i want to display the curent date n time at the bottom of this page. when i run it . THANKS. [code=java] import javax.swing.*; import java.awt.*; import java.awt.event.*; import javax.swing.event.*; import java.util.Calendar; /* <applet code=" The.class" height=20 width=20> </applet> */ public class The …

Member Avatar for tactfulsaint
0
157
Member Avatar for mickinator

Hey all, I'm not gonna ask for help with code or anything. What I would like is some help with an idea for a project I have, it's for college. Basically the spec for it is: Design a new keypad for a phone, to type sms' with one finger, and …

Member Avatar for mickinator
0
284
Member Avatar for ivabigun

Hi people, I am wantng to read a key in as an argument that will duplicate itself to the exact character length as the plaintext , read from a text file. E.g. key = deceptive Then i need it to repeat until the end of the plaintext file length as …

Member Avatar for ivabigun
0
102
Member Avatar for Jezarel

Hi guys and girls. I’m a bit of a newbie and I hope I haven’t posted in the wrong thread but I need a little help. I am trying to mess about with Greg calendar. I have been told to make a diary app and was hoping to use this …

Member Avatar for adpeate
0
144
Member Avatar for slayer10

Im trying to move picture used on one button to another button, i tried Icon pic = btnA1.getIcon(); btnA1.setIcon(pic);

Member Avatar for Ezzaral
0
137
Member Avatar for Jezarel

Hey guys, back again I be. Having a new problem with my dates. I want to sort by date and that's fine but in order to sort correctly by date i would have to reverse the date and ignore the slashes or it wont recognise that 2006 is before 2007 …

Member Avatar for Ezzaral
0
74
Member Avatar for newbieGirl

Hello and good evening everyone :) I've written up a program that counts the number of times each number on a die (dice) is rolled, with the percent. Only thing is, I'm not quite sure how to output the percent. Everything else seems to be working except that part... What …

Member Avatar for newbieGirl
0
122
Member Avatar for newbieGirl

How frustrating... I get to the end of something that looks as if it should go through the compiler ok, but it doesn't. I'm trying to make a sort-of stop watch that counts in nanoseconds. What did I do wrong, or what am I missing now? [code] public class Counter …

Member Avatar for Black Box
0
95
Member Avatar for Acidburn

Hello there guys, I've got a strange problem... I'm using NetBeans IDE v5.5 and when I run my application inside netbeans by clicking 'Run main project' it runs and everything works correctly. Now when I go to the dist folder and double click it... (the Jar file is assicated with …

Member Avatar for Black Box
0
109
Member Avatar for new_2_java

Hi all, I am trying to compile the following class, but I keep getting this error message. Class: [code] package com.tool; public class WebTopBrowserTreeTag extends com.documentum.webtop.control.WebTopBrowserTreeTag { protected Class getControlClass() { return com.tool.WebTopBrowserTree.class; } } [/code] Error: [code] com/tool/WebTopBrowserTreeTag.java:4: cannot access javax.servlet.jsp.tagext.TagSupport file javax\servlet\jsp\tagext\TagSupport.class not found public class WebTopBrowserTreeTag extends …

0
71
Member Avatar for jackskell26

Hello, I am writing a VERY simple version of Pacman. In this "game" the user can click on the screen to select where the Pacman will start and any other clicks will add dots to the screen. The pacman will then be controlled by the arrows keys. The pacman should …

Member Avatar for jackskell26
0
210
Member Avatar for midnight_falcon

Could you help me optimize the following fragment of java code please? For (i=0; i<=9999; i=i+1) { for(j=0;j<=9999;j=j+1) { if (a[i,j]>0 && b[i]>0) { a[i,j]=a[i,j]*2 + b[i]; } } } Thankyou also can i just ask, could you tell me the purpose and give short examples of the input/output of …

Member Avatar for midnight_falcon
0
82
Member Avatar for lookof2day

Hi, I'm trying to reproduce a Production Exception. In order to reproduce it I want to limit the size of my log file. Is there a way so that I can limit the size of my log i.e., my log should not grow beyond a limit. Is there a java …

Member Avatar for ~s.o.s~
0
158
Member Avatar for vinithktp

to this servlet i have to get values of to,from address and filename from a jsp though all jar files are put in class path the servlet is not recognized public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try{ String to = request.getParameter("to"); String from = request.getParameter("from"); String …

Member Avatar for vinithktp
0
182
Member Avatar for soso30

dear all, i want to build applet viewing video from an ip camera which gives video type MPEG-4. how can i build that application?which api i need to work with?

Member Avatar for masijade
0
123
Member Avatar for Togarox

Hello. I am a beginner at using Java. When getting Java set up, I had trouble with my path. It was my own fault for not reading. I put my Java path at the beginning instead of the end. When I was told to put it at the end, I …

0
52
Member Avatar for slayer10

i want ot make a 2-dimensional array of JToggleButtons to store toggle button names but i cant figure out the snytax Please Help!

Member Avatar for slayer10
0
289
Member Avatar for memocool

Hello everybody i'm here for the first time n i hope you can help me i have to do a project for web-based course i didn't get the full idea yet my friend told me to do a web site like Hotmail or yahoo but i don't know how to …

0
43
Member Avatar for dabronx1671

I'm trying to write a program for the Blackjack game but I keep getting an error message saying "; expected" but I don't understand why a semicolon would be needed. The line of code that it occurred was: "boolean playBlackjack()"

Member Avatar for Ezzaral
0
73
Member Avatar for hemanth.balaji

Hi Guys, I was doing a Mail Program and Got stuck in the following questions. I don't know How to approach. 1. Right Click pop Up Menu for Attachments List and adding pop up listener for this. Some kind of a right click context menu for each item in the …

0
55
Member Avatar for kdelorme2005

Hi I was wondering if someone could help me write JAVA for a mad lib. Thanks

Member Avatar for masijade
0
68
Member Avatar for thanaras

Hello. I have a grayscale image that i want to process. I take the raster and then i want to scan the pixels and once i find a non-black pixel, i want to make an operetion(which doesn't matter right now). When i have an ARGB image i do this int[] …

Member Avatar for Ezzaral
0
126
Member Avatar for rickster11

I'm having all sorts of problems getting this program to work. I think I know what's wrong with it, but I don't know how to fix the problem. The program is supposed to read a text file that contains information like below.... 1 99 2 88 3 77 4 66 …

Member Avatar for Ezzaral
0
142
Member Avatar for finalheavenx

Hello I'm a newbie java student, I would like to ask how can I get this kind of program output by using java: [B]10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 8 8 8 8 8 8 8 8 …

Member Avatar for sameerrathore
0
64
Member Avatar for jmasta

I'm getting a whole bunch of null pointer exceptions when I run my program. Here's the info: My program takes a text file (myIn.txt), will keep individual totals of all the characters, then put them into an ordered linked list. Now I need to build a pseudo-Huffman binary tree, with …

0
93
Member Avatar for Kevin392

Would appreciate any assistance.... Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 9:45:56 PM, on 11/19/2007 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16544) Boot mode: Normal Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe C:\WINDOWS\system32\LEXBCES.EXE C:\WINDOWS\system32\spoolsv.exe C:\WINDOWS\system32\LEXPPS.EXE C:\WINDOWS\Explorer.EXE C:\WINDOWS\ehome\ehtray.exe C:\WINDOWS\system32\hkcmd.exe C:\WINDOWS\system32\igfxpers.exe C:\Program Files\Java\jre1.5.0_06\bin\jusched.exe C:\Program Files\Intel\Modem …

Member Avatar for Kevin392
0
142
Member Avatar for claudiu_is

I`m creating a desktop application which need s to store some data. I would probably store no more than 100rows with 10-15cells. Question is, should I use csv or an sql database; which one is accessed faster ?

Member Avatar for Ezzaral
0
154
Member Avatar for mauro21pl

Hi I just started to learn Java and I woulkd like to make my life a little bit easier. I am looking for a good java compiler, something that works as good as Dev-c++ for c++. The application taht collor specific text of code and do the indentation. Thanks

Member Avatar for jwenting
0
196

The End.