953 Posted Topics

Member Avatar for sirlink99

JComponents must returns ScreenSize, not JFrame#setSize(); 1/ don't use setSize() 2/ don't usee setBounds() 3/ JFrame#setSize() is including "blueColoredToolbar" + EtechedBorder that came from Native OS 4/ set preferredSize ... 5/ I talking about that in your thread ... 6/ setSize() and setBounds() multiplayed spend time needed for start -> …

Member Avatar for JamesCherrill
0
149
Member Avatar for Majestics

that isn't menu :-) that Dockable Panel, nothing complicated by using standard LayoutManager and [URL="https://github.com/Insubstantial"]Insubstantial[/URL] has (I love that) office2007lookandfeel, but this LaF is very sensitive for EDT, for JTable, JTree you have to look for invokeAndWait instead of invokeLater, EDIT: suck at first code source, folder test -> class …

Member Avatar for Majestics
0
215
Member Avatar for wonder_laptop

maybe I talking with you 3rd.times (posts on another forum), but that is very old API == page botton displayed Last modified 14 March, 2002, just question: are you able to works with Aglets examples, aren't you

Member Avatar for ahmed0725
0
225
Member Avatar for lena1990

before post the code here please look [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html"]here[/URL] and [URL="http://www.java2s.com/Code/Java/Swing-JFC/Table.htm"]here[/URL] and [URL="http://www.exampledepot.com/egs/javax.swing.table/pkg.html"]here[/URL]

Member Avatar for Majestics
0
125
Member Avatar for jhopwood

your problem is in MovieDirector class constructor takes wrong parameters [CODE]public MovieDirector(String Title, int Units, double ItemNumber, double Price, String Director) { [/CODE] change [CODE]double ItemNumber[/CODE] to the [CODE]int ItemNumber[/CODE]

Member Avatar for Majestics
0
7K
Member Avatar for laguardian

that isn't code, there I missed definitions for JTable, JComboBox, whatever about Swing and your code logics [CODE]myTable.getModel().setValueAt(row, column, value);[/CODE]

Member Avatar for mKorbel
0
124
Member Avatar for Pytho

and now I need to say that without posting here (your) runnable code is everything in academic ..., and with some important mistakes

Member Avatar for JamesCherrill
0
176
Member Avatar for Vaspar

please post here runnable code that contains per once of JComponents ..., be sure that by creating this example you'll find this mistake

Member Avatar for Vaspar
0
245
Member Avatar for NeoKunal

you have to Encode your outPut/input Straem with proper Charset [CODE]byte input/outputSteam[] = myString.getBytes("ISO-XXXX-X"); String myEncodedString = new String(input/outputSteam, "ISO-XXXX-X"); [/CODE] //NOTE X == equals Numbers represents chinese Charset from Native OS

Member Avatar for mKorbel
0
2K
Member Avatar for ayas

[CODE]private Object[][] data = { {"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true), {"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),{"I1",new Boolean (false) , new Boolean (true), new Boolean (true), new Boolean (true),{"I1",new Boolean (false) , new Boolean (true), new …

Member Avatar for mKorbel
0
121
Member Avatar for phoenx
Member Avatar for phoenx
0
213
Member Avatar for Xrrak

and start with this idea (don't forget that all about parsing double value from JComboBox is endless bullS***) from [url]http://download.oracle.com/javase/tutorial/uiswing/index.html[/url] [CODE]import java.awt.*; import java.text.NumberFormat; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.math.RoundingMode; import javax.swing.*; public class MortgageCalc extends JFrame { //This creates all the buttons and windows private static final long serialVersionUID …

Member Avatar for quuba
0
124
Member Avatar for sirlink99

basically this code works src ---> myFolder ------------> myClassWhichLoadsImage ---> myFolder.Images --------------------> someImage.jpg then you can call [CODE]try { image = imageIO.read(myClassWhichLoadsImage.class.getResource( "Images/someImage.jpg") } catch (IOException ex) { Logger.getLogger(myClassWhichLoadsImage.class.getName()). log(Level.SEVERE, null, ex); } frame.setIconImage(image);[/CODE]

Member Avatar for sirlink99
0
1K
Member Avatar for carloskire

and if you change [CODE]File file = new File("/disk/ip/ipgal/projects");[/CODE] to [CODE]File file = new File("\\disk\\ip\\ipgal\\projects");[/CODE] network access required [CODE]File file = new File("\\\\disk\\ip\\ipgal\\projects");[/CODE]

Member Avatar for carloskire
0
505
Member Avatar for harinath_2007

[CODE]int c=10; while(c<10) { System.out.println("loop inside No -> " + c); c++; } System.out.println("loop over.");[/CODE]

Member Avatar for harinath_2007
-1
229
Member Avatar for iparanjpe

you have to buy the access to the real Market (MarkToMarket) Prices, Bloomber is best for Securities at all, Reuters, lots of Banks, CapitalMarkets sells these Market Data, Indicators, Assumptions, another solutions are with non-market prices, only free and correct are closing/opening daily prices from Boerse or by some of …

Member Avatar for peter_budo
0
109
Member Avatar for Majestics

don't do that, you have to calculate with byte lenght in compiled code, in Java this warnigs starting if you received error about Incompatible magic value, and another ZOO, but in other hands if you'll will learn more about PL's, then you'll able to change all variables declared (valid for …

Member Avatar for NormR1
0
114
Member Avatar for sim_pack

@Muralidharan.E only changed your all Un-Swing *** [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Test_event_on_button extends javax.swing.JFrame { private static final long serialVersionUID = 1L; private JButton jbutton1; private JTextField jtextfield; private int count; public Test_event_on_button() { setLayout(new GridLayout(0, 1, 5, 5)); jbutton1 = new JButton("Button to handle both …

Member Avatar for mKorbel
0
470
Member Avatar for sirlink99

nothing changed only created/added Swing rulles [CODE]import javax.imageio.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; public class CaptureScreen implements ActionListener { private JFrame f = new JFrame("Screen Capture"); private JPanel pane = new JPanel(); private JButton capture = new JButton("Capture"); private JDialog d = new JDialog(); private …

Member Avatar for mKorbel
0
197
Member Avatar for ARaza110

crossposted [url]http://stackoverflow.com/questions/6936565/mouserotate-using-java3d[/url]

Member Avatar for hfx642
0
201
Member Avatar for ians_acess

[CODE]"<html> Some notice: <br>" + " - some text <br>" + " - some text <br>" + " - some text </html> "[/CODE]

Member Avatar for NormR1
0
180
Member Avatar for J-Dub

now it will be Swing's complaint (some required changes) [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TicTacToe extends JFrame { private JMenuBar MenuBar = new JMenuBar(); private JFrame frame = new JFrame(); private static final long serialVersionUID = 1L; private JMenu File = new JMenu("File"); private JMenu Help = …

Member Avatar for mKorbel
0
4K
Member Avatar for gunjannigam

crossposted [url]http://stackoverflow.com/questions/6966503/validation-through-jformattedtextfields-in-java[/url]

Member Avatar for mKorbel
0
277
Member Avatar for Aviras
Member Avatar for Majestics

create new logics JScroolPane - > JPanel - > JLabel -> ImageIcon, then just swith Image in JLabel then call revalidate(); and repaint(), nothing else JLabel is in this case better as JPanel

Member Avatar for SamuelD
0
313
Member Avatar for rotten69

I never ever down-voted on all forums where I member of, you are 1st. candidate during this month, are you thinking about that all posters in this thread just wasted her/his time for your ...., everything is wrong

Member Avatar for rotten69
0
10K
Member Avatar for Jessurider

as @JamesCherrill mentioned you have to look for Rendered, but that only to display JButton in the JTable, for invoke + Listening expected Action you have to look at TebleCellEditor, that very easy for JComponents as JButton, JComboBox, JtextField, JFormattedTextField, another JComponents required more of ..., examples [URL="http://www.exampledepot.com/egs/javax.swing.table/pkg.html"]here[/URL] and [URL="http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm"]here[/URL]

Member Avatar for JamesCherrill
0
135
Member Avatar for PROgamer

at first of all put here [URL="http://download.oracle.com/javase/tutorial/uiswing/components/formattedtextfield.html"]Use Formatted Text Fields[/URL] instead of JTestField set NumberFormat for example [CODE]NumberFormat formTextFieldFormat = NumberFormat.getNumberInstance(); formTextFieldFormat.setMinimumFractionDigits(2); formTextFieldFormat.setMaximumFractionDigits(2); formTextFieldFormat.setRoundingMode(RoundingMode.HALF_UP); . .. ... ... JFormattedTextField formTextField = new JFormattedTextField(formTextFieldFormat); [/CODE] don't forget to set minimal ammout [CODE]formTextField.setValue(amount);[/CODE] nothing complicated as you can see (for example) [CODE]import …

Member Avatar for PROgamer
0
241
Member Avatar for Majestics

[url]www.google.com[/url], not sure if without official API is there another way without performance leaks, anyway interesting question, could you post your result from that...

Member Avatar for Majestics
0
101
Member Avatar for cozmo87

don't do it this way, that job for prepareRenderer, the best [URL="http://tips4java.wordpress.com/2010/01/24/table-row-rendering/"]examples[/URL] for Swing, btw prepareRenderer covered with its funcionalities [CODE]getTableCellRendererComponent[/CODE] too, don't declare JLabel (if there isn't TableCellEditor), all Renderers in Swing by defalut returns JLabel as J/Component just declare [CODE]setHorizontalAlignment(SwingConstants.RIGHT); setForeground(new Color(181, 78, 93)); .....[/CODE] really working example …

Member Avatar for mKorbel
0
2K
Member Avatar for laguardian

2nd suggestion by @JamesCherrill is correct way re-open and re-use Container, there isn't, btw dispose() works only in Cartoons, only hide COntainer as setVisible(false); nothing else,

Member Avatar for laguardian
0
139
Member Avatar for conanzz

[URL="http://download.oracle.com/javase/tutorial/uiswing/components/label.html"]JLabel[/URL] is best of ways how to display [URL="http://download.oracle.com/javase/tutorial/uiswing/components/icon.html"]Icon or ImageIcon[/URL]

Member Avatar for conanzz
0
206
Member Avatar for Mona Ali

hmmm [URL="http://download.oracle.com/javase/tutorial/deployment/applet/security.html"]What Applets Can and Cannot Do[/URL]

Member Avatar for Mona Ali
0
503
Member Avatar for 47pirates

that's very good idea, but would be impossible in case that JTable has used RowSorter or RowFilter 1/ if isn't there implemented and used RowSorter or RowFilter, add TableModelListener, 2/ move TableHeader (then you lost) from Top to the JTable's bottom and if isn't there implemented and used RowSorter or …

Member Avatar for mKorbel
1
182
Member Avatar for 47pirates

for why reason(s) on this world you needed something as MouseListener in TableCell please check [URL="http://download.oracle.com/javase/tutorial/uiswing/components/table.html"]tutorial[/URL] and to try examples for [URL="http://www.java2s.com/Code/Java/Swing-JFC/CatalogSwing-JFC.htm"]JTable[/URL], then ask queston with posting concrete code

Member Avatar for mKorbel
0
92
Member Avatar for kalodakilla

[url]http://download.oracle.com/javase/tutorial/uiswing/components/applet.html[/url] [url]http://download.oracle.com/javase/tutorial/deployment/applet/index.html[/url] [url]http://www.java2s.com/Code/Java/Swing-JFC/Applet.htm[/url]

Member Avatar for NormR1
0
294
Member Avatar for Majestics

add some code in Html for Icon in JToolTip, but JTooltip is so terrible Component, check how ToolTipManager works

Member Avatar for mKorbel
0
102
Member Avatar for nsyncpilu

I dont understand your topic is about TableModelListener and your code shows Action from JButton's mouseclick please tell us "What do you really want to" 1/ listening for changes into JTable and any changes would be saved to the databases 2/ save changes manually by clicking to the JButton

Member Avatar for nsyncpilu
0
464
Member Avatar for ARaza110

I don't know something about that but this link maybe .... [url]http://www.java2s.com/Code/Java/3D/Catalog3D.htm[/url]

Member Avatar for mKorbel
0
149
Member Avatar for Dhanesh10
Member Avatar for Dhanesh10
0
119
Member Avatar for sirlink99

I'm not sure (and i'm against to use Thread.sleep(int)) in Swing code, anyway in your previous thread was suggested somenthig about javax.swing.Timer 1/ look for myTimer.restart(); in your case (KeyListener) 2/ look for KeyBinding, is more confortable than KeyListener 3/ for inspiration, very simple example [CODE]import java.awt.Color; import java.awt.Dimension; import …

Member Avatar for sirlink99
0
370
Member Avatar for mydreamgirl

by defalut java.mail.API supported only ASCII chars, [url]http://stackoverflow.com/questions/4725075/javax-mail-problem-decoding-subject[/url] [url]http://stackoverflow.com/questions/3451256/javamail-changing-charset-of-subject-line1[/url]

Member Avatar for mydreamgirl
0
1K
Member Avatar for sirlink99
Member Avatar for sirlink99

really 288 posts and again and again with empty question, here is your example, please would be possible to demostate your hidden/secret problem on that [CODE]import java.awt.*; import java.awt.event.*; import java.awt.event.ActionListener; import javax.swing.*; //http://stackoverflow.com/questions/2228735/how-do-i-fade-an-image-in-swing/2234020#2234020 public class AlphaTest extends JPanel implements ActionListener { private static final Font FONT = new Font("Serif", …

Member Avatar for sirlink99
0
202
Member Avatar for hfx642

@hfx642 good question +1 but SpinnerModel has nothing to do with JSpinner' View, there you have to change Font, its size ... to the JButton size(s) that's depend of JSpinner size, or are you meaning triagle JButtons Icon ??? anyway there are two way 1/ extract all JComponents from JSpinner …

Member Avatar for hfx642
1
1K
Member Avatar for conanzz
Member Avatar for mKorbel
0
299
Member Avatar for nsyncpilu

remove KeyListener, [url]http://www.java2s.com/Tutorial/Java/0260__Swing-Event/ListeningtoJTableEventswithaTableModelListener.htm[/url]

Member Avatar for nsyncpilu
0
1K
Member Avatar for mattyg1192003

down-voting == I'm disagree with your answer, nothing else, up-voting == your answer is excelent, nothing else, then what's matter about points score, talking about nothing on all forums where I member of, only I'm so too long time here, I have deepest knowledge about topics, then I obtain some …

Member Avatar for mKorbel
0
138
Member Avatar for fcaoile

@NormR1 javax.swing.timer is correct suggestion, for clarifications, :-) "don't use Thread.sleep(int) in Swing code, don't use Thread.sleep(int) outside Thread, Executor ... :-), because in Swing code block EDT, and if there runs some BackGround Task/Thread/SwingWorker on separate thread then you have to calculate with unexpected output to the GUI by …

Member Avatar for mKorbel
0
2K
Member Avatar for hatebin

always you have check before if SubString cursor != or > myString.lenght()

Member Avatar for JamesCherrill
0
139

The End.