35,618 Topics
![]() | |
Hey, So, I have a class that has a bunch of info, the usual set/get methods. But my question is, I'm adding them all together in another method, and I don't know how you get it all in a nice table like format, with all the columns/rows being equal and … | |
I wrote a small c# .NET application that is basically a controller for a Java application. My company has been using a .bat file to launch it, but we need an .exe so our web panel can detect when it is online/offline/etc. When my .NET application starts, it starts the … | |
How can I get a single line of text of a textarea? So like if I had "Hello Mellow Yellow" Then line 1 would be Hello and line 2 would be Mellow ect. How can I get that? Something like: [CODE] JTextArea area = new JTextArea(); System.out.print(area.getLineOfText());[/CODE] Thanks. | |
Hi, I’m trying to code a small program which allows us to select multiple files from a folder and save the content of all files previously selected in one file. The code is very well without GUI (in console). But now I want to do the same with a GUI. … | |
What do these errors mean? im new to java.. Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl<Container.java:1041> at java.awt.Container.add<Container.java:365> at OptionWindow.<init><OptionWindow.java:63> at OptionWindow.main<OptionWindow.java:182> please help | |
I am building a text only hangman game and I have gotten it to the final stages as far as I know I only have one problem I can't figure out why my char comparison values are always returning false even though I know that the characters are the same. … | |
Hi, I have two XML files namely (1)'message_gen.xml' and (2)'message_user.xml'. The (2) file is correct and the (2) is generated by an application. The (2) file should be same as that of the (1) file i.e. it should have the same elements, the same element content. I am currently using … | |
Hi, Hope you can help, a client of mine has a site with dynamically generated URL's, I want to make the URL's SEO friendly, clean them and rewrite them as new keyword rich URL's and then redirect the old URL to the new. I am trying to carry out some … | |
The java program i have to come out with for a mini project is a interest calculator, using jcreator. Where you have to calculate the following 1. interest payable 2. principle required to earn $x of interest 3. calculate time required to earn $x of interest. The program must cycle … | |
Hi, i'm trying to create a "Save as" frame with my small program. It must open a Save As windows where i could choose the name of the file (txt) that i want to save. Is there any method to do this? i didn't find with google. Thanx | |
Define a method hypotenuse that calculates the length of the hypotenuse of a right triangle when the lengths of the other two sides are given. (Use the sample data in the table below) The method should take two arguments of type double and return the hypotenuse as a double. Incorporate … | |
I am currently working on a project (contact IS) built using openlaszlo and I am using mysql as database... I use JSP as the servlet that will handle the connection to the database and present the information to openlaszlo as XML, however when I try to add a new contact … | |
create a Report of Customers and my database are MicroSoft Access 2000 Coding are Following Plz somebody hlp me in my project [code=java]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class FrmCustomerReport extends JDialog{ public static JTable JTExpTable; //Start create variables JButton JBSearch = new JButton("Print",new ImageIcon("images/print.png")); JLabel JLPic1 = new … | |
How do I make Two frames? when frame1 is open the frame2 is hide,and when frame2 is open the frame1 is hide? | |
Dear all, Scope resoultion operator is used to call the properties or methods of the class. Properties : =========== Variables Constants Why scope resoultion operator cannot be used for non-static variables . Can any one help me out . Thank you, With Regards, Prem | |
Implement the following integer methods: a.Method celsius returns the Celsius equivalent of a Fahrenheit temperature, using the calculation b. C = 5.0 / 9.0 * ( F - 32 ); c. Method fahrenheit returns the Fahrenheit equivalent of a Celsius temperature, using the calculation d. F = 9.0 / 5.0 … | |
I got this program that supposed to display a diamond but I only got the top part of diamond to work. As for bottom part I am not sure what calculation I could use. Any hint would be appreciated! Thanks This is the part: [CODE]//Bottom Part for ( row = … | |
Hi can someone plese clarify this: Should all the Persistant Message be delivered to all the Subscribers in a Topic? If yes, What happens if a Non-Durable Subscriber is down? | |
Hi I need to send email thru my jsp with authentication.but i am getting an error as: Could not connect to SMTP host: localhost, port: 587; Pls if anybody know the solution,guide me | |
using textpad w/ jdk When trying to use single print line: System.out.println("\n" + var1,"\n" + var2); I get error: symbol : method println(java.lang.String,java.lang.String) location: class java.io.PrintStream System.out.println("\n" + var1,"\n" + var2); I understand that \n is new line, and My instructor told me to just use + "Integer name" for … | |
How would I find the lowest common multiple using basic Java, like loops, etc. | |
I'm a student. I am trying to make simple project for online borrowing book system. Basically the flow is from Borrow.jsp (The user select which data their want to update) The UpdateBorrowBinder.java will grab the object and pass to sql then bring the result to appear in UpdateBorrow.jsp But the … | |
Hi, I recently installed jcreator and jdk 1.6 i was testing out the program to see if it worked correctly I used a really simple program(below) but whenever I type a second integer, the error "Make sure you enter an integer" appears, I've tried a few simple programs to the … | |
I'm building a program allows me to answer questions with radio buttons, and then save a list of the questions and the selected answers to a .txt file which I can convert to a .pdf from Word or some other program. Im using a PrintWriter to write the file, and … | |
[CODE] vowels = wordcount.vowelNum(); //counts the vowels consonants = wordcount.consNum(); //counts the consonants, this is not working properly. [/CODE] the consNum() method: [CODE] int length = word.length(); for(int i = 0; i < length; i++){ if(word.charAt(i) == 'a' || word.charAt(i) == 'u'|| word.charAt(i) == 'i'|| word.charAt(i) == 'e'|| word.charAt(i) == … | |
Hello I make java application that read String from text field and convert it to another String it may consider type of encoding . but i want process character by character when user still typing on the the text field. i.e. a-->s ah-->sd ahm-->sdf ahme-->sdfg ahmed-->sdfgh any one can help. … | |
Hi, I am trying to grab frames from a video using JMF. Here is the code i use for getting the frames. Unfortunately, getControl returns null so i get nullpointerexception. [CODE]FrameGrabbingControl frameGrabber = (FrameGrabbingControl)player.getControl("javax.media.control.FrameGrabbingControl"); Buffer buf = frameGrabber.grabFrame();[/CODE] 1) I can open and view the video. So why am i … | |
Hello. I'm just beginning to learn Java and right now I'm working on simple text-based Hangman. But I am having problem replacing unknown letter with correctly guessed letter. (i.e "_ _ _ _" unknown word is roll. User inputs "l", "_ _ _ _" this becomes "_ _ l l") … | |
Hello friends [CODE]String sql = "SELECT * FROM work.cs_book WHERE bookname = ? AND author = ? AND category = ?";[/CODE] I have writtern above query and where i can search for a book based on bookname author and category. I am using preparedStatements to execute query. However something is … | |
ear All, I have java function as below. If you notice this class calls another class that is SMSClient and in that class I have other classes called too. So then I write a php as below and is just call this function and return the results. I want to … |
The End.