36,051 Topics

Member Avatar for
Member Avatar for kharri5

I'm new to swing, and was curious if anyone could point me in the right direction here. Cannot figure out how to make this repaint crap work, or if I'm supposed to be using repaint(), or what, to make this image get drawn to the background of my window. Here …

Member Avatar for kharri5
0
2K
Member Avatar for perlsu

Hi I want to replace "ta,at,an,bc" in main string {ta,at,an,bc,ta,at,an,bc,ta,at,an,bc,ef,ta,at,an,bc,ta,at,an,bc" with (ta at an bc)*.The result array should be "(ta at an bc)*,e,(ta at an bc)*". Can anyone give me some hint? Thanks in advance.

Member Avatar for NPH
0
169
Member Avatar for Rearden

First, I am running on linux and when i use the java command to run a program (i.e. java foo), it just sits after it finishes. how can I get it to fully close(specifically, the program I am posting at the end of this post) Second, is there an equivalent …

Member Avatar for Rearden
0
153
Member Avatar for nspireing

I am looking for a way to create a menu bar with java ive found a few really good programs that basicly wusiwug a menu bar for you but implementation and the trial version only that comes up and blocks your options is annoying. i even willing went to the …

Member Avatar for server_crash
0
165
Member Avatar for katew

i am having a problem to store the item and call from it.It is like you already created a text file,then you need to assess item from it.the item is in disorder. :sad:

Member Avatar for katew
0
311
Member Avatar for perlsu

Hi I got the error for possibleseq array . The error is java.lang.NullPointerException. As java doesn't support pointer, when want to use dynamic array, how I can use. The array length cannot know exactly . It depends on the possible subsequences. So, Do I count the possible sequences in advance …

Member Avatar for perlsu
0
131
Member Avatar for boyzz

how to store the data read from the txt file, and store it into different array? for example, name,age,address i know how to read them differently, but don know how to store it... :cry: FileReader fr = new FileReader("abc.txt"); input = new BufferedReader(fr); line = input.readLine(); while (line != null) …

Member Avatar for boyzz
0
327
Member Avatar for perlsu

Hi I need to find the repeated substring in string with repeated times = 2. Can anyone help me some hint? Thanks in advance. e.g, input string = abcdcbcbcada repeated string with repeated times 2 = bc

Member Avatar for chrisbliss18
0
104
Member Avatar for vjw757

im about to sign up for some college classes.. one is either going to be java or c++ for beginner. I dont know anything about these languages. Can you guys help me choose?

Member Avatar for chrisbliss18
0
439
Member Avatar for vps

hello everybody i am writing a jni for some api's in c++ in linux i sending vector as parameter and returning a vector through the same function. all i need to do is read a file put all the lines in vector. pass the vector object as parameter to function …

0
110
Member Avatar for tyalangan

Hello everyone. I'm just messing around with Java and trying to tone my skills as a programmer. I wanted to develop a type of program that calculates a monthly payment like a credit card. I want interest, APR, final payment all that to fit into the program. Also, would it …

Member Avatar for jwenting
0
97
Member Avatar for Manojsah

Respected Viewers, Hello, I am Manojsah a new java learner. Right now i am learning Data Structure using Java. I am facing lots of problem there in STACKS, LINK-LISTS, QUEUES and especially INFIX POSTFIX PREFIX. So, its my humble request to all please help me and guide me how to …

Member Avatar for Kate Albany
0
126
Member Avatar for glamo

i am trying to make a chat applet ,first problem is that it is working for only single system,i want to know how to connect it with network and second there is some problem in my code it os showing some error which i am unable to debug. so help …

Member Avatar for hitesh_black
0
100
Member Avatar for loser1

hi everyone i'm doing my final year project. most probably i'll be implementing them in java.i have norrowed my choices down to two possibilities......one is the implementation of an algorithm for a perfect hash function. the other project is an XML to relational database converting software product. i m interested …

Member Avatar for jwenting
0
75
Member Avatar for tristan17

hi people, I am a newbie to Java OOP,i cam across this example in a text book, but i just cldn't understand how the area is calculated. hope that someone can explain this simple problem to me the code is: public class TestPassingObject { // Main method public static void …

Member Avatar for tristan17
0
216
Member Avatar for Manojsah

Hi I am having problems in getting Composition ? pls tell about it. thanks Manoj

Member Avatar for Manojsah
0
178
Member Avatar for ! !

[url="http://www.petefreitag.com/item/455.cfm"][font=Century Gothic][color=darkslateblue]http://www.petefreitag.com/item/455.cfm[/color][/font][/url] [b][font=Century Gothic][color=darkslateblue]Web Development Cheat Sheets[/color][/font][/b] [list] [*][url="http://www.ilovejackdaniels.com/javascript/javascript-cheat-sheet/"][font=Century Gothic][color=darkslateblue]JavaScript[/color][/font][/url] [*][url="http://www.ilovejackdaniels.com/css/css-cheat-sheet/"][font=Century Gothic][color=darkslateblue]CSS[/color][/font][/url] [*][url="http://home.tampabay.rr.com/bmerkey/cheatsheet.htm"][font=Century Gothic][color=darkslateblue]CSS[/color][/font][/url] [*][url="http://www.ilovejackdaniels.com/resources/colour-chart/"][font=Century Gothic][color=darkslateblue]Hex Codes[/color][/font][/url] [*][url="http://www.psacake.com/web/dy.asp"][font=Century Gothic][color=darkslateblue]HTML[/color][/font][/url] [*][url="http://cdburnerxp.se/htmlcheatsheet.pdf"][font=Century Gothic][color=darkslateblue]XHTML[/color][/font][/url] [*][url="http://www.cookwood.com/html/extras/entities.html"][font=Century Gothic][color=darkslateblue]HTML Entities[/color][/font][/url] [/list] [b][font=Century Gothic][color=darkslateblue]Databases / SQL Cheat Sheets[/color][/font][/b] [list] [*][url="http://www.ilovejackdaniels.com/php/mysql-cheat-sheet/"][font=Century Gothic][color=darkslateblue]MySQL[/color][/font][/url] [*][url="http://nparikh.freeshell.org/unix/mysql.php"][font=Century Gothic][color=darkslateblue]MySQL[/color][/font][/url] [*][url="http://www.technochallenged.com/oracle-8-cheat-sheet.html"][font=Century Gothic][color=darkslateblue]Oracle[/color][/font][/url] [*][url="http://www.3gwt.net/demo/SQL_redux.html"][font=Century Gothic][color=darkslateblue]SQL[/color][/font][/url] [*][url="http://www.selectorweb.com/sql_sybase.html"][font=Century Gothic][color=darkslateblue]Sybase[/color][/font][/url] [/list] [b][font=Century Gothic][color=darkslateblue]Language Cheat Sheets[/color][/font][/b] [list] [*][url="http://www.petefreitag.com/cheatsheets/coldfusion/"][font=Century Gothic][color=darkslateblue]ColdFusion[/color][/font][/url][font=Century …

Member Avatar for server_crash
0
252
Member Avatar for vps

hello everybody I am writing a jni wrapper for c++ api's the c++ dll is on linux, so i get a .so shared library. I am working on windows, using vc++ 6.0. can i include the .so shared library in my workspace in vc++. when i do it i get …

Member Avatar for vps
0
105
Member Avatar for Rick James

Hello, I have been experiencing various problems on my computer, from random crashing/rebooting to unacceptable latency levels and program malfunctions. After several times trying to run HJT without it freezing up, I produced this logfile: Logfile of HijackThis v1.99.1 Scan saved at 5:31:58 PM, on 9/6/2005 Platform: Windows XP (WinNT …

Member Avatar for Rick James
0
300
Member Avatar for sarju

Dear friends, I am working on JNI (Java Native Interface) in my project as i have application and libraries in "c" programming language and i wish to make it accessible with java application. But i am facing some problem while writing java code as I am not expert with java …

0
74
Member Avatar for uncle quiley

I have been trying to fix this problem for months. Most advertisements on IE have "The Page Cannot Be Displayed" and I also get this problem when I try to open too many windows. For example, looking at NFL.com, after three page changes, sometimes I will not be able to …

Member Avatar for dlh6213
0
158
Member Avatar for Gort

Dear daniweb. Hello people. Am getting a lot of web pop ups. Downloaded and ran HijackThis. Have posted the log to learn what to do to slow/stop them. Have HijackThis in its own folder, system is updated, have anti-virus, Anti Spyware and backups running. Thank you... ============== Logfile of HijackThis …

Member Avatar for crunchie
0
398
Member Avatar for vps

hi everybody i am stuck. i am first time using beans. can anybody please tell me how a file can be copied from one machine to another machine usingg beans. i dont want to use servlets or JSP. regards vps

Member Avatar for jwenting
0
183
Member Avatar for aripaka

hi all, Can we create an exe for a Java application so that we can run it directly by executing the exe?

Member Avatar for freesoft_2000
0
176
Member Avatar for joshSCH

Hi, I've created a GUI program that has JButtons for like a menu. I am trying to get the action listener to do a whole other method. EXample: view.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { menu(); System.exit(0); } But, It will not go to the method. It displays an …

Member Avatar for server_crash
0
174
Member Avatar for audio mobile

Hi, I'm involved in audio mobile and in ringtone production. I produce mobile audio content in more than 30 ringtone formats, including SMAF, MFi (mld imode)... My content is created thinking about quality and little size. For example a file could be at 30Ko, with audio inside 'voices..) and with …

0
83
Member Avatar for indianscorpion2

hi my name is srikanth.can anyone briefly explain the concept of polymorphism to me in java context. thank you.

Member Avatar for NPH
0
121
Member Avatar for ayk-retail

Hey, I am learning Java this year and I am wondering if there is a way that I can integrate it to make it more powerful with my site with a forum by vBulletin. :?: My site is [URL=http://www.andpost.com]www.andpost.com.[/URL]

Member Avatar for Phaelax
0
262
Member Avatar for George2

Hello everyone, I have heard that the search engine of Yahoo is based on open source search technology, is that true? If it is true, what open source search technology is it using? Is Yahoo search engine itself open source? thanks in advance, George

Member Avatar for George2
0
284
Member Avatar for johnroach1985

Hi there.I have a quick question.I wrote this program to look like my own browser.It views the code of the url givven and it was suppose to be a browser too.The button explanations are as following: CODE=Shows the code of the given url VIEW=When you push it it was supposed …

Member Avatar for johnroach1985
0
113
Member Avatar for johnroach1985

Hi again.I was just wondering about different layouts I can use with swing and I just came accross a sample program at [url="http://java.sun.com/docs/books/tutorial/uiswing/layout/spring.html"]http://java.sun.com/docs/books/tutorial/uiswing/layout/spring.html[/url] anyways there was this example program that I just couldn't find the error.Anyhelp would be welcomed. The error it is giving is cannot find symbol variable springutilities …

Member Avatar for johnroach1985
1
420
Member Avatar for indianscorpion2

hi my name is srikanth.i am a eginer in java just learning the basics.i just have one question. why does everyone talk in a confusion manner regarding java like using terms such as j2ee,j2se,core java advanced java. whats the difference? there is no such confusion in C. and what is …

Member Avatar for veecarthic
0
144
Member Avatar for fuehrer

i'm new to java and this is my first post and a silly one too plzz help me out under what context should these both be used and how is it internally expressed or used by the compiler

Member Avatar for fuehrer
0
250
Member Avatar for MastaPho

plz tell me the type of program(application etc.) and the source, hopefully not difficult to understand from C:/Magix also can add //description

Member Avatar for JeffHeaton
0
214
Member Avatar for BenBen84

So, I just recently started using VC. Before I had been using DevC++, gvim, and NetBeans(for java). The reason I got into Visual C++ is because I have also begun learning to use DirectX. I used Visual C++ 6.0 starter edition for a couple months, and then just a few …

Member Avatar for BenBen84
0
334
Member Avatar for nishad

Hello everybody, actually i'm having problems with java loops as it is so complicated, dont know where to start. I have 2 questions if u could please answer it. 1. Write a program that generates and ouputs the table below: [B]10 20 30 .... 100 110 120 130 ....200 210 …

Member Avatar for NPH
0
116
Member Avatar for Soni_7

Hi All, I am new to java/jsp. I have made a jsp page. And i have included the java code in jsp itself using <%,%> tags. Now i want to move the code to java files keeping this as plain jsp. I think i need to use java beans.Can anyone …

Member Avatar for jwenting
0
170
Member Avatar for indianscorpion2

hi my name is srikanth.i am a beginner in java just learning the basics.i just have one question. why does everyone talk in a confusion manner regarding java like using terms such as j2ee,j2se,core java advanced java. whats the difference? there is no such confusion in C. and what is …

Member Avatar for catherine1001
0
383
Member Avatar for George2

Hello everyone, When debugging a C or C++ binary file, the file is different from the release version of binary file (debug version binary file is larger). My question is, if we want to debug a Java binary file (.class file), is the version of file (which we use to …

Member Avatar for George2
0
214
Member Avatar for Wolf_22

[CODE] <html> <head> <title></title> <script> if(navigator.userAgent.indexOf("Firefox") != -1) { window.location = "secondLayer/indexFF.htm"; } else if(navigator.userAgent.indexOf("MSIE") != -1) { window.location = "secondLayer/indexIE.htm"; } else if(navigator.userAgent.indexOf("Netscape") != -1) { window.location = "secondLayer/indexNS.htm"; } else { window.location = "secondLayer/indexX.htm"; } </script> </head> <body> <p>Please wait while the browser redirects you...</p> </body> </html> [/CODE] …

0
67
Member Avatar for freesoft_2000

Hi everyone, I have a rather silly question to ask so please bear with me. What is JDIC?? Is it part of J2SE?? If not will it be part of J2SE in the future?? What is the purpose of JDIC and what role it plays in software development?? Any help …

Member Avatar for jwenting
0
143
Member Avatar for freesoft_2000

Hi everyone, I need to ask a very generalised question about classpath. Now i have a java class file named JTim.class Now on the command line i run JTim like that [code] C:\j2sdk1.4.2\bin\java -cp .;C:\WINDOWS\Desktop\JProc\ JTim [/code] Now do you guys see the folder in which JTim is in which …

Member Avatar for Kate Albany
0
234
Member Avatar for vps

hi i am using a variable as double and passing pointer of it as parameter to an api this is all hapening in JNI. after i read the value i am getting an garbage value can anybody tel me y is it hapenning, using an float variable instead of double …

Member Avatar for jwenting
0
280
Member Avatar for tllcll

Hi, I would like to check with you how JSP codes residing in js function works. How can I get the 2nd select stmt executed based on the values retrieve from 1st select statement and the conditions pass in to this js function How can I get the select statement …

Member Avatar for tllcll
0
169
Member Avatar for djm123

Hopefully I can explain but when I go to a page & there are SUB PAGES, times when I click on the SUB page I get the CANNOT FIND PAGE or DNS type error..THIS IS DSL? I checked the settings & portion listed below appears OK.., ANY THOUGHTS or suggestions …

0
48
Member Avatar for piy_123

hello everyone, i want to make a project in java using which, we shall read all kinds os SIM cards and any other cards with Magnetic Strips.but i ma not getting any further info about it i.e how to start it plz help me on that or send me any …

Member Avatar for freesoft_2000
0
90
Member Avatar for spidey

hi, im just a newbie web developer. in the page im working on with, there's a textarea and a remove button. :-| the textarea displays the records selected from checkboxes. my problem is this... :sad: i have a remove button and i want it to function this way. wen clicked, …

Member Avatar for hooknc
0
127
Member Avatar for muktidaniweb
Member Avatar for muktidaniweb

Hello, I have a menu.jsp included in all the jsps. When I click a link in the menu it calls the respective page and the menu.jsp is also refreshed. I want to write a java script to highlight the menu link that was clicked. But since the menu jsp is …

Member Avatar for muktidaniweb
0
77
Member Avatar for faridah

please assist me in doing this assighnment. To design and implement an applet that graphically displays the processing of a selection sort. use bars of various height to represent the value being sorted. Display the set of bars after each swap. put a delay ib the processing of the sort …

Member Avatar for hooknc
0
130

The End.