953 Posted Topics
Re: there are three areas 1/ USB - yes 2/ Open/Close Connection with some... - yes 3/ remote control API from chipset - ??? | |
Re: 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 … | |
Re: 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... | |
Re: [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 ... | |
Re: 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] | |
Re: here is basic stuff [url]http://download.oracle.com/javase/tutorial/uiswing/index.html[/url] tons of examples [url]http://www.java2s.com/[/url] | |
Re: 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 … | |
Re: depends by implementations od Java version in Java6 is JDBC v4, something about that you can find on google | |
Re: @ masijade [CODE]If "this person" wrote the code for ***** [/CODE] not at all, some InHouseAppS have long, long story :-) | |
Re: 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 … | |
Re: 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 | |
Re: 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) | |
Re: 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 | |
Re: and why don't use java.util.Calendar or Date (and only hard code Month + Year for expected and correct output) | |
Re: 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] | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: hmmm IDE's GUI builder, this was good one as JamesCherrill asked you for Upgrade to Java 1.6u22, so I insist for that | |
Re: 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.... | |
Re: 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 | |
| |
Re: sorry I can't hepl you with that (so little bit knowledge ...), but in forums history is lots of topic about that | |
Re: 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 … | |
Re: by using String myRadio.setActionCommand("XXX"); // for ButtonGroup String sel = myButtonGroup.getSelection().getActionCommand(); myRadio.isSelected//return boolean value | |
Re: [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] | |
Re: 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] | |
Re: there isn't anything about visibilty for JFrame, and probably Code folds are wrong, then is this code nonRunable, and must cried ...., something else | |
Re: 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 | |
Re: 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() {.... } … | |
Re: 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 | |
Re: 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] | |
Re: @ 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] | |
Re: @ JamesCherrill hard of gold :-) | |
Re: @ 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 | |
Re: 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] | |
Re: [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] | |
Re: 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) … | |
Re: THERE IS VERY USEFULL INFOS [url]http://www.javaworld.com/jw-12-2000/jw-1229-traps.html[/url] | |
Re: 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 … | |
Re: basic stuff [url]http://download.oracle.com/javase/tutorial/deployment/jar/index.html[/url] | |
Re: 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] | |
Re: all (choice.equals("xxx")) change to (choice.equalsIgnoreCase("xxx")) | |
Re: 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 … | |
Re: [url]http://www.java2s.com/Code/Java/Database-SQL-JDBC/JDBCTransaction.htm[/url] | |
Re: SystemTray#SystemTray.getSystemTray(); | |
Re: at the end comings question 1/ why don't use java.util.Date or Calendar ... | |
Re: 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] |
The End.