953 Posted Topics

Member Avatar for sirlink99
Member Avatar for mKorbel
0
204
Member Avatar for caierhui

well, 1/ that's very bad idea create more than one JFrame, replace that with JDialog 2/ that's very bad idea helt lots of JFrames/JDialog at Runtime, replace its contents (switch with JPanel inside) 3/ one JFrame + two max. three JDialog

Member Avatar for mKorbel
0
145
Member Avatar for b1izzard

that's very layz process open/close DB connections repeatedly, for intensive ... just open Db connection on Applications StartUp, and close that with Apps Exit sure there are exists option put conn to the Timer and close that on some time is app is unused

Member Avatar for b1izzard
0
233
Member Avatar for SMITA6076
Member Avatar for n3red

and before that check for null and isEmpty [CODE]if (a != null && a.length() > 0) { // some subString }[/CODE]

Member Avatar for n3red
0
121
Member Avatar for matadori

if TopLayoutContainer [url]http://download.oracle.com/javase/tutorial/uiswing/components/toplevel.html[/url] was already visible 1/ if you want/need to add JComponent(s) to the Container (JPanel, JFrame), then you have call [CODE]someContainersName.add(someJComponetsName); //EDIT corect method is add someContainersName.revalidate(); someContainersName.repaint(); // just in some cases [/CODE] 1/ if you want/need to remove JComponent(s) from the Container (JPanel, JFrame), then you …

Member Avatar for mKorbel
0
2K
Member Avatar for bhdas1

no idea, I never used this JComponents, anyway have look 1/ [url]http://bugs.sun.com/[/url] 2/ check differencies between JDK5 and JDK 6, check JDK6 changeLog , there are lots of changes for parts of APIs 3/ post runnable code here but just contains a.m. decribed JComponents

Member Avatar for mKorbel
0
98
Member Avatar for 24x24

1/ your problem is increasing ball by each collision, then lots of collisions produce new and new and new balls, really you overkill JVM, 2/ output is because you have to loop inside Array, not pure system.o...(myArray)

Member Avatar for 24x24
0
327
Member Avatar for pseudorandom21

agreed with \007, because there is rich support, daily bugs updating, lots of free plugind, endless 3.rd side non-Free plugins with reall support by Author(s), once per year new (really) version Eclipse - required by majorities Codings Companies, supported excelent Teams Codding, only this IDE correctly supported lots of FrameWorks …

Member Avatar for peter_budo
0
302
Member Avatar for private_class_J

hmmm [CODE]textPane.setText(textPane.getText() + "\LineSepartor" + sList.get(i).toString());[/CODE]

Member Avatar for mKorbel
0
111
Member Avatar for dante5458

@ dante5458, we not sent code, google can help you , there are tons of free code, just want to ...

Member Avatar for omar mazen
0
256
Member Avatar for kubiak

[CODE]Font[/CODE] nothing to do with displayed [CODE]Color[/CODE], [CODE]setForeground()[/CODE] is method what you looking for

Member Avatar for kubiak
0
95
Member Avatar for stephen lynch

problem is in the form, please edit your post, select whole Java Code, and select by mouse Code Tags button "[CODE]"

Member Avatar for Dxpat4real
0
230
Member Avatar for Dean_Grobler

I doesn't see any differencies between if - esle if - else and switch- default, nor with performancies, :-) and doesn't call that applications semaphore if contains only 25 methods :-)

Member Avatar for JamesCherrill
0
290
Member Avatar for NPDA

i put that to the google, but nothing really I do't know, nothin with ipv4/ipv6, maybe someone knows but today is still Fri 13th.

Member Avatar for NPDA
0
91
Member Avatar for newbie14
Member Avatar for NormR1
0
182
Member Avatar for muloki

1/ for any animations in Swing (JComponent) is required use of java.swing.Timer, not plain thread (is possible, but with more stuff than ...) 2/ never, really never use in Swing code Thread.sleep(int), EDT issues 3/ look for JLabel plus ImageIcon (similair for JPanel) 4/ painting directly to the JComponent is …

Member Avatar for mKorbel
0
2K
Member Avatar for kesh1000
Member Avatar for mKorbel
0
208
Member Avatar for hfx642

@Ezzaral [CODE]making each of the inner classes static.[/CODE] not sure with that, where you ensure about that, why public static or protected, (maybe final but that refuse my IDE with little bit crypted warning, remove final modifier from class definition)

Member Avatar for hfx642
0
476
Member Avatar for Aepexx

easiest a safier way is [url]http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html[/url] just follows with Example about Number Instance

Member Avatar for mKorbel
0
216
Member Avatar for ridif
Member Avatar for mKorbel
0
176
Member Avatar for tultul

to @stultuske 1st. reply plus more chances raising usage of Java Code Obstrufator correct way is sell service (with support) as sell Sw Licence

Member Avatar for tultul
0
1K
Member Avatar for jet101

if you create simple example that will be conatains only three JComboBox(es), and Db conn will be replaces with data saved into JList or Strins[], then I'll look at ... please edit your post and by mouse select code that you posted and pack that into [CODE] button

Member Avatar for jet101
0
688
Member Avatar for themanman

1/ read tutorial linked by quuba 2/ especially about DefaultTableModel 3/ don't create table inside Sql statement, don't do that 4/ follows with examples from JTable tutorial 5/ read turorial about JDBC [url]http://download.oracle.com/javase/tutorial/index.html[/url] 6/ tons (runnable) example at [url]http://www.java2s.com/[/url] just put those together 7/ search for ResultSetTableModel or TableFromDatabase

Member Avatar for mKorbel
0
351
Member Avatar for aanders5

sometimes, in cases that you import project generated on another PC, whith diferent JDK 1/ righMouseClick on project (root) 2/ on bottom Properties 3/ 2nd. from top Libraries - select instaled Java Platform " JDK (default) or program Files - Java - search in current Java SDK/JDK instalation

Member Avatar for kane06
0
126
Member Avatar for ceyesuma

how you formated input/output Sql query from/to Db, because you can do that with Sql syntax quite confortly, you have to ensure that (not basic stuff, or yes???): - SQL syntax is same for java.util.Date (output and input) - java.util.Date get same value from SimpleDateFormat as received - JFormattedTextField get …

Member Avatar for ceyesuma
0
94
Member Avatar for cretaros

and you didn't talk about what's did you set on DbSide [url]http://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html[/url]

Member Avatar for mKorbel
0
140
Member Avatar for tultul

probably you forget to add these JPanels, there isn't needed call invalidate for already visible Container, but revalidate()+ repaint() could to first parent JPanel

Member Avatar for quuba
0
2K
Member Avatar for sirlink99

never hands up, never surrender, look here this page one man revided nore than 2 Months by hepls lots of Swing Gurus form another JavaForum, [url]http://r0k.us/graphics/SIHwheel.html[/url]

Member Avatar for mKorbel
0
105
Member Avatar for stephenk291

for example [url]http://www.java2s.com/Tutorial/Java/0140__Collections/0500__Collections-Sort.htm[/url]

Member Avatar for javaAddict
0
117
Member Avatar for sirlink99

looks like everything d*i*e*d NOTICE: THIS PROJECT IS INACTIVE (PRACTICALLY DEAD) since late 2006. [url]http://java.sun.com/javase/technologies/desktop/[/url] [url]http://cs.wikipedia.org/wiki/Java_Desktop_System[/url] [url]http://www.java.net/projects/community/138[/url] [url]http://download.oracle.com/javase/6/docs/api/java/awt/Desktop.html[/url]

Member Avatar for ceyesuma
0
217
Member Avatar for saisakthi

hmmm, that's nothing about ignorance, but multimedia and Java going opposite directions, JMF look like as dead stinky fish, maybe searching in history can give you some answer(s) [url]http://forums.oracle.com/forums/category.jspa?categoryID=289[/url]

Member Avatar for quuba
0
245
Member Avatar for dangari

maybe [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html?page=2[/url]

Member Avatar for mKorbel
0
1K
Member Avatar for Dean_Grobler

hmmm I'm not sure if JDK 1.6.015 correcty supported Win7 OS, for further blablablb about that please check requirents [url]http://netbeans.org/community/releases/70/relnotes.html#system_requirements[/url] and [url]http://netbeans.org/community/releases/70/install.html[/url]

Member Avatar for mKorbel
0
270
Member Avatar for stranger_on_way
Member Avatar for Buffalo101

about object destruction but there are some rules about GC, GC'ed are Object that is able to finalize(), for example that not possible with TopLayoutContainers, just dispose();

Member Avatar for mKorbel
0
2K
Member Avatar for cwarn23

orget about IR Camera, because there are lots of many legal restrictions to built-in something similair to reall full size camera (special tax in EU +US), where are you see that, Maybe some C*h*i*n*a shop can sell you chip with optical but you hava to IR light for see more …

Member Avatar for cwarn23
0
227
Member Avatar for sirlink99

or you can try BufferStrategy bs = getBufferStrategy(); Graphics g = bs.getDrawGraphics(); //draw anything bs.show();

Member Avatar for JamesCherrill
0
994
Member Avatar for tultul
Member Avatar for tracieam

there are lots of (newbee)mistakes, to avoid long debate..., better will be compare that with runnable code (with processes mistakes, maybe my helicopter view) [CODE]import java.awt.*; import java.awt.event.*; import java.util.*; import javax.swing.*; public class Face { private final FaceModel model;//The model holds application data and defines the needed behaviour: public …

Member Avatar for tracieam
0
104
Member Avatar for Dean_Grobler

I think that (still)isn't outDated [url]http://download.oracle.com/javase/tutorial/jaxp/index.html[/url] examples on [url]http://www.java2s.com/Code/Java/XML/CatalogXML.htm[/url] or [url]http://www.java2s.com/Tutorial/Java/0440__XML/Catalog0440__XML.htm[/url]

Member Avatar for mKorbel
0
144
Member Avatar for cretaros

question are included weekend and local hollydays??? basically you have (probably) two API java.util.Calendar (allowed increase/decrease Date with integer value) add one day - [CODE]cal.add(Calendar.DATE, +1);[/CODE] and java.util.Date for difference between day (or whate .. with Date & Time) [CODE]private SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); String removeTimeForDateString = sdf.format(######.getDate()); Date …

Member Avatar for mKorbel
0
291
Member Avatar for bharath54321
Member Avatar for bharath54321

[url]http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html[/url] and JDialog@WindowOwner + Modality [url]http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html#jdialogapi[/url]

Member Avatar for mKorbel
0
108
Member Avatar for cretaros

are you heard about Sql Stored Procedures, users permisions, db error logs lots of jokes [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url]

Member Avatar for mKorbel
0
194
Member Avatar for sirlink99

are you sure that that must be done by GridBag, because there are my questions 1/ JComponent placed at botton should be risiziable or not 2/ JComponent placed at top should be risiziable or not add 1) JPanelNo0.setPrefferedSize(new Dimension(x,y)) add JPanelNo0 to JFrame with BorderLaoyut.North add JComponent1 to JPanelNo1 with …

Member Avatar for mKorbel
0
171
Member Avatar for qweewq22

why again add DefaultListModel to JList Edit there must be another problem becuse remove Elment from JList is correct, including test for selectedItem

Member Avatar for JamesCherrill
0
164
Member Avatar for jackmaverick1

yes there exist ClassLoader that returns declaredMethods and declaredField, but its little bit complicated

Member Avatar for jackmaverick1
0
223
Member Avatar for Fumomo

for JComboBox is better (allways) use [url]http://download.oracle.com/javase/tutorial/uiswing/events/itemlistener.html[/url] and to avoid build two or more Tabs with same JComponents (JTabbedPane bugs)

Member Avatar for JamesCherrill
0
743
Member Avatar for mani_1991

not it isn't possible, because Wifi doesn't something with Bluetooth, both has a radio, but different protocol, same is only that they are powered electrically

Member Avatar for mKorbel
0
61

The End.