953 Posted Topics

Member Avatar for penguino138

vertically or horizontally, nobody knows, but there are almanach about layout Managers [url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url]

Member Avatar for penguino138
0
185
Member Avatar for dawnoflife

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 …

Member Avatar for mKorbel
0
94
Member Avatar for Naqib

[url]http://download.oracle.com/javase/tutorial/uiswing/events/keylistener.html[/url]

Member Avatar for Naqib
0
78
Member Avatar for liftthis

[url]http://www.java2s.com/Tutorial/Java/0240__Swing/StoringvalueinVectorandaddingthemintoJList.htm[/url]

Member Avatar for Ezzaral
0
99
Member Avatar for paycity

please not [CODE]public void paint(Graphics g) [/CODE] but [CODE]public void paintComponent(Graphics g) [/CODE]

Member Avatar for paycity
0
1K
Member Avatar for I<LateNupurGuha
Member Avatar for bharath54321

yes there [url]http://download.oracle.com/javase/tutorial/uiswing/components/textarea.html[/url]

Member Avatar for mKorbel
0
67
Member Avatar for suncica2222
Member Avatar for sirlink99

@ 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,

Member Avatar for sirlink99
0
7K
Member Avatar for Amillia89
Member Avatar for chester1908

[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])

Member Avatar for chester1908
0
416
Member Avatar for VipinDugaya
Member Avatar for mKorbel
0
60
Member Avatar for ganesh641
Re: java

@ 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

Member Avatar for Sadun89
1
120
Member Avatar for hao90

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

Member Avatar for JamesCherrill
0
120
Member Avatar for jackmaverick1
Member Avatar for JamesCherrill
0
95
Member Avatar for turt2live
Member Avatar for TheWhite

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 …

Member Avatar for JamesCherrill
0
5K
Member Avatar for penguino138

I think that this one is good start [url]http://download.oracle.com/javase/tutorial/uiswing/painting/index.html[/url]

Member Avatar for penguino138
0
129
Member Avatar for gedas

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)

Member Avatar for gedas
0
105
Member Avatar for bharath54321

agreed that's possible, but I think that its ugly, look for JPopupMenu (right MouseClick on selected row)

Member Avatar for mKorbel
0
130
Member Avatar for tmcculloch
Member Avatar for xanawa

"\\d" correct way: create JDialog put there JFormattedTextField with NumberFormatter

Member Avatar for xanawa
0
77
Member Avatar for kvskchaitanya

agreed with JamesCherrill but doesn't allows Update just Read (advice) [CODE] ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);[/CODE]

Member Avatar for kvskchaitanya
0
169
Member Avatar for Joslup
Member Avatar for bhallarahul
Member Avatar for Alpdog14

[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]

Member Avatar for JamesCherrill
0
183
Member Avatar for anders10
Member Avatar for Dean_Grobler
Member Avatar for mKorbel
0
261
Member Avatar for AaronLLF

[url]http://download.oracle.com/javase/tutorial/uiswing/components/scrollpane.html[/url]

Member Avatar for mKorbel
0
305
Member Avatar for jabanista

[url]http://download.oracle.com/javase/tutorial/uiswing/layout/index.html[/url] that's job for two JPanels

Member Avatar for jabanista
0
1K
Member Avatar for terexberd

@ 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>

Member Avatar for terexberd
0
213
Member Avatar for jet101
Member Avatar for titan5

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)

Member Avatar for titan5
0
163
Member Avatar for sirlink99

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

Member Avatar for sirlink99
0
458
Member Avatar for Tazsweet19

seems to be correctly answered by aterai [url]http://forums.oracle.com/forums/thread.jspa?threadID=2195339&tstart=0[/url]

Member Avatar for Tazsweet19
0
144
Member Avatar for WolfShield

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/ …

Member Avatar for sourabh17
0
155
Member Avatar for kris0r

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]

Member Avatar for mKorbel
0
514
Member Avatar for kukuruku

<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 …

Member Avatar for mKorbel
0
106
Member Avatar for cwarn23

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 - …

Member Avatar for mKorbel
0
177
Member Avatar for sj5536

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]

Member Avatar for mKorbel
0
154
Member Avatar for susheelsundar

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) …

Member Avatar for jwenting
0
103
Member Avatar for Skyelher
Member Avatar for Skyelher
0
172
Member Avatar for stupidbumbum
Member Avatar for solomon_13000
Member Avatar for mKorbel
0
134
Member Avatar for snehalj
Member Avatar for mKorbel
0
98
Member Avatar for churva_churva

Collections.sort(arr); //acs Collections.sort(arr, Collections.reverseOrder()); //decs

Member Avatar for javaAddict
0
138
Member Avatar for sciprog1

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

Member Avatar for sciprog1
0
157
Member Avatar for harinath_2007

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]

Member Avatar for mKorbel
0
250
Member Avatar for rohit2

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 …

Member Avatar for mKorbel
0
186
Member Avatar for MWE_QUE

[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]

Member Avatar for MWE_QUE
0
145

The End.