9,869,444 members (27,791 online)
Visit CodeProject.TV
Discuss CodeProject.TV
Sign in
Email
Password
Forgot your password?
Sign in using
home
articles
Chapters and Sections
>
Search
Latest Articles
Latest Tips/Tricks
Top Articles
Beginner Articles
Technical Blogs
Posting/Update Guidelines
Article Help Forum
Article Competition
Submit an article or tip
Post your Blog
quick answers
Ask a Question
View Unanswered Questions
View All Questions...
C# questions
ASP.NET questions
VB.NET questions
C#4.0 questions
C++ questions
discussions
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work & Training Issues
Design and Architecture
ASP.NET
JavaScript
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
Adobe Technologies
C#
Free Tools
Objective-C
Ruby On Rails
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
.NET Framework
Mobile
VS 11 & .NET 4.5
Sharepoint
Silverlight / WPF
Visual Basic
Web Development
Site Bugs / Suggestions
features
Component & Service Catalog
Competitions
News
The Insider Newsletter
Newsletter archive
Surveys
Product Showcase
Research Library
CodeProject Stuff
community
The Insider News
The Lounge
The Weird & The Wonderful
The Soapbox
Press Releases
Who's Who
Most Valuable Professionals
Company Listings
Non-English Language
>
General Indian Topics
General Chinese Topics
help
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
Site Map
Advertise with us
Employment Opportunities
About Us
The default search term operator is
AND
.
You can use brackets,
AND
,
OR
, and
NOT
to improve your search. For example:
C# AND NOT(VB or SQL)
A query of a single
*
will return everything, filtered by any filters.
Filter examples:
Search by Author
author:"author name"
Filter by tag
tag:C#
or
tag:(C++ or Java)
Wildcard search
use "?" or "*" eg.
gr?d
or
gr*
13 Results
Search
Everything
Articles
Technical Blogs
Tips & Tricks
Questions
Answers
Forum Messages
News Items
Catalog Items
Videos
Training Courses
Just My Stuff
My Bookmarks
Sort by
Relevance
Rating Asc
Rating Desc
Title Asc
Title Desc
Author Asc
Author Desc
Date Created Asc
Date Created Desc
Date Modified Asc
Date Modified Desc
Price Asc
Price Desc
Duration Asc
Duration Desc
Match
All Fields
Title
Description
Author(s)
Tags
Any Date
Last 12 hours
Last 24 hours
Last week
Last 2 weeks
Last month
Last 3 months
Last 6 months
Last year
January
February
March
April
May
June
July
August
September
October
November
December
Rating Range
All - Including Unrated
1.0 - 5.0
2.0 - 5.0
3.0 - 5.0
4.0 - 5.0
4.5 - 5.0
4.8 - 5.0
5.0
Advanced Filters:
Article Topics
All Topics
Desktop Development
Web Development
Mobile Development
Cloud Computing
Enterprise Systems
Database
Multimedia
Languages
Platforms, Frameworks & Libraries
General Programming
Graphics / Design
Development Lifecycle
General Reading
Third Party Products
Mentor Resources
Article License
All Licenses
CPOL
CDDL
Ms-PL
MPL
CPL
Eclipse
MIT
BSD
Apache
CC (ASA 2.5)
Zlib
Public Domain
CC (Attr 3U)
CC (ASA 3U)
LGPL3
GPL3
Forums
All Forums
Feature Forums
General Programming
Web Development
Product Lifecycle
Database & SysAdmin
General Discussions
Non-English Language
Catalog Category
All Categories
Books & Training
Charting & Graphing
Components, Controls, Libraries
Data Manipulation & Mining
Database Tools
Debugging
Documentation & Help
Financial, Math & Scientific
Frameworks & APIs
General Development Tools
GIS & Maps
Graphics & 3D Modeling
Hardware and Robotics
Hosting
IDEs
Imaging
Mobility
Multimedia
Networking
Performance and Profiling
Programming Languages
Project Life-cycle Management (ALM)
Reporting
Search
Security
Setup & Deploy
System Adminstration
Utilities
Virtualization
Web Design/Development
Catalog License
All Licenses
Commercial
Fully Function Evaluation version
Limited Functionality Trial
Limited Time Trial
Shareware
Free For Personal Use
Freeware
Page 1 of 1
Page Size:
10
·
25
·
50
Author filtered by: nameJulian
[x]
usb device detection using java
by
nameJulian
Answer
13 May 2013
license:
CPOL
I would suggest looking at RXTX Java Communication API. It is the one I use in my application and it works very good. I'm able to show all my usb ports.
General Programming
»
Uncategorised Quick Answers
»
General
Java
Threads In Java Programming Language
by
nameJulian
Question
13 May 2013
license:
CPOL
Hello. I would like to ask you a question. Is it bad practice to use threads in thread? Something like: Thread bigThread=new Thread(){ public void run(){ //do something here PersonalThread pThread=new PersonalThread();...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Threading
threads
now am create button here how set image on the button
by
nameJulian
Answer
11 May 2013
license:
CPOL
By reading your question I think that you want to add an image on your button. You could try something like this:import javax.imageio.ImageIO; //neededimport java.io.File; public void initialize(){ //create your jframe //add you panel to it //add your...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Java SE
J2EE
how to create dynamic jCheckBox in java Swing
by
nameJulian
Answer
10 May 2013
license:
CPOL
Use this code, I have written it myself and it works:import java.awt.BorderLayout;import java.util.ArrayList;import javax.swing.BoxLayout;import javax.swing.JCheckBox;import javax.swing.JComboBox;import javax.swing.JFrame;import javax.swing.JPanel;import...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Swing
Need Help in Java JFrame
by
nameJulian
Answer
8 May 2013
license:
CPOL
If you want to close your JFrame, you just need to call: this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //your main class must extend JFrame //or use this otherwise yourFrame.setDefaultCloseOperation(JFram.EXIT_ON_CLOSE);This ensures that when you...
General Programming
»
Uncategorised Quick Answers
»
General
Java
How to use java file chooser in Jframe?
by
nameJulian
Answer
4 May 2013
license:
CPOL
Try using this code for your close, open, save buttons:public void actionPerformed(ActionEvent e) { if(e.getSource()==close){ this.dispose(); } if(e.getSource()==open){ JFileChooser choose=new JFileChooser(); //create a new JFileChooser instance int...
General Programming
»
Uncategorised Quick Answers
»
General
Java
my code giving me errors not sure what is wrong
by
nameJulian
Answer
4 May 2013
license:
CPOL
Is it giving you and IndexOutOfBoundsException ? If that so try the next thing: index
General Programming
»
Uncategorised Quick Answers
»
General
Java
netbeans
how to read two numbers at a time as input from a text file in java
by
nameJulian
Answer
4 May 2013
license:
CPOL
Reading from a text file, means that you must use a FileReader stream. I suggest that you use a StreamTokenizer, wich takes as argument the FileReader stream. And by using this StreamTokenizer, you can decide if there is a end of line( TT_EOF method for the tokenizer ) and a white space....
General Programming
»
Uncategorised Quick Answers
»
General
Java
calculator program using java swing
by
nameJulian
Answer
4 May 2013
license:
CPOL
As a minor advice. Why have you initialized your text fields with so many space characters? If you want the text fields to be empty, the just initialize them like this: JTextField myTextField=new JTextField("");Thus the compiler knows that text fields must be empty. And by...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Swing
the following line shows error ::System.out.println("D:\\\"+name+".jpg"); .... y ?
by
nameJulian
Answer
4 May 2013
license:
CPOL
Two slashes is normal. JVM only takes one of them, because, as said above, one is the escape character. Take for example: Image myImage=new Image("D:\\image.jpg"); The program knows that it must access the file D:\image.jpg. Delete one slash and you should be ok.Best of luck.
General Programming
»
Uncategorised Quick Answers
»
General
Java
Java Timer in For Instruction
by
nameJulian
Question
30 Apr 2013
license:
CPOL
Hello there, I want to ask you people a question. Can a java timer be initialized in a for loop? So that the timer will once run once with a value taken from an ArrayList. Something like the idea bellow: void myTimerMethod(){ int size=ArrayList.getSize(); Timer...
General Programming
»
Uncategorised Quick Answers
»
General
Java
For
time
array
addKeyListener for Frame doesn't work - no reaction to keys
by
nameJulian
Answer
22 Apr 2013
license:
CPOL
Hi there, if you are using java 7 i suggest using a KeyboardFocusManager. Use it something like this:public class yourClass{ KeyBoardFocusManager manager; public void aMethod(){ //doing something with your frame in this method //like add components,...
General Programming
»
Uncategorised Quick Answers
»
General
Java
AWT
about designing swing gui
by
nameJulian
Answer
22 Apr 2013
license:
CPOL
Well i can't give you a full advice on how to work with your files, but as for the 2 vertical frame, i would rather use one frame. I would create a panel in it. To this panel i would give a GridLayout(1,2) (1 row, 2 columns ) and then add two more panels ( internal panels if your prefer...
General Programming
»
Uncategorised Quick Answers
»
General
Java
Swing
Page 1 of 1
First
·
Prev
·
Next
·
Last
Advertise
|
Privacy
|
Mobile
Web04 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright ©
CodeProject
, 1999-2013
All Rights Reserved.
Terms of Use
Layout:
fixed
|
fluid