35,618 Topics

Member Avatar for
Member Avatar for lethal.b

I have created an XML schema that holds flights and i want to use to be able to create an XML document that contains all the flights. However, i can only write single flights to the XML file. So can anyone tell me how i can add multiple flights to …

Member Avatar for peter_budo
0
189
Member Avatar for Mr.BunyRabit

Im writing a java system for some one, and no contract has been established so far. Im just wondering, if i dont sign any contract, to whom does the source code of my project belong to? Is it mine? do i sell it to him? does he just get it? …

Member Avatar for hfx642
0
181
Member Avatar for kiswah03

How to add three jtables to a single jscrollpane. JScrollpane.add() function doesnot show jtable header.

Member Avatar for mKorbel
0
99
Member Avatar for xaelophorus

I've created a class called PrintableReport that uses Java2D to paint a report from a database table to the screen. The user can then click the PRINT button to send the report to the printer. However, the printed page's formatting is not consistent with the onscreen formatting. In particular, class …

0
62
Member Avatar for Mr.BunyRabit

Im reaaly starting to hate netbeans... its like it changes my code for me!!! I use java mail to send emails. Now i got it to work a few days ago. already imported the api, and what have you (images attached). And i was able to send emails, and today …

Member Avatar for Mr.BunyRabit
0
1K
Member Avatar for Morley93

Hi again all. Having continued with my project I have managed to finish my [I]Board()[/I] which is where my main game occurs. I have also created a main menu which is instantiated from my [I]main()[/I] method and appears as soon as the program is run. My current problem is invoking …

Member Avatar for Morley93
0
112
Member Avatar for aiwasen

well,the title says it all. What are the disadvantages and advantages? Is it better to compile java in ms-dos or in IDE such as eclipse(which is popular as they say). Which do you prefer?

Member Avatar for stultuske
0
253
Member Avatar for rcbandit

Hi, Is it possible to call OSGI service implemented in external bundle from EAR package? Is there a tutorial how this is implemented? Regards

Member Avatar for StephNicolaou
0
163
Member Avatar for laopi

Hi, I'm new to java, I'm using netbeans, I create two tables, master table and detail table, detail table has a composite primary key, one of the primary key refer the master table's primary key, when I created a desktop application, the detail parts only show the columns which are …

Member Avatar for StephNicolaou
0
154
Member Avatar for gourav1

hey!tell me that what is difference between info contained in cookies and session(made in web container) ? let i have opened a website and done something in it and then i opened another site and do something on it. then tell me what is the info cookie is containing and …

Member Avatar for gourav1
0
156
Member Avatar for jeraldmuthu

Hi, i need to retrieve the combo box value to the string parameter in the same page parameter for checking condition is it possible in JSP ? [CODE] <%@ page import="java.io.*"%> <%@ page import="java.sql.*"%> <%@ page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page language="java" session="true"%> …

Member Avatar for peter_budo
0
239
Member Avatar for kyriacos1986

I am trying to create a countdown timer using the javax.swing.Timer class. In order to display it I am only allowed to use javax.swing.JFrame and javax.swing.TextField classes. Well my Timer works as I expected. But I have trouble when I am trying to display it in the JFrame. It appears …

Member Avatar for JamesCherrill
0
838
Member Avatar for autorunman22

hello guys, ive been searching for ages on how to disconnect a client whether the request is from client or server but i cant find one. I thought the Naming.unbind() would do the trick but its not. anyway, this is my server code since I want to have my server …

Member Avatar for autorunman22
0
1K
Member Avatar for Mr.BunyRabit

This must be the Most Irritating Bug or what ever it is, EVER!!!! Im using Netbeans 6.9.1 and i have a main form, with a JMenuBar (dropdown bar) in that form. Now i have allot of items in that bar. But netbeans chooses some random time to remove 1 to …

Member Avatar for Mr.BunyRabit
0
135
Member Avatar for stupidenator

Hey Everyone, I just have a quick question... does anyone know how to test 2 integers (int a, int b) to see if int a is evenly divisible by int b? I tried it like this but it doesn't really seem to work: [CODE]public boolean isDivisible(int a, int b) { …

Member Avatar for zeroliken
0
202
Member Avatar for Blahthing

I was making an item for a game im modding, but it cant seem to read the variable and perform its function. Yeah, it recompiles fine, but dosent work ingame The functions that dont work ingame, are -Printing A Chat Message To An Entity -Setting Variable Timesshot to 0 -Damaging …

Member Avatar for Blahthing
0
146
Member Avatar for 03hasnam

please consider the following file of given staff. [CODE]Bob 100100653 5860 London H3ll0 1[/CODE] How do i extract the 6th line for multiple files and generate a report in java for each files under same directory? the above is just one file data. i want to read multiple files and …

Member Avatar for NormR1
0
381
Member Avatar for skiabox

I am reading the book Head First Java. Reading the chapter 'networking and threads' I tried to run a project in my Eclipse IDE that consists of a chat server and chat clients. The problem is that I am getting no feedback in the clients text area and debugging seems …

Member Avatar for skiabox
0
353
Member Avatar for Nordijac

Hi, I'm a beginner with Java and I've encountered some trouble with simple I/O. Thing is, I have to enable the command line and write a file name of a textfile which holds a simple number. That number I have to get from the file and into JGrasp and print …

Member Avatar for JamesCherrill
0
168
Member Avatar for Ratman69

So, I need to make a flash card app on java and I'm planning on using blueJ. My main problem is that I don't really understand how to make a menu interface in which you can choose to flip the card, go to the next card, etc. Thats my main …

Member Avatar for NormR1
0
76
Member Avatar for mehnihma

Can someone help me with this? I have proble with Array Lists , As you can see in the ouput I get same values but I need to put in different values , what am I doing wrong? Thanks in advance and Happy New Year! [CODE] import java.util.*; public class …

Member Avatar for mehnihma
0
642
Member Avatar for JavaPrograms

My task is to: Pick 10 of my favourite NBA or NHL players from 2 top teams and display the player name, team name, points, rebounds, and assists for each of them. I then have to store this information as a table in a .txt file (This part is completed). …

Member Avatar for David Kroukamp
0
427
Member Avatar for gourav1

hey!tell me that what is difference between info contained in cookies and session(made in web container) ? let i have opened a website and done something in it and then i opened another site and do something on it. then tell me what is the info cookie is containing and …

0
42
Member Avatar for gourav1

hello! i m reading servlets these days and i want to read about structs and sessions.please give me links here so that i can read about them and so that i can make some application(web) based on concept of these two. i have searched google and also find many things, …

0
47
Member Avatar for xanawa

Hi i am trying to connect with the data base with the following code but it is giving me an error. [B]CODE:[/B] [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dbaccess; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import …

Member Avatar for stephen84s
0
231
Member Avatar for crbsathy

Hi Friends, I have a doubt in accessing the memory address . In java there is no pointers like c . then how can we access the address of the memory variable.

Member Avatar for JamesCherrill
0
1K
Member Avatar for gourav1

hello! i m reading servlets these days and i want to read about structs and sessions.please give me links here so that i can read about them and so that i can make some application(web) based on concept of these two. i have searched google and also find many things, …

Member Avatar for stultuske
0
131
Member Avatar for gourav1

please tell me what exactly buffer is ? i have searched google.com a lot but not find what exactly it means ? what it means if i say "flushing the buffer"..? please tell me..what exactly is it ??

Member Avatar for gourav1
0
143
Member Avatar for gourav1

[CODE]PrintWriter file= new PrintWriter(new FileWriter("league1.txt",true)); file.print(value1); file.print(','); file.print(value2); file.print(','); file.print(value3); file.print(','); file.close();[/CODE] i m using this code to write in a file.. i m using this in servlet.value1, value2,value3 are Strings. and i wana to write it in file named "league1.txt". i have made this file in WEBPAGES folder in …

Member Avatar for gourav1
0
270
Member Avatar for anand01

[CODE] Set<Integer> set = new HashSet<Integer>(); Integer i1 = 45; Integer i2 = 46; set.add(i1); set.add(i1); set.add(i2); System.out.print(set.size() + " "); set.remove(i2); System.out.print(set.size() + " "); i1 = 47; System.out.print(set.toString()); set.remove(i1); System.out.print(set.size() + " "); [/CODE] The result of this code is 2,1,1 but my expectation is 2,1,0 Could any …

Member Avatar for anand01
0
116

The End.