32,199 Topics

Member Avatar for
Member Avatar for Vetha

Hello, Here I have a problem, I want to print the word after the Delimiters in a simple text file, but i cant able to do it also cant able to find a good example for that in a web. So please if anyone help for this.

Member Avatar for ~s.o.s~
0
1K
Member Avatar for coding101

How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the …

Member Avatar for dheaven
0
236
Member Avatar for buchanan23

Hi everyone, I hope you can help me with this. I have everything in my code working properly except for the fact that the payment amounts are being displayed in the command window and I need to display them in the text area, as well as adding scroll bars to …

Member Avatar for buchanan23
0
4K
Member Avatar for J.S.AlKatheeeri

Hi, I'm trying to make a simple calculator. I don't know how to make the display screen and my buttons are not aligned properly. [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.event.*; public class Calculator extends JFrame{ private JButton btn0 , btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, …

Member Avatar for J.S.AlKatheeeri
0
204
Member Avatar for Bladtman242

As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want …

Member Avatar for Bladtman242
0
199
Member Avatar for Albion1

I have the following code and I want to move from one button to an other depending on the roll of the dice,for example if the dice rolls 5 i want to go to (1+5) six and to put a diferent color to it and so on.Can you help me. …

Member Avatar for NormR1
0
137
Member Avatar for aproxx

Hi everyone! I'm experiencing some trouble with a fairly simple problem I guess. First of all, I'm not a real expert when it comes to java, but I would like to learn it mostly by self study. And I'm sorry for the lots of code, but I can't really specify …

Member Avatar for aproxx
0
153
Member Avatar for Ashenvale

Hi guys I have a bit of a problem here about the alignment no what I try it always end up like that, the 2nd-3rd row course and sexcode column is what I want to fix >.< package studlist; here's my code: public class StudList { public static void main(String[] …

Member Avatar for JeffGrigg
0
127
Member Avatar for stevanity

I wanna know what type of parser is used in the javac compiler. whether a top-down or bottom-up parser is used..... ?

Member Avatar for stevanity
0
212
Member Avatar for sirlink99

I have a program that reads from a database, and then displays the results in a TextArea. Then when the user hists upload the file will be saved to a .txt file, and then uploaded to the database. But currently I am getting the original which looks like this in …

Member Avatar for mKorbel
0
231
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
186
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
178
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
98
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
61
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
108
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
249
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
160
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
152
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
154
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
836
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
133
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
198
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
144
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
373
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
347
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
164
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
74
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
636

The End.