36,051 Topics
![]() | |
Hi , I am a new to java and am stuck with coupe of lines i wonder if any of you ppl could help me i wud be gr8full... URL localURL = new URL("http://www.xyz.com"); URLConnection localURLConnection = localURL.openConnection(); String str2 = localURLConnection.getHeaderField("string1"); What wud these lines actually do or to … | |
[B]This assignment requires that I allow for user input in a GUI for principal, interest rate, and term in years. I also have to provide a pulldown with 3 preset rates that will also load a cooresponding term length. All of that plus an amoritization table as well. I have … | |
I have a final exam on tuesday and i cant solve this problem. can you help me please? [url]http://www.cs.bilkent.edu.tr/~david/cs101/assignments/lab09/05cs101lab9extras.htm[/url] | |
I am trying to take continuous pictures of small window of my screen and create a continuos motion picture sort of thing and display it on the java panel . For this i am taking snapshots of the screen window by using "Robot" class . but the panel is only … | |
hello...i am confused,,it is possible that a linkedstack will be full??i only implement a method that isEmpty(),,and it reads the method if the stack is empty..but if the stack is full, it do not even read the method i made....would someone help me?/,,,thank you ahead... | |
ok, I'm taking my first Java class and in my first week. I've searched but this is different from .Net so much that I have a headache just getting eclipse set up and how to navigate the environment. That said, I have a program that would take me 5 minutes … | |
hOw can i implement an itemListener in a gRidBaglayout??? tnX 4 d help... hOpe u help me... | |
i have to submit project in java....next month..... please help me..... | |
help would be appriacted - i usually do that on a ENITRLY different file but i have no clue how to describe the INT's for a different file - note if you didnt read its supposed to be for teleportPet_process() which if you want to look at that code its … | |
We have 3 classes.In first class,we have a content pane and we have created object of second class on it.In second class,we have added a few textfields.We want that all these textfields of second class should be visible in third class.Third class also has its own GUI components(textfields). But the … | |
i have this code in java... my first combobox when u choose letter a will be correct... but how will apply in the other combobox that when u choose it... the letter b will be the correct answer?? plzz help me... import javax.swing.*; import java.awt.*; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; public … | |
how do you make a jframe transparent?...i need to add a png or gif image in the frame..so when i run the program it will only show the image..and the image would float in the desktop.. i also need to add a few components like JButton.. i want the frame … | |
Hi folks, I want to access Oracle 9i table "emp" in Java... I do not know what driver to use .. The name of the Oracle database under which "emp" falls is "Oracledb" I do not know what the connection string is? Pls help... | |
Can someone explain to me what this is? I have been asked to code a tic-tac-toe board using an array which I have done, but the brief specifies using standard input, and I have no idea what that is, but I'm guessing does not include changing the values of the … | |
i have this code in java swing... im getting an headaChe thinking what to do... how do i add events in my ComboBox?? wHat i want is that when i sElect a comBoBox iT will tell wether the one you selected is correct or wrong... then the comBoBox will be … | |
can anyone clarify to me what this means? it's kind of comfusing..:) [B]linked stack embedded in a sequencial vector[/B] | |
hii every body how are you? in fact, i am a beginner in java programming and i do my best to improve myself in this language so i tried to solve many exercises to confirm that i have no difficulty with this language. I solved this question but i had … | |
Hi everybody, I have a Jtable and i am going to add an empty row after pressing a button named insert. Whenever i put these following code in my class ,it works properly. I should add after these 2 lines i create a JScrollPane and add it to the getContentPane(). … | |
hello. readers.... i am computer student last year... i want help from you...that i need some projecy defination which is ni java...please help ... | |
Guys I am positively freaking out in excitement. Guess what Sun Microsystems is bringing its top innovators to India on February 18-20, 2009 at HICC Hyderabad at a worldwide developer conference organized by Sun Microsystems, named “Sun Tech Days”. And that includes James Gosling, the father of JAVA. | |
I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk. Now I was wondering on how to upload … | |
I have attached the file with the sorts. I have to show 2 sorts insertion, and selection sorts demonstration in bars. I should show the position of the bars after each run. How do i go on about doing that? | |
So i've downloaded netbeans, and had a play around. But I'm thinking is Java the wrong language to design a duplicate file scanner. The program if not obvious should hopefully atleast identify any files that exist on a computer more than once (copies). Im also going to try and make … | |
K, well, I'm kind of screwed right now, I am supposed to make a game by using java, and this is all like minor stuff. The code so far, and I have little idea of what I'm doing. I want to make it so that when you click in a … | |
Hi. I'm new to Bluetooth programming. I really just want to get my phone talking to my PC via bluetooth, using some form of Java. Does anyone have a very simple "hello world" style sample that I could use? Many thanks in advance, Ian | |
I got this error: javac AudioConverter.java .\Converter1.java:55: cannot access jlc bad class file: .\jlc.java file does not contain class jlc Please remove or make sure it appears in the correct subdirectory of the classpa th. jlc j=new jlc(); jlc is one class which I have to call in another class … | |
Hi!! I want to insert byte array in database schema as follows: table message { msgid number(5), messagevalue BLOB }; I have done this in following way But I am getting NULL pointer exception. //byte[] msgval .. contains byte values like 49 50 53 etc. Blob msg; msg.setBytes(1,msgval); // for … | |
Hey all, first post, hope I'm not doing anything wrong I'm taking a Java module next term at university, and in preparation, they want us to code two things. They reckon there's a help file up on their intranet but the intranet is very unstable, and doesn't seem to handle … | |
i'm making a simple program that will accept 7 input using JOptionPane i'm found out that JOptionPane has been used 7 times i want to transform in function i make it but i encounter an error. [code] import javax.swing.JOptionPane; public class SevenWord2A{ public static void main() throws NoSuchMethodError { String … | |
Hi.. can anyone giv me a program to send mail automatically if it satisfies some condition.. such as i want to send mail before three days of the particular date..(say 5/2/09 i want to send mail on 3/2/09).. Thanks in advance.. | |
how can i loop a whole code and make it repeat until the user wants to stop. | |
how can i set a boolean to put in an if else statement with the following code if((Math.abs(x)==1)&&(Math.abs(ex)==1)&&(Math.abs(exx)==2))//test for straight System.out.print("Straight"); if((cardSuit==0)&&(cardSuit2==0)&&(cardSuit3==0))//test for flush System.out.print(" Flush "); i want to set a boolean straight and boolean flush to put in another if else statement like so if(straight && flush) System.out.println("Good … | |
Hey, I am tutoring this kid in java and he has to use TurtleGraphics and BreezySwing, neither of which I have used in a while. I am having trouble figuring out some of his problems. I will post both his code and how I altered his code. I am wondering … | |
Hey, I need to download the TurtleGraphics package but am having trouble findng a place to dwnload it from, I tried a couple of places but they did not work. Do you know of a good website to get it off of? Thanks! | |
Hey guys, I am trying to get some code to interpret a parameter determined by a JAR file. IE. [ICODE]C:\user\myProgram.jar 500[/ICODE] I want to know how to transfer 500 over to the program. I googled it, and most of the stuff that came up was extremely difficult to understand. Thanks … | |
I am trying to learn some oop in java. What I am trying to do is building a binary tree to convert an ekspresion in reverse police notation to infix notation. The problem is that I have three classes, one abstract called [b]ArithmeticNode[/b] which represents a general node, a class … | |
hey again i've fixed my code a little and need a little help. I've got the flush and one pair determinations to work but the three of a kind, straight, straight flush and royal straight flush are giving me a little trouble. If anyone has any suggestions, i would really … | |
Hi there, I know I should not be doing this. But I really some readymade java codes on currency converter working on eclipse program. It is a part of my assignment. But my java really cannot make it, so is there any kind soul to help me? Please. Anyway, I … | |
We can convert any kind of numbers to binary string. For example 20501487 can be converted into binary String format as 1001110001101001111101111. However I cannot reconvert this binary String into any number format, even long or float numbers due to NumberFormatException, where the numbers are very big to convert. I … | |
hello how r u doing .. i have been looking on the internet but i cant find much info .. does anyone know where i can find information about making a database in java? (i expect it is has information about arrays, arraylist, iterators and inheritance) ... i want to … | |
public class Date { private int _day; private int _month; private int _year; boolean checkDate=true; public Date(int day,int month,int year) { if ((day>31)||(day<1)) { System.out.println("You entered a wrong day"); checkDate=false;} else if ((month>12)||(month<1)) { system.out.println("You entered a wrong month"); checkDate=false;} if (checkDate=true) { _day=day; _month=month; _year=year; } } public Date() … | |
hey again! im wondering if there is a way to make a 2d game in java "FREE" Is there a program to do that? and srry for double posting :-) im just trying to figure out what im making... | |
[B]helllllllo friends please can u help me???? i have project about creating currency converter using jGRASP i made the enterface using jframebuilder but i dont know how to complete it...i really need ur help friends :'( [/B] | |
my view about this topic inheritance mean everything from parent class comes down in child class that is instance data,method,final data except thing declared private while in case of interface only final data and signature comes down from parent to child class that is instance data,method, doesnt comes down by … | |
In following code ,I have initialized column to empty blob. But when I try to retrieve the blob,i get an exception.Can anybody help me out?? _____________________________________________________ [code] import java.sql.*; class test { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection conn= DriverManager.getConnection ("jdbc:odbc:dixit","scott","tiger"); PreparedStatement st=conn.prepareStatement("insert into survey values … | |
before anything else, i have a question. How can you have a multiple stack in one vector using node/linked list? i don't get the concept of linked list yet. Anyways, this is my problem: [B]Create a Java class definition of a multiple-stack in one dimensional vector. Implement the basic operations … | |
I have byte array that contains (49 50 58 57 57). I'm storing this byte array in blob by using setBytes() method of preparedStatement. But in database,it is stored in different manner i.e, 31323A3939. When I try to retrieve value of this blob using getBytes() method, I'm getting output as … | |
Hi, I am currently doing a mini project using Eclipse with Java language.. i needed to submit some values into the DB, but i am having some trouble to do so... i would like to find out if i need to create variables for all the values i want to … | |
Good morning everyone. I am having trouble connecting my MySQL database to a JTable in Eclipse. I keep on getting an exception and receiving this message "Unable to find and load database driver". Here is a sample of database code for the program: [CODE]class QueryTableModel extends AbstractTableModel { Vector cache; … | |
Java coding to find the open ports in the system and also which ip address and host name is using the ports. Is that possible with the java coding? |
The End.