32,199 Topics

Member Avatar for
Member Avatar for Rete

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

Member Avatar for jwenting
0
125
Member Avatar for vps

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

Member Avatar for manchandap
0
54
Member Avatar for emman

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 …

Member Avatar for emman
0
205
Member Avatar for freesoft_2000

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 …

Member Avatar for freesoft_2000
0
179
Member Avatar for Ghost

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 …

Member Avatar for freesoft_2000
0
276
Member Avatar for nabil1983

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. …

Member Avatar for NPH
0
98
Member Avatar for Rete

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 …

Member Avatar for jwenting
0
162
Member Avatar for gokul

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 …

Member Avatar for jwenting
0
75
Member Avatar for sam1

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: …

Member Avatar for sam1
0
147
Member Avatar for Rete

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, …

Member Avatar for jwenting
0
116
Member Avatar for Raven11

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 …

Member Avatar for Paul.Esson
0
126
Member Avatar for glamo

:?: can anyone tell me how to recover the data from hard disk after pressing shift+delete

Member Avatar for JeffHeaton
0
162
Member Avatar for Rete

Hi, I'm trying to make a very simple java tester program. So, my program asks the user for the name of a method, and then runs it (doing a bunch of tests in the process) Does anyone know the name of the method(s) that will allow me to do this? …

Member Avatar for freesoft_2000
0
151
Member Avatar for stevenr

does anyone know of a good java compiler that can make executable files. I want to be able to run my programs that are not applets without having to open my IDE everytime to execute them. I want to be able to asign them an icon and put them on …

Member Avatar for freesoft_2000
0
168
Member Avatar for loser1

hi everyone, i have a final year project for my BS computer science. can anyone suggest me a project on aspect oriented programming?? other suggestions are also welcome....all i need is a brief(or long) description of what to prepare. thanks

Member Avatar for freesoft_2000
0
226
Member Avatar for server_crash

Ok, what the heck causes these stupid exceptions. I can't find hardly any documentation on it. I've tried running my mortgage calculator on a different computer and it won't show up because a unsupportedflavorexception. I know it's something about the major or minor version, but what do you do about …

Member Avatar for jwenting
0
248
Member Avatar for Rete

Sorry for troubling everyone with my questions these past few days, but I keep bumping into all these weird little problems. The code below, is a sort of minor reflective program that runs methods after reading classes. [CODE]try { //getclass is a class named "Example" [B]Object instance = getclass.newInstance();[/B] //Is …

Member Avatar for Phaelax
0
97
Member Avatar for joshSCH

ok.. now that I know about the JOptionPane, I have one more question. How can you create a real executable program from the java code that u write. IT can be executed through JCreator or another java creator, but how can you make it so that its an actual java …

Member Avatar for stevenr
0
169
Member Avatar for jwenting

yes, there's an area of Java I'm almost a complete novice in (so far, I'm going full steam ahead :cheesy: ). I've the following code to filter out non-numeric input from a JTextField (which is meant to contain a timeout interval in minutes, that's why). [code] private void dumpNonNumericInput(KeyEvent e) …

Member Avatar for server_crash
0
340
Member Avatar for server_crash

I know how to run tomcat on MY computer, I just click the start button. My question is, how can I upload tomcat to a webserver and make it run forever(or at least until I click stop).

Member Avatar for server_crash
0
223
Member Avatar for Rete

I've been making a reflective program, which examines class files, and then creates an XML file that holds all it's values. But, I've been trying to now parse these XML files I've made, and I've been trying to do it using DOM. Unfortuanetly I have no clue as to how …

Member Avatar for jwenting
0
183
Member Avatar for Max_05

To all the GUI Masters, I have two questions, 1) How do I make my frame start/appear in the middle of the screen ? 2) How do I disable the control/menu box i.e the maximize,minimize,close options on the top left corner of the frame ? Wating for a favorable Reply. …

Member Avatar for server_crash
0
153
Member Avatar for server_crash

Please take a look at this link, and let me know what you think of it. If you have any problems with it, I really want to hear about them: [url]http://wizardsolutionsusa.com/MortgageApplet/MortgageApplet.html[/url]

Member Avatar for server_crash
0
143
Member Avatar for Max_05

Hi, Can any one tell me how to use a Java Object in a JSP file i.e I have written a connection class and want to instantiate an object of this class so that the JSP can connect to the database. Do I have to import it or include it …

Member Avatar for server_crash
0
133
Member Avatar for hkhan45

Hi, I have connected to a MS Access database but when I try to insert data through the java interface, it gives an error which is [MICROSOFT][ODBC MICROSOFT ACCESS DRIVER] TOO FEW PARAMETERS.EXPECTED 2. I dont know y its giving me this error. All the parameters r correct. Can any …

Member Avatar for Catweazle
0
435
Member Avatar for gokul

Hai all, I am heading to develop the Chatting Application by using SIP + JMF I am having few doubts in the Java Environment.. 1. How can make .exe file in Java..? ( I need how to create Installable application in Java) 2. How can i import JMF API Specifications …

Member Avatar for jwenting
0
149
Member Avatar for freesoft_2000

Hi everyone, I have two rather silly questions about URLs but please bear with me for a while. Usually when you use the URLConnection class to read from a website you don't get prompted for authentication but if you are trying to post something to that website you will usually …

Member Avatar for Sauce
0
292
Member Avatar for xesar

hi martin here i took programming classes in college but i only remember java best. i found this site from google alerts, its so huge its confused me already. i tried to post on one of the mbs but it wont let me only here can i post... it say …

Member Avatar for talkfreelance
0
85
Member Avatar for gaston

Hello, I have a javascript code (a part of it is in php) that populates a pull-down menu. It works perfectly well with Explorer, Netscape and Firefox under Windows. But impossible to make it work with Explorer or Safari under Mac!!! Is javascript different between windows and mac? Here's the …

Member Avatar for Dani
0
162
Member Avatar for lwings

I'm new to Java and have just learnt a little on Arrays. However I'm not very sure how I should apply them. I have a main method which has a switch case. If the user chooses 1, it will prompt the user to enter the daily expenses for a week. …

Member Avatar for JeffHeaton
0
174

The End.