35,618 Topics
![]() | |
New to daniweb. How do I find a card game written in java @ daniweb? Thanks in advance | |
hi..... im trying to run c,c++ programs in linux using java code..... i have compiled the program and the .out file is also created.... im using the following code... [code] ProcessBuilder pb = new ProcessBuilder("gnome-terminal","-e",home+"/MyProjectFiles/"+filename+".out"); Process p = pb.start(); [/code] the problem is the terminal starts and closes after execution.... … | |
I'm reading in a file and I need to skip any lines of length zero or starting with '#'. But I keep getting null pointer exceptions later in the code because it can never tokenize. What am I doing wrong? Thanks in advance. Below is the relevant method: [code] static … | |
[TEX]I[B] am having a problem with my code it seems to endlessly loop with user input of two temps never ending. As I am a newbie at this could someone take a look at what I've got so far and fix what's wrong here are my two classes This is … | |
The following method should swap the high nibble in a byte with the low nibble in a byte. The following code dosn't work if the lower nibble is above 0111 if it is it returns a negative number... Does anyone know what im doing wrong ? [CODE] public static void … | |
Hi I am using mozilla to test my application. I tested two subscription of my application in two different mozilla browsers simultaneously. Here I Found details are swapped. Because mozilla using the same Session ID for the two browser. This is a flaw in mozilla or whether this issue is … | |
I want to develop an application. It should send my data base data to my mobile cell how can i do this. please help me -------i need the books and i need the location where i can get this application related info Thank you | |
hello guys,i'm new to this forum.i am developing a website for my final year project.it's a dummy project.i need a free payment gateway or something like that.So that the user can pay via credit card.it is purely an academic project,so i don't want to spend money. i need your suggestion.how … | |
Hey everyone, I am new to Java and I use NetBeans to do programs. On my latest project I am attempting to code a program to read a input text file of format. ie. Attend class: 0 120 -one time event Push snooze on alarm: 0 1 3 5 - … | |
Dear Friends., Am new to the java world.. I am creating a application where i have to generate a html page from a Dynamic jsp page.. I have tried my best and i was able to create a static html page from a JSP.. But how to fill the data … | |
[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class LoginScreen extends JFrame { JLabel userId; JTextField userIdT; JButton userIdHelp; WelcomeLogin welcome; public LoginScreen() { super("User Login Screen"); Container surface = getContentPane(); setSize(1024,750); setDefaultCloseOperation(EXIT_ON_CLOSE); setLocationRelativeTo(null); surface.setLayout(null); welcome = new WelcomeLogin(); surface.add(welcome); userId = new JLabel("User ID :",JLabel.LEFT); userId.setBounds(20,50,80,20); surface.add(userId); userIdT … | |
hiiiiii friends actually i m implementing binary tree in java,i have done this by passing node,but i want to do same usin array method,please help me .i have to do this within two days | |
Hi everyone, I need your help on deciding what type of mobile game should I create for my project, I will also need help on how to create a mobile game from scratch if anyone has good source such as website or books please let me know I will really … | |
Hey, Does anyone know how I can draw lines between the textfields? If I ask for x and y then this is relative to the component itself.. Also now I have made a separate class but this means that when I draw the lines the textfields disappear they cannot exist … | |
Hello, I have several Objects in switch I need to set the text that should be in a string, ill show an example of how i have done it. It´s all made in a JPanel using NetBeans. private void comboBoxMajorChoosingActionPerformed(java.awt.event.ActionEvent evt) { comboBoxMinorChoosing1.addItem("English"); comboBoxMinorChoosing1String = comboBoxMinorChoosing1.getSelectedItem().toString(); } private void comboBoxMinorChoosing1ActionPerformed(java.awt.event.ActionEvent … | |
Hi all, Could you please sugest me some code for building the GUI to browse a file and to upload using Swing. Thanks, | |
I'm creating a new class called album which is supposed to make an album and show pictures with caption. so.. Ok my problem is the methods section... i need help to set the array in the picture album and set the captions too can any one please help me out … | |
[B]is there any way to disallow more than one login [/B] I mean , in IE we can log in a yahoo Mail with a number of mail id at the same time...But this is not allowed in Mozilla..... I want to implement this(like that in Mozilla) restriction in our … | |
Hi, just doing a uni assignment and have completed a majority of it, just asking if someone could please proofread and help me out with the last line as i can't get it to compile. heres my instructions: All objects that float through space are instances of the SpaceObject class … | |
I want to construct a bipartite Graph for matchmaking of web services. First step of my project is graph construction. I need help in Bipartite graph construction | |
This program actually reads in an input expression and using the grammar rule to determine whether the syntax is ok or not. This is a lexical analyzer. I need to be able to read in the input expression and output each token of the expression and it's token kind. I'm … | |
I am new to using swing and I am trying to find a good way to organize a window with multiple tabs. I have found the info on Sun's website but I still need to manipulate the positions and alignments of those tabs more than what it covers. I also … | |
hi i hava queston for prac can i write it here i need sone answers | |
Hi Friends, My BCA(Bachelor of Computer Application) 6th sem Precticle exam is After 3 Days, so i want some good prectice of programs but i have no good Questions for prectice. Can you give me Some Servlet,JSP,RMI,and J2ME questions so i can practice that programs.:) | |
Hi all, I need to convert a JSP file to a PDF file dynamically After converting into PDF , I need to concatenate with another PDF which is already existing and this as a single document to the printer queue.. Please give ur suggestions.. Kindly post some source code which … | |
Hello, I'm facing another problem with vectors, this time with the problem of converting infix to postfix. The compile process completes, but I recieve an error after I enter the infix expression. Here is the exact error I recieve: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 43 >= 2 at java.util.Vector.removeElementAt(Vector.java:511) at … | |
Hi everyone, I'm making a program to store library books details, my constructor is such: [CODE]public Book(String author, String title, String publisher, int year)[/CODE] and I'm using an array to store and number the books and details, as such: [CODE]for(int i = 0; i <= 100; i++) { String book[i] … | |
Hi guys, I'm connecting to a bluetooth printer using a Phone via the following address: btspp://" + PrinterBluetoothAddress + ":1;authenticate=true;encrypt=false;master=true"; With this address, I'm able to print using a Sony Ericsson. With a Nokia, however, the master=true option is not supported. If I use master=false, I can just connect to … | |
hi am new to java and have a problem in displaying the x and y points on the graph to solve this ax3+bx2=x+d=0 here is the code import java.awt.*; import javax.swing.*; import java.awt.event.*; /** * PROGRAM: Cubic * DESCRIPTION: This program solves the cubic Equation for a given range of … | |
can someone plz help prog that allows the user to accept 2 end points (using mouse) and draws a rectangle between 2 points (using AWT Frame class and mouse listeners) 2.accepting two strings as comand line argumnts and append both. 3.a prog for accepting string from user. i am a … |
The End.