953 Posted Topics

Member Avatar for sirlink99

there are three areas 1/ USB - yes 2/ Open/Close Connection with some... - yes 3/ remote control API from chipset - ???

Member Avatar for sirlink99
0
89
Member Avatar for chester1908

image in JPanel (good, don't change that) isn't BackGroung for your JFrame, just about terminology add 1/ there are lots of discusions about BufferedImage how, when, which methods, search for that, basically is ImageIcon safiest options, because allows null Image and without error or exceptions to GUI, ho have to …

Member Avatar for mKorbel
0
145
Member Avatar for bibiki

hmmm, just my interest about ... a few Topics back I declared that [CODE]driver type 4[/CODE] is implemented in Java6, and works with some latest MySql driver running on Java 1.5...

Member Avatar for bibiki
0
166
Member Avatar for olsane

[CODE]String text1 = event.getActionCommand(); if (text1.equals(text[0])) [/CODE] you forgot to add setActionCommand for JButtons separatelly .... or change to [CODE]Object btn = event.getSource(); if (btn ==buttons[0]) {[/CODE] why here is System.exit(0);, this colde line closed aplication without ...

Member Avatar for mKorbel
0
101
Member Avatar for warlord902

yes from [url]http://download.oracle.com/javase/tutorial/uiswing/index.html[/url] is basic stuff about JTree [url]http://download.oracle.com/javase/tutorial/uiswing/components/tree.html[/url] and search/look for TreeModel tons of examples [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url] and [url]http://www.java2s.com/Code/Java/Swing-Components/Tree.htm[/url]

Member Avatar for warlord902
0
1K
Member Avatar for ghsuan

here is basic stuff [url]http://download.oracle.com/javase/tutorial/uiswing/index.html[/url] tons of examples [url]http://www.java2s.com/[/url]

Member Avatar for tunlinaung
0
2K
Member Avatar for turt2live

standard is that you using just one JFrame and other TopLayoutContainers would be JDialog(s) 1/ it hard to manage Focus between two JFrames, nor to move one of then toFront() - sure its possible but code needed for that will be longer than your "game" 2/ JDialog#Modality - but chaning …

Member Avatar for turt2live
0
209
Member Avatar for stupid guy

depends by implementations od Java version in Java6 is JDBC v4, something about that you can find on google

Member Avatar for cretaros
0
199
Member Avatar for Majestics

@ masijade [CODE]If "this person" wrote the code for ***** [/CODE] not at all, some InHouseAppS have long, long story :-)

Member Avatar for mKorbel
0
189
Member Avatar for caierhui

for clearnes, you had applications that runs on Local PC and with MySql instaled on same PC, then JDBC Connection "blablabla *** localhost:3306 ***blablabla" is correct, because your aplications loads and save data stored on Local PC, then you have put your database on some server, and for opening Connection …

Member Avatar for mKorbel
0
129
Member Avatar for sj5536

if required export(s) to MsOffice (Word, Excell with formulas) then only Net is result, otherwise I don't see any differencies java and .net have lot of custom L&F java required JRE instalations

Member Avatar for mKorbel
0
123
Member Avatar for newbie14

there are two areas 1/ set Charset and Collations in Database or DbTable on correct value 2/ for non-ASCII chars you have to use an Encode for file (2nd. parameters for File I/O)

Member Avatar for newbie14
0
120
Member Avatar for jfountai

depends if is [CODE]appconfig[/CODE] correct path, if wouldn't be this properties file amnendable, put that to package and compile to the jar

Member Avatar for jon.kiparsky
0
174
Member Avatar for prateeksalian
Member Avatar for pooran.c

and why don't use java.util.Calendar or Date (and only hard code Month + Year for expected and correct output)

Member Avatar for pooran.c
0
166
Member Avatar for StudentUoP

for inspirations, how to do it That correctly (by using the safiest JComponents and its methods) [url]http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html[/url] for JComboBox just ItemListener [url]http://download.oracle.com/javase/tutorial/uiswing/events/itemlistener.html[/url]

Member Avatar for mKorbel
0
844
Member Avatar for Kuroshi

aplologize me for hiJacking this thread but, @ jwenting wrote [CODE]If you're programming raw sockets, you can only ever send bytes. Java also lets you send Strings and integers, because it handles the conversion to bytes for you.[/CODE] are you sure that that is valid for Non-ACSII chars, maybe then …

Member Avatar for Kuroshi
-1
1K
Member Avatar for jackmaverick1

but nobody can't see anything about you talking, post your code would be better but [url]http://download.oracle.com/javase/tutorial/uiswing/index.html[/url] and runnable exampels [url]http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm[/url]

Member Avatar for JamesCherrill
0
151
Member Avatar for sakurayana

very good outPut to GUI, ok hmmm 0/ Update your Code by using Code tags 1/ put your Ticket Details next Print Ticket 2/ setPreferredSize for Please Choose.... (enlarge this JCheckBoxs area) you can pretty lay inside Fill You.. with invisible JLabel and JTextField on the top 3/ look for …

Member Avatar for sakurayana
1
218
Member Avatar for newack

hmmm IDE's GUI builder, this was good one as JamesCherrill asked you for Upgrade to Java 1.6u22, so I insist for that

Member Avatar for cretaros
0
2K
Member Avatar for newbieha

you can create arrarys of JButtons but you have to remove 1st. on 2nd loop, JButton[] buttons; buttons[i] = new JButton()... and add to your ButtonListener class public void mouseClicked(MouseEvent e){ Object objSource = e.getSource(); then check which buton is clicked if(objSource == buttons[0]){ buttons[0].set....

Member Avatar for newbieha
0
108
Member Avatar for catpoints

here [url]http://download.oracle.com/javase/tutorial/uiswing/components/label.html[/url] or [url]http://www.java2s.com/Code/Java/Swing-JFC/LabelwithImage.htm[/url] or google returns tons of examples

Member Avatar for catpoints
0
2K
Member Avatar for TinyBelly
Member Avatar for rithish

sorry I can't hepl you with that (so little bit knowledge ...), but in forums history is lots of topic about that

Member Avatar for tomato.pgn
0
113
Member Avatar for aanders5

there are exists XML parsers, but if that fails then you have to write something like as (and write is like a horse) [CODE] int myIndex = someString.indexOf("<title>"); int myIndex1 = someString.indexOf("</title>"); String myTitle = someString.subString(myIndex + (you have to count chars from <title>), myIndex-1??? or only myIndex???, must to …

Member Avatar for dononelson
0
197
Member Avatar for TinyBelly

by using String myRadio.setActionCommand("XXX"); // for ButtonGroup String sel = myButtonGroup.getSelection().getActionCommand(); myRadio.isSelected//return boolean value

Member Avatar for mKorbel
0
1K
Member Avatar for TinyBelly
Member Avatar for MWE_QUE

[url]http://download.oracle.com/javase/tutorial/essential/io/index.html[/url] [url]http://www.java2s.com/Code/Java/File-Input-Output/CatalogFile-Input-Output.htm[/url] [url]http://download.oracle.com/javase/tutorial/essential/exceptions/index.html[/url]

Member Avatar for MWE_QUE
0
1K
Member Avatar for BOOMBOOMF
Re: HELP

that's job for JList [url]http://download.oracle.com/javase/tutorial/uiswing/components/list.html[/url] [url]http://www.java2s.com/Code/Java/Swing-JFC/List.htm[/url] better would be JTable [url]http://download.oracle.com/javase/tutorial/uiswing/components/table.html[/url] [url]http://www.java2s.com/Code/Java/Swing-JFC/Table.htm[/url]

Member Avatar for mKorbel
0
140
Member Avatar for fin4424

there isn't anything about visibilty for JFrame, and probably Code folds are wrong, then is this code nonRunable, and must cried ...., something else

Member Avatar for fin4424
0
261
Member Avatar for bibiki

check history on this forum, there are lots of questions about that, classPath it's same as in Win, just check File separator for that

Member Avatar for mKorbel
0
131
Member Avatar for TinyBelly

1/ put Image or ImageIcon to the Java Package, - if you are using some IDE then just create new Java Package - otherwise [url]http://download.oracle.com/javase/tutorial/deployment/index.html[/url] 2/ for this AbsoluteLayoutZOO you can use GridLayot or BoxLaout [url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url] 3/ you can set different Layout for each JPanel for public listOfMovies() {.... } …

Member Avatar for mKorbel
0
208
Member Avatar for ashishnandwani

Most of How to Use SWingWorker are only with JProgressBar, better examples and tutorial descibe that with implements PropertyChangeListener, this is correct and safiest way

Member Avatar for ashishnandwani
0
199
Member Avatar for MeandJava

you choose harder way but nobody know [url]http://www.java2s.com/Tutorial/Java/0120__Development/0300__Timer.htm[/url] [url]http://www.java2s.com/Tutorial/Java/0240__Swing/1820__Swing-Timer.htm[/url]

Member Avatar for MeandJava
0
163
Member Avatar for Lamthuy

@ Lamthuy [CODE]70 millions ... never faced the same issue with C++[/CODE] but then you have to pretty sure that you lost part of Object, because memory requirements are similair for lots of PL, and in C++ is double is always 8 bytes (64 bits) [url]http://en.wikipedia.org/wiki/Double_precision_floating-point_format[/url]

Member Avatar for Lamthuy
0
162
Member Avatar for guru_iyer
Member Avatar for shyla

@ JamesCherrill why did you confused, he/she started a new topic like as yesterday ... 1/ add MyOval 2/ count elements 3/ add JLabel to SOUTH (that's homework requirements, attached to previous thread) 4/ display counts in JLabel

Member Avatar for JamesCherrill
0
274
Member Avatar for rithish

on focusLost() [url]http://download.oracle.com/javase/tutorial/uiswing/events/focuslistener.html[/url] [CODE] Runnable doRun = new Runnable() { @Override public void run() { t1.setText(t.getText()) } }; SwingUtilities.invokeLater(doRun); [/CODE]

Member Avatar for JamesCherrill
0
161
Member Avatar for akki_k
Re: I/O

[url]http://download.oracle.com/javase/tutorial/essential/io/index.html[/url] and tons of related examples [url]http://www.java2s.com/Code/Java/File-Input-Output/CatalogFile-Input-Output.htm[/url]

Member Avatar for JamesCherrill
0
114
Member Avatar for rithish

hmmm excelent thread, @ rithish if you are using Eclipse then you can see red ocean, on both classes you totally ignore how to use braces for code folds 1/ 1st. character from ClassName should be UpperCase (both clasess) 2/ rename form to MyForm or whatewer, because Form (or form) …

Member Avatar for rithish
0
167
Member Avatar for arshi9464

THERE IS VERY USEFULL INFOS [url]http://www.javaworld.com/jw-12-2000/jw-1229-traps.html[/url]

Member Avatar for Tellalca
0
195
Member Avatar for Tellalca

but at the beginning you have to decide 1/ I'm just want to pass painting via constructor with ObjectType (Line, Oval...) and with Sizing into Container 2/ all from point 1st. plus something more that plain paints (remove painted Object, move Object into Container....) 3/ all from both above points …

Member Avatar for mKorbel
0
178
Member Avatar for TGeorge824

basic stuff [url]http://download.oracle.com/javase/tutorial/deployment/jar/index.html[/url]

Member Avatar for peter_budo
0
169
Member Avatar for TinyBelly

beacuse you didn't set any LaoutManager for JFrame then just last added JComponent occupated whole ContentPane, Swing has by default FlowLayout, but then you don't mixing add(someComeponents) with setBounds(int, int, int, int) LaoutManager [url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url]

Member Avatar for TinyBelly
0
173
Member Avatar for 24x24
Member Avatar for yancouto
0
226
Member Avatar for CorruptionInc

there is bug with calculate Price (JCheckBox1 + JCheckBox2), check that ... [CODE]import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import javax.swing.border.EtchedBorder; import javax.swing.border.TitledBorder; public class PizzaPriceFrame extends JFrame { private static final long serialVersionUID = 1L; private JFrame frame; private JPanel pizzaPanel, centerPanel, pricePanel, checkBoxPanel, radioButtonPanel; private final int …

Member Avatar for CorruptionInc
0
5K
Member Avatar for bhanu1607

[url]http://www.java2s.com/Code/Java/Database-SQL-JDBC/JDBCTransaction.htm[/url]

Member Avatar for mKorbel
0
95
Member Avatar for Gaspacho
Member Avatar for pooran.c
Member Avatar for softswing

1/ calculate dataVolume 2/ divide dataVolume to JProgressBar pb = new JProgressBar(0, dataVolume); 3/ put that to the BackGroundtask, and on period bases update JProgressBar there are must exist some java + downLoadManager SwingWorker can hepl you with that [url]http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html[/url]

Member Avatar for mKorbel
0
122

The End.