Archive | Programming

[Java swing] Customize JTabbedPane

In my previous article introduced some basic JTabbenPane, this article we learn a little more for better customization for too JTabbedPane, like the picture below, have closed tab, More tab,… In which the most important is how we have to add new tab button, how each tab it close button tab. We will create 2 file, 1 […]

[Java swing] JTabbedPane in Java

You have to use the notepad or you are using eclipse, NetBean to java code and you can see we have many different tab. This article we will learn JTabbedPane, a component that allows you to create multiple tabs so. Create simple JTabbedPane Consider the following code to do simple demo shown above, in your code has relatively clear explanation. Beneath its code […]

[JavaSwing] JTextArea in Java

JTextArea is a component for displaying multiple lines of text at the same time the user can edit the text. Create a simple JTextArea Now we will practice even an example that allows you to type and edit text. In your code, and images were explained quite clearly the commands performed with JTextArea. Set the font and font color for you JTextArea […]

[Java – C] C function calls in Java – Call C function in Java

Have you ever wanted to write a Java program library but not like some languages (such as C) to perform? That is one reason for you to read this article, or some other reason do you want to use functions from C to Java programs you can run faster! To do this, you should use the letter […]

[C / C ] Create a library of C – Create a library in C

When working with C, if there is some content that you regularly use and do not want to rewrite many times, Please create a library file containing the function. This article will help you do it! Content – Table of content Creating library file – Use library Create library self-created files – Using self library Create a library file to generate […]

[C / C ] Simulation of strategic coordination process

About the algorithm coordination process will not present themselves in this post, you can refer to read on the net if you want (may your will write about them in a certain beautiful day). In this article I just would like to introduce (Share) with the code you calculate, Simulation of this strategy alone. The program will include 2 file là file input.txt […]

[Java] The simulation program collage file

Sometimes our files too large but need to share to friends, it makes sharing data difficult. The best workaround is let's cut the file into smaller files and some then take it back when down on graft. The following programs simulate job cut and join files. Interface splitter includes […]

Snake game on C

Snake program has been recast based on Snake game built by Pascal however omit map (remove obstacles). To be able to install and run the program. First you download unpack and install TurboC normal. Next download the file saved in C ran.cpp:DOSBoxTCBIN. Open TurboC out, find ran.cpp file and run only. […]

[C / C ] Check in with scanf string there is some?

Really when this article weigh yourself do not know its title should write how… “Check the number you enter there is some” @@Slightly funny because it's called number and then check what, or is “Check the number of C” – well not quite ready for the purposes of this article. And finally decided to put as above for the purpose of the […]

[Java Swing] JPasswordField in Java – JPasswordField in Java

Content Create JPasswordField Getting the facts and get the password from JPasswordField JPasswordField object allows us to enter into a line of text like JTextField but is hidden by asterisks (*) or dots to create a password (password). JPasswordField JTextField often used together to create a user name and password pairs as shown below: Now we'll go through JPasswordField […]