Use Random Access File Class, it helps you to position your cursor on desired location on file and over write the sold objects with empty spaces. And instead of using text file why dont you use database, like mysql or access. or you can move towards xml to make the process more efficient.

Kindly paste the error or explain it. Reading a huge code is a bit difficult for every programmer.

Your welcome, kindly please close the post if it solved your problem, so in future other can be benefited.

Swing is the primary Java GUI widget toolkit. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.

Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables and lists.

Unlike AWT components, Swing components are not implemented by platform-specific code. Instead they are written entirely in Java and therefore are platform-independent. The term "lightweight" is used to describe such an element.

More Links

engrjawad commented: Nice Info +0

You actually need to learn events through buttons in c#.
Check out the link.

You have to change your key listener from Released to Pressed. Reason is on release it check so your characters go out of range. Hope this help.

 public void keyPressed(KeyEvent key)

It isnt difficult, all you have to learn graphics library of java. Its drawing of a rectangle and putting buttons over it. Also u can draw a jpanel and put buttons and increase it size gradually.

this website will help you.

for checking strings use equal function. == sign doesnt work properly while checking strings.

E.g String a  = "hello";
    a.equal("hello"); // ---- true ----------------

Better check the documentations for these warnings.

This error is because of serializable class. You have two ways to eliminate this

1) Give it a ID
private static final long serialVersionUID = any_Id;

2) If you using eclipse then use
@SuppressWarnings("serial") // this anotation will disable the warning because of serial.

vinnitro commented: thnx for helping it worked +2

If you are using JDK 1.7.0 then you have to use generic type as stated in its documentation

You wont find that problem in 1.6.

Caches is a intermediate memory which is required to hold data. This provide faster performance by hardware. In computer cpu has registers then caches. L1 Come first then L2 and then L3 and so one. In last it has access to Ram. The more near to cpu the more it is faster. If we eliminate the register and cache memory and consider ram is only source for temporary storage then cpu will take longer time to process the application which effect the computer performace badly.

As the near to cpu the most faster they are , which make register very fast. but it is very costly to build register so cache was introduced to take extra heavy burden.

L1 can have more or less memory the L2. But L1 memory is faster because it is present in each single cpu. If you have multi core cpu then you will have multiple L1 cache. L2 on other hand is shared among all cpu cores.

If the size of L1 was the same or bigger than the size of L2, then L2 could not accomodate for more cache lines than L1, and would not be able to deal with L1 cache misses.


Its a easy task. U better learn some joins for database. I am writing a pesudo query for you , use the syntax and build one for you.

select the required fileds from table t1, table t2 where t1.articlenb = t2.article and t1.cell = 'yes' and t2.instock > 0

I think you have to make your o.s capable to display the chinese text, not the editor. Goto Reginol and language settings and install asian font. That will do it.

echo your $name, also paste your url address here, seems like you are not passing correctly the name parameter.

1) Check wether main string is null (if(str != null)) then
2) After that get the length of Str, if it is more then 3 then check if(str[3] == null) then

1) strrr object isnt intialized yet, u have initialze it first.
strrr = new String[size];
2) Now u can check your string, if its null dont split.

Please paste ur code... It seems u are calling file chooser in constructor rather then in actionPerformed Method. Still itsnt clear until you paste your code.

Seems Like a report, Use Jasper Report , oracle reports or crystal reports.

I think you are confused in passing a class as a paramater,
You can pass class as a paramater...

Lets Take an example

//----------- Class a -----------------
class a
    private int i;
    a(int j)
        i = j;

    public void print()

//----------------- Class b
class b
        b(a A)

//---------------- Main Class which is controlling the other classes    
public class c
    public static void main(String args[])
            b B1  = new b(new a(10));
            b B2  = new b(new a(10));

Here i have taken two class a and b, while c is only for central controlling the two. b class constructor takes a class parameter and print it in the constructor.

First of all you dont have Card Class, thats why it is giving cant find symbol error.
Second you cant call non-static objects from static functions because static has more life then non static thats why compiler stops you from doing this.

Thats what is pointed in this link... You need a manifest file.
1) Create a text file name manifest
2) write -> Main Class: your mainclass name where your main function resides
3)goto cmd and write jar -cvfm manifest.txt yourjarname.jar yourclasses.class

I atleast earn a point for this... :)
this page explains every thing you require.

Your Problem : Scope of variable "i" is only to loop.
Try to declare a variable before for loop and use it inside for statement.

int i;

Do you have idea of creating manifest file?

We are not here to solve your assignements by reading this big requirement. Paste your code here and ask for specific help.

I remember i used to initialize the head with the first linked list address in C/C++ language. But in java there are no addresses concept, Jvm handle pointer for you. So instead of making traditional linked list in java like c/c++ , why dont u try something new. Also LinkedList classes are available in java, then why are you re-inventing the wheel.

Look creating a web browser isnt that simple, u can use already deployed project to understand the working or extend them like [url][/url]. If you want to open URL in a webbrowser like firefox or IE then use JDESKTOP Api. Hope this Help...

Seems like u want to abort a thread cleanly if it fails to complete in a desired time. I think "interrupt" is one of the possible way's, u need a exception handler in which u can print a message or empty as u desire....

Reduce the number of column from 50 to 30....
incoming = new JTextArea(15, 30);

Your Text is appearing but isnt adjusting over frame correctly...