32,199 Topics

Member Avatar for
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
150
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
281
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
98
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
133
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
133
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
70
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
119
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
93
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
105
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
70
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
207
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
78
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
156
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
177
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
120
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
51
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
287
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
70
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
67
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
118
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
139
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
60
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
92
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
153
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
185
Member Avatar for Dio1080

My tic tac toe board is done, but I need it to show up in the Dialog box, not the console, how would I do that? Here is my code: javax.swing.JOptionPane.showMessageDialog(null, "\n-------"); for (int i = 0; i < 3; i++) { System.out.print("| "); for (int j = 0; j …

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

I am a student and have to submit a Mail Program. I have been asked to do the program using [B]GridBagLayout[/B]. The program is working fine but for the Layout. I just am not able to manage the layout problems I am facing in this program. Could I get some …

Member Avatar for Ezzaral
0
137
Member Avatar for pickachu

Im having arrayoutofbounds error on my code. [code] import java.io.*; class s{ public static void main(String args[]) throws IOException{ BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); String[] a = {"X","C","O","M","P","U","T","E","R","S"}; System.out.println("Enter Price: "); String b = in.readLine(); for(int i=0;i<b.length();i++){ System.out.print(a[b.charAt(i)]); } } } [/code] what am i doing wrong here? The output should …

Member Avatar for Black Box
0
108
Member Avatar for cga2

Hey guys, I wanted to know how can I code the game ball lines in Yahoo. It is a game very easy to understand and similar to tic tac toe but I just cant figure out anything as to how to start. Please help!! u can mail me on [email]chandanagrawal17@hotmail.com[/email] …

Member Avatar for Black Box
0
136
Member Avatar for mrityunjay22

step 1 myeclipse->prefernces->myeclipse->application servers->choosing tmcat5.5 for application server Step 2 using jdk 1.5 clicking ok then clicking on icon to start and stop tomcat but it says that no default server present what might be missing plz tell

Member Avatar for mrityunjay22
0
165

The End.