953 Posted Topics
Re: vertically or horizontally, nobody knows, but there are almanach about layout Managers [url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url] | |
Re: sorry, I hate complicated simple things, nor reinvent the wheel, 1/ calculate averrage daily obligo 2/ apply you interest rate 3/ result is "your wishing" accruals very good examples (excelent descibed)for those average is calculate the average price (buy-sell-buy-sell at diff rates) for f.e. treasury Bonds or Bills (bases from … | |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html[/url] | |
Re: [url]http://www.java2s.com/Tutorial/Java/0240__Swing/StoringvalueinVectorandaddingthemintoJList.htm[/url] | |
Re: please not [CODE]public void paint(Graphics g) [/CODE] but [CODE]public void paintComponent(Graphics g) [/CODE] | |
Re: yes there [url]http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html[/url] | |
Re: right mouse click onto project -> properties -> run -> mainclass | |
Re: @ Ezzaral are you kidding from OP, this thread will be the longiest at all :-) @ sirlink99 let's trying Ezzaral suggestion, now without jokes he's right, GridBaglayout is most complete and very nice LayoutManager, | |
| |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/components/button.html[/url] [url]http://download.oracle.com/javase/tutorial/uiswing/events/actionlistener.html[/url] "But i wonder if there is a simpler way to do that,in case i eg have 40 buttons" if (e.getSource() == myButton) if (e.getSource() == myButton[i]) | |
Re: google can returns tons of runnable code and with strong advices too | |
Re: @ ganesh641 that's excelent words "need", here comings your answer, just assumption is logic ... if you wish OOP then yes, if not then LinearCoding is suportedd too | |
Re: images are changed every second [CODE] th.sleep(1000);[/CODE] isn't correct and good idea use of Thread.sleep(int dealy) for Swing, instead of sleep I'd prefer to use java.swing.Timer | |
| |
| |
Re: add 1/ not possibel, because java.util.Timestamp returns current time add 2/ [CODE]import java.awt.GridLayout; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.SimpleTimeZone; import java.util.TimeZone; import javax.swing.*; import javax.swing.border.TitledBorder; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class TimeZoneSpinners { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { new … | |
Re: I think that this one is good start [url]http://download.oracle.com/javase/tutorial/uiswing/painting/index.html[/url] | |
Re: check this thread, basic examples for paintComponent [url]http://www.daniweb.com/software-development/java/threads/354633[/url] extends your ideas into some of them, beacuse your problem(b) get raised/multiplayed from anywhere, not just from paint Method(s) | |
Re: agreed that's possible, but I think that its ugly, look for JPopupMenu (right MouseClick on selected row) | |
Re: what program reads and send some outPut | |
Re: "\\d" correct way: create JDialog put there JFormattedTextField with NumberFormatter | |
Re: agreed with JamesCherrill but doesn't allows Update just Read (advice) [CODE] ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);[/CODE] | |
Re: download most recent driver, unpack that, read docs, try examples | |
Re: which database Engine you want to connect | |
Re: [CODE] @Override public int compareTo(Coin that) { if (this.value != that.weight) { return -1; } else if (this.value == that.weight) { return 0; } else { return 1; } } [/CODE] | |
Re: declare and initalize variable for mh.offer(4); | |
Re: System.getProperty(), can returns you any accesible enviroments path or variables | |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/components/scrollpane.html[/url] | |
Re: [url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url] that's job for two JPanels | |
Re: @ JamesCherrill really that's excelent point (vote snoorOracle API too), but in other hands I didn't expect that that OP would be (could be is maybe better) playing with Generics ..., <FW>Apache API overRode basic Java API, because lots of Methods are protected in Java API</FW> | |
Re: String str = myCombo.getSelectedItem.toString() | |
Re: on [url]http://jung.sourceforge.net/[/url] you can probably find Documentation (3th. from top) and Examples (4th. from top) and FAQ (7th. from top) | |
Re: what component you're trying to paint, if this Component starts with "J" f.e. JPanel, JLabel ...., then paint methods is wrong, replace that with paintComponent, if you want to overlap Compoents, than you have to set JCopmponent#setOpaque(false); replace Applet with JApplet, because this Components died with unsuported Java 1.4 | |
Re: seems to be correctly answered by aterai [url]http://forums.oracle.com/forums/thread.jspa?threadID=2195339&tstart=0[/url] | |
Re: my questions are: 1/ 3 x text areas == JTextArea || 3 x text areas != JTextArea 2/ text and images is some mixed Object, are you draw words, write words to the image, or you want to synchronize some text in one file with image saved in 2nd. 3/ … | |
![]() | Re: look at Set its doesn't allows duplicates, read API how to identify possible duplicate [url]http://download.oracle.com/javase/tutorial/collections/interfaces/index.html[/url] |
Re: <sorry> no, not, never, why catch something what exatctly exists, that's limited with nonsense, why you created any Integer Array, and into others method, viod or class you must ...., that's little bit stupid, isn't it </sorry> you have to be ensure and to pass your Integer range througth all … | |
Re: hmmm why reinvent the weeel, this one has flickering issues too -> Route 66 Follow Me (I think that's withOut public API) sure Google street (GNU or some version of public API) - 3D is allways only 2D plus knowHow, be sure "Java Animations" reqiured healtly dvivers for GPU - … | |
Re: community at [url]www.mysql.com[/url] [url]http://www.java2s.com/Tutorial/MySQL/CatalogMySQL.htm[/url] [url]http://www.java2s.com/Code/SQL/CatalogSQL.htm[/url] | |
Re: most completed still (I think that aren't outdated) should be [url]http://download.oracle.com/javase/tutorial/index.html[/url] because there are some advices about coding and implemnets or extends Java API and its methods hmmm you can use google first for this issue, search for some ExamplesDepots, but be sure that these expamples are (just and only) … | |
Re: [I]Special characters == WhiteSpaces[/I] str = str.trim() | |
Re: I hope that this forum isn't lonely hearts :-) | |
Re: dicussion forums on [url]http://activemq.apache.org/[/url] | |
| |
Re: Collections.sort(arr); //acs Collections.sort(arr, Collections.reverseOrder()); //decs | |
Re: maybe yes, maybe no, everything are shots to the dark that very hard to speak aynthing, post runnable example (just&only) that's shows all above mentioned Object and Listeners, ensure, otherwise waits for someone with magic globe | |
Re: before anything be ensure if you need/want autentifications for SMTP or IMAP or both (gmail knows both standards), (in this case) runnable examples [url]http://www.java2s.com/Code/Java/Email/CatalogEmail.htm[/url] and [url]http://www.java2s.com/Code/Java/Network-Protocol/Email.htm[/url] don't check that (maybe duplicates) [url]http://www.java2s.com/Tutorial/Java/0420__Email/Catalog0420__Email.htm[/url] | |
Re: just about JPopupMenu I'm not sure if is posible invoke JPopupMenu (rightMouseClick) with KeyBindings, if is posible (excluding JTable) i'd prefered JDialog with JButtons, well I tried lots of hack for JPopumMenu, but each has problem with Concurency on EDT if you want to add JPopupMenu correctly, then add its … | |
Re: [CODE]move typeOfTestBox.addActionListener(new ActionListener() { from private void addComponent(JPanel p, Component c, int row, int column) { [/CODE] and place that bellow typeOfTestBox declatations at line 71. maybe for you attack would be bettet implement [CODE] typeOfTestBox.addItemListener(new ItemListener() {[/CODE] [url]http://download.oracle.com/javase/tutorial/uiswing/components/combobox.html[/url] |
The End.