36,051 Topics
![]() | |
currently using JBuilder Foundations task is to display a .gif file in JApplet from my hardrive the URL is C:\MAGIX Should the image file be located elsewhere in a specific place? import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Applet1 extends JApplet { public void init(){ Container contentPane=getContentPane(); ImageIcon icon=new … | |
greetings, I would like to build a subset from a Hashtable. The subset is a Hashtable too. How could I do it? Is there any API out there? Any advise or guideline are appreciated, thank you! :rolleyes: | |
Hi everyone, I have a rather silly question but what is the maximum amount of characters the String object can hold? This is what i mean [code] String str1 = some buffer that contains about 5 million characters as a string [/code] What i am afraid is that if the … | |
hi, i m making a web crawler in java with oracle9i as back end.for this i need to store the web pages crawled by the crawler as compressed pages in the database.similarly the pages need to be uncompressed for viewing at a later time.but i hv no idea how to … | |
Can anyone help me in this matter i am looking for a code to connect my MS SQL so i need the APPROPRIATE SQL SERVER DATABASE CONNECTOR . i have a download which only works with MySQL ,and i do need help with the MS SQL one Thank you in … | |
Hi Is ther any open source code for Spell check in java script or java so we can integrate with html or jsp pages for spell check of TextArea on the form Thanks & Regards Prasanna | |
My friend is running an Inspiron 1150 w/ SP2 with a lotta lotta lag. I read the thread about this that's linked to from the XP forum here... no dice. Also ran through the advice on cleaning a computer here... just hoping someone could spare a minute to look at … | |
can anyone pls help me to complete this questions?? i'm new in programming , n i'm not very sure how to even start to do this programs....so help needed urgently..preferably the program can be done in Java or C ++... thank u No1. Develop a program to simulate a computer … | |
Hi! I'm a student and I have a project in Java and its title is Virtual Keyboard....can you please help me on how to create that virtual keyboard pls...and also can you please leave your e-mail add so that i can chat with you....thanks a lot! :lol: | |
hi i am new to the concept of object oriented programming.i would say that i have command over the C language.i am now a beginner in java. i am not able to understand all the stuff like objects,public,classes,encapsulation.................and so on. are there any easy tutorials for beginners like me on … | |
For example Class A does not have a default constructor. Class B extends A Any reason/benefits to do this? [code] public class B extends A { public B() { super(); } } [/code] | |
Can I wrote an object to files and later on retrieves it with its integrety intact? Is there a ready made function or do I have to write one? I am new to Java, is this what one calls serialization? | |
Just started a Java class and the first HW assingment was issued. I have read the chapter a million times and cant figure out what the heck am I doing wrong. The assingment is supposed change Celcius temperature to Fahrenheit using a worker class. import javax.swing.*; public class ConvertTemperature { … | |
hi I need a java program that will use parallel array to hold an account number, account holders name, withraw, deposit, intial balance, balance and overdraft fee. It must also print out the account number, account holders name and balance. thanks | |
are the codes correct? because im having some errors in getting the output. tnx create a program that will generate the following display: use method declaration without return and with argument list. Input value for the height of triangle. 5 54 543 5432 54321 5432 54 5 import java.io.*; public … | |
What are the benefits\drawbacks about the design below? Here is a simple example of the possible class design. What are the benefits of doing it this way? vs. just dropping the interface class all together. ================================= Public interface Car { public String getColor(); public void setColor(); } ================================== public class … | |
Hi everyone, I am currently trying to serialize parts of a jtextpane using the java ObjectOutputStream to write it to disk and when i am reading the object back i am using the java ObjectInputStream. When i read the api about the streams here is what they say [QUOTE] Warning: … | |
hello everybody I want to overwrite the names which are already existing and to append the new names in a file. can anybody plz help out. if i use the FileWriter(Fname,boolean true), it appends the even the ones which are existing, i want to append the new ones only. regards … | |
I am taking Java next year but am wondering whether C++ is more difficult than Java? | |
Hi All, I've just started using java and created a "HelloDate" program which works 100%. After that I created a "HelloWorld" program which didn't work because I had made a mistake in the code. I then rectified the mistake, deleted the class and then recompiled the "HelloWorld" program and it … | |
hi im constructing a rectangle in main method, i wrote: [CODE] rectangle t = new rectangle();[/CODE] but i get message on compilation: [CODE] cannot find symbol symbol:constructor retcangle() location:class rectanlge() rectangle t = new rectangle(); ^[/CODE] what is wrong? | |
I'm hoping some of you beautifully talented webdesigners can help me with what I'm assuming is a setting in IE. The problem I'm having is that everytime I click on a link to a webpage that contains any java it takes for ever for the page to appear. Sometime IE … | |
hi all im writing a function for rectangle where it takes a rectangle and return a rectangle (same top-left vertex) but reduces the width and height by a,b respectively..... i have done this [CODE]public int shrink(int a, int b) { return (this.width -= a)&&(this.height -= b); } [/CODE] but i … | |
Please help me. I'm trying to download java and I keep getting a message that says "Error 1311 source file not found. C:\Documents and Settings\owner\local settings\content. IE5\kxabstqz\ja150000[1].cab". I have no clue what it means and when I called gateway they told me that the instructions to fix it would be … | |
I usually just use Opera with java on My Mandriva LE 2005, but thought I'd try to get Firefox to work with Java, so i followed the directions by placing the link to libjavaplugin_oji.so in the Firefox pluggins folder. yeah it works great for a second or 2 & then … | |
hi every one i was just wondering does Code: [CODE]int left = x > rect.x ? x : rect.x;[/CODE] means the same as Code: [CODE] if (int left = x && left < rect.x) { return x; } else return rect.x;[/CODE] or something else? thanx | |
Hello, DaniWeb, I'm trying to get better at troubleshooting, so I'd like to see what process other people go through. I have three communication devices that aren't working in my program... a connection to a MySQL database, a keylistener, and a treat feeder. On the other hand, some other communication … | |
Hi I have created an array of random numbers but I need to stop duplicate numbers being added to the array so I have added the boolean 'fresh'. however, I somehow need to tell my 'fresh' to only check the number of elements added to the array so far and … | |
Help, my computer seems to be running slower every day. it has trouble loading pages and bringing up something once i have clicked on it. Its not normally this slow with DSL. Logfile of HijackThis v1.99.0 Scan saved at 9:20:03 PM, on 3/1/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: … | |
Hi everyone, Please bear with me as i have a rather silly question. Lets say i have an object and i want to convert that object say a document or any other object to an array of bytes. Does anyone know how to do this? Any help is greatly appreciated … | |
I would appreciate any help (I am very much a beginner in Java) what is this error message and also do I use init() or main() for applet? Thank you so much //JavaAirlinesApplet.java ERROR MESSAGE: /*JavaAirlinesApplet.java:8: JavaAirlinesApplet is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public … | |
i have the following code that reads user input characters and displays the string entered in reverse order. import java.io.*; /** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2005</p> * <p>Company: </p> * @author not attributable * @version 1.0 */ public class ReverseString { public String reverse(String … | |
Refer to my previous thread for the code that I already have. I have reached dire straits and I can't figure out what to do. I have to get this running for an entry level position that I applied for. | |
Hi everyone, I am trying to to read and write large files about 600M. The thing is when i use the normal FileOutputStream methods an exception gets thrown saying [code] java.lang.OutofMemory [/code] This is how i am trying to read the file [code] FileOutputStream out = new FileOutputStream("C:/my_life_story.zip"); InputStream in … | |
Hi I am having a bit of trouble with a do while loop. I either can't get it to stop, or it doesn't do exactly as I need it to. I am using a array called nums to insert random numbers into a binary search tree. Once the tree has … | |
I am trying to write a game that will read check boxs to find the difficulty level that the user wants, then using the parameters behind each level create an array of a certain length using a certain range of numbers. For some reason it seems to ignore my parameters … | |
Hi, I was hoping if anyone could help me really quickly. A section of my program needs to discern between java primitives. I've had to make regular expressions which look for the different characteristics between each primitive, but I don't know what some of them are. Below are all the … | |
Hi I have a JTextpane where i will be adding instructions. I know this will not be large enough, but there is no further space on my interface, so I need to add either a scrollbar or scrollpane. I have tried a few attempts at this but cannot get either … | |
Does anyone know how to change the colour of text in Java? I'm getting a lot of input from my user in a program I'm writing, and it gets kinda difficult to follow with it all being one colour. Any help would be greatly appreciated =D | |
hi there can anybody tell i need to use relative path to file using config file. and can i put the input files in a loop so that files with .out extension in the current dir can be processed. regards vps | |
While running the older version of jdk1.3.0 my bdk1.1 worked fine. Recently i installed the latest version of the j2sdk1.4 and the problem surfaced. Whenever i run the run.bat file, lot of exceptions are thrown at the command prompt. And some of the inbuilt beans won't be shown. As for … | |
Hi everyone, I am trying to write some bits to the parallel port using the java communications port and all is okay except that i need some clarification on something. The parallel port is connected to circuit board that needs nine inputs(or better known as nine bits) Now this is … | |
Hi Everyone, I'm making a Java chat application, but it freezes whenever I click "Connect." My code is attached below. Thanks. [CODE] import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; public class CinnaChat extends JFrame { JLabel lblServerIP = new JLabel("Server IP:"); JTextField serverIP = new … | |
Does neone know the code instruction to store an array of CD objects. Each entry in the array has to be a single object describing a CD. i.e: Artist Name , Album Name, Number of tracks i've written the program out but i cannot seem to get the above right. … | |
Hi again, I know I've asked a lot of questions, and you guys have been a really big help, so sorry for all the trouble. XD But, I've got another problem. :X I've been making a reflective program, and it's more or less working right now except of couple of … | |
Hi all, This is my first post on this forum.. i need some help.. first of all, i downloaded 90 days trail version of Sun Studio 7 enterprise from the net... when i try to install Sun Studio, it asks Domain Name .. but mine is personal computer.. i don't … | |
hi everyone i am doing this course work, where i have two classes. one is the point2d that models a two-dimensional point. The second part, the rectangle class, require the use of the Point2D class developed in the first part of the coursework. i am stuck in following two functions: … | |
Hi, sorry again for all the trouble, but I'm trying to get a reflective program to work. It takes a method from a user, and then runs it. My program works except it only works for strings. If they arguments needed for a method require ints or floats or whatnot, … | |
Hello, I'm working on a authentication project which I don't want to run through a compiled .exe (to easy to hex edit or crack). So I was thinking about having the user enter the password in a compiled MFC App. When user clicks, "Authenticate" the entered information will be sent … |
The End.