Problem after over riding paintComponent() method

I am over riding the paintComponent() method for a button to show the text in 2 lines. But when I invoke setEnabled(false) on the button, the button is getting disabled but the text is not.
Could any one please let me know how to do that.
The code for the paintComponent() method is pasted for reference
protected void paintComponent(Graphics g) {
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
int w = getWidth();
int h = getHeight();
FontMetrics fm = g.getFontMetrics();
int textw1 = fm.stringWidth(text1);
int textw2 = fm.stringWidth(text2);
FontRenderContext context = g2.getFontRenderContext();
LineMetrics lm = getFont().getLineMetrics(text1, context);
int texth = (int)lm.getHeight();
prefHeight = texth;
int x1 = (w - textw1) / 2;
int x2 = (w - textw2) / 2;
int th = (texth * 2);
int dh = ((h - th) / 2);
int y1 = dh + texth - 3;
int y2 = y1 + texth;
// Draw texts
g.setColor(getForeground());
g.drawString(text1, x1, y1);
g.drawString(text2, x2, y2);
regards,
shantanu

Hi,
Thanks for advices, I solved the problem...it was simplier than i thought. When the g.drawImage(.... is called ) i just added Thread.sleep( time ) after that line. This gives the sound therad time to play the sound without interrput and time to main thread to handle the image. All works now pretty much as i thought, except when JFrame is overlapped the image is not drawn again...this can be corrected ( maybe?)by adding windoslistener and implement the methods in that inteface and make some repainting in different situations. But cause you gave me the magic work Thread priority I hox! the problem, so here goes 10 duke dollars.

Similar Messages

  • Over riding static methods

    hi i wrote two static methods with same signatures in two different classes. i know that static methods never override.but observe this code..
    class staticoverload1
    static void display()
                   System.out.println("i am from first display");
    class staticoverload2 extends staticoverload1
         static int a=10;
         static void display()
              staticoverload1.display();
              System.out.println("the value of x is:"+a);
    class staticoverload
         public static void main(String args[])
              staticoverload2 s1=new staticoverload2();
              s1.display();
    i got output as follows:
    i am from first display
    x value is :10
    in the above problem over riding is happened or not

    Please post your code in code tags.
    s1.display();
    Don't call static methods on objects. Tis ugly. But it will use the type of the reference.
    class Test {
         public static void display() {
              System.out.println("Test");
         public static void main(String[] argv) {
              Test t = new Test2();
              t.display(); // Prints "Test". Even if you set it to null.
    class Test2 extends Test {
         public static void display() {
              System.out.println("Test2");
    }Finally this should have been posted in New To Java.

  • PaintComponent method problems...

    Hi, I am developing an game application ( just for fun ) and I have a huge problem with paintComponent method. I Have a class ImagePanel that extends JPanel class. The ImagePanel class overrides the paintComponent method and paintChildren method ( since i have added components inside the JPanel also these must be painted ). The ImagePanel is instantied in my main class IntroView which extends JFrame where it's added. Now when the IntroPanel is created i have noticed that the paintComponent and paintChildren method is called all over again . I Have a soundclip playing in background in it's own thread and this continously paintComponent method call causes the sound clip to break off in few seconds. I Have tried to use JLabel instead of JPanel, but then the image is not shown( alltougth the methods are called only once ). I Have also tried next code to get rid of continous paintComponent call
    ...from ImagePanel class
    ImagePanel extends JPanel.....
    public final void paintComponent( Graphics g )
    if( firstTime )
    super.paintComponent( g );
    g.drawImage( myImage, 0, 0, this );
    firstTime = false;
    public final void paintChildrens( Graphics g )
    if( paintChildren )
    super.paintChildren( g );
    add( startLabel );
    add( optionsLabel );
    paintChildren = false;
    public boolean isOpaque()
    return true;
    Now the paintComponent and paintChildren is called only once. There is still a "little problem" since the paintComponent doesen't paint the image, it paints only the background( I think g.drawImage(...) didint have time to paint the image? ). Also the labels added in paintChildren method are not shown. Sounds paly now just fine.This situation makes me grazy. Please consult me with this problem.....i can surely send also the whole source if needed. There is no effect if I change isOpaque to true or false.

    Hi,
    Thanks for advices, I solved the problem...it was simplier than i thought. When the g.drawImage(.... is called ) i just added Thread.sleep( time ) after that line. This gives the sound therad time to play the sound without interrput and time to main thread to handle the image. All works now pretty much as i thought, except when JFrame is overlapped the image is not drawn again...this can be corrected ( maybe?)by adding windoslistener and implement the methods in that inteface and make some repainting in different situations. But cause you gave me the magic work Thread priority I hox! the problem, so here goes 10 duke dollars.

  • TableBorder after overwrite paintComponent Method

    Hello,
    I created my own TableCellRenderer and overwrite the paintComponent() method to rotate the content in the header of my JTable.
    Now the TableHeader has no borders anymore. I tried to set the border again, but nothing solved my problem. I tried it in all classes to set the border.
    Anyone an idea how to get the borders back in the tableheader?
    Here's the Code:
    ----------------------------- class RowHeaderTable -----------------------------
    import java.awt.*;
    import javax.swing.*;
    public class RowHeaderTable extends JFrame {
         private static final long serialVersionUID = 1L;
         public RowHeaderTable() {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              TableModel tm = new TableModel();
              // Create a column model for the main table. This model ignores the first
              // column added, and sets a minimum width of 150 pixels for all others.
              HeaderTableColumnModel colMod = new HeaderTableColumnModel();
              // Create a column model that will serve as our row header table. This
              // model picks a maximum width and only stores the first column.
              BodyTableColumnModel rowHeaderModel = new BodyTableColumnModel();
              JTable jt = new JTable(tm, colMod);
              Dimension d = jt.getTableHeader().getPreferredSize();
              d.height = 80;
              d.width = 1000;
              jt.getTableHeader().setPreferredSize(d);
              // Set up the header column and get it hooked up to everything
              JTable headerColumn = new JTable(tm, rowHeaderModel);
              jt.createDefaultColumnsFromModel();
              headerColumn.createDefaultColumnsFromModel();
              // Make sure that selections between the main table and the header stay
              // in sync (by sharing the same model)
              jt.setSelectionModel(headerColumn.getSelectionModel());
              // Make the header column look pretty
              //headerColumn.setBorder(BorderFactory.createEtchedBorder());
              headerColumn.setBackground(jt.getTableHeader().getBackground());
              headerColumn.setColumnSelectionAllowed(false);
              headerColumn.setCellSelectionEnabled(true);
              // Put it in a viewport that we can control a bit
              JViewport jv = new JViewport();
              jv.setView(headerColumn);
              jv.setPreferredSize(headerColumn.getMaximumSize());
              // With out shutting off autoResizeMode, our tables won't scroll
              // correctly (horizontally, anyway)
              jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
              // We have to manually attach the row headers, but after that, the scroll
              // pane keeps them in sync
              JScrollPane jsp = new JScrollPane(jt);
              jsp.setRowHeader(jv);
              jsp.setCorner(ScrollPaneConstants.UPPER_LEFT_CORNER, headerColumn.getTableHeader());
              getContentPane().add(jsp, BorderLayout.CENTER);
         public static void main(String args[]) {
              /*try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch (ClassNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (InstantiationException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IllegalAccessException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (UnsupportedLookAndFeelException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              RowHeaderTable rht = new RowHeaderTable();
              rht.setTitle("Fenstertitel");
              rht.setSize(500, 480);
              rht.setLocation((rht.getToolkit().getScreenSize().width/2)-(rht.getSize().width/2), (rht.getToolkit().getScreenSize().height/2)-(rht.getSize().height/2));
              rht.setVisible(true);
    }----------------------------- class RotatedTableCellRenderer -----------------------------
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.geom.AffineTransform;
    import javax.swing.JLabel;
    import javax.swing.JTable;
    import javax.swing.UIManager;
    import javax.swing.table.TableCellRenderer;
    public class RotatedTableCellRenderer extends JLabel implements TableCellRenderer {
         private static final long serialVersionUID = 1L;
         protected int m_degreesRotation = -90;
         public RotatedTableCellRenderer(int degrees) {
              m_degreesRotation = degrees;
         public Component getTableCellRendererComponent(JTable table, Object value,
                   boolean isSelected, boolean hasFocus, int row, int column) {
              this.setToolTipText(value.toString());
              if(value.toString().length()>=15){
                   this.setText(value.toString().substring(0, 12) + "...");
              else {
                   this.setText(value.toString());
              this.setFont(new Font(this.getFont().getFamily(), Font.PLAIN, 12));
              return this;
         public void paintComponent(Graphics g) {
              Graphics2D g2 = (Graphics2D)g;
              g2.setClip(0,0,this.getWidth(),this.getHeight());
              g2.setColor(Color.BLACK);
              AffineTransform at = new AffineTransform();
              at.setToTranslation(this.getWidth(), this.getHeight());
              g2.transform(at);
              double radianAngle = ( ((double)m_degreesRotation) / ((double)180) ) * Math.PI;
              at.setToRotation(radianAngle);
              g2.transform(at);
              g2.drawString(this.getText(), 3.0f, -((this.getWidth()/2)-3));
              super.setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    }----------------------------- class HeaderTableColumnModel -----------------------------
    import javax.swing.table.DefaultTableColumnModel;
    import javax.swing.table.TableColumn;
    public class HeaderTableColumnModel extends DefaultTableColumnModel {
         private static final long serialVersionUID = 1L;
         boolean first = true;
         public void addColumn(TableColumn tc) {
              // Drop the first column . . . that'll be the row header
              if (first) { first = false; return; }
              tc.setPreferredWidth(25);
              tc.setHeaderRenderer(new RotatedTableCellRenderer(-90));
              super.addColumn(tc);
    }----------------------------- class BodyTableColumnModel -----------------------------
    import javax.swing.table.DefaultTableColumnModel;
    import javax.swing.table.TableColumn;
    public class BodyTableColumnModel extends DefaultTableColumnModel{
         private static final long serialVersionUID = 1L;
         boolean first = true;
         public void addColumn(TableColumn tc) {
              if (first) {
                   tc.setMaxWidth(tc.getPreferredWidth());
                   super.addColumn(tc);                         
                   first = false;
    }----------------------------- class TableModel -----------------------------
    import javax.swing.table.AbstractTableModel;
    public class TableModel extends AbstractTableModel{
         private static final long serialVersionUID = 1L;
         String data[] = {"", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t"};
         public String headers[] = {"Row #", "Hier steht der lange Text 1", "Hier steht der lange Text 2", "Hier steht der lange Text 3", "Hier steht der lange Text 4", "Hier steht der lange Text 5", "Hier steht der lange Text 6", "Hier steht der lange Text 7", "Hier steht der lange Text 8", "Hier steht der lange Text 9", "Hier steht der lange Text 10"
                   , "Hier steht der lange Text 11", "Hier steht der lange Text 12", "Hier steht der lange Text 13", "Hier steht der lange Text 14", "Hier steht der lange Text 15", "Hier steht der lange Text 16", "Hier steht der lange Text 17", "Hier steht der lange Text 18", "Hier steht der lange Text 19", "Hier steht der lange Text 20"};
         public int getColumnCount() {
              return data.length;
         public int getRowCount() {
              return 1000;
         public String getColumnName(int col) {
              return headers[col];
         // Synthesize some entries using the data values & the row #
         public Object getValueAt(int row, int col) {
              return data[col] + row;
    Message was edited by:
    S.Beutel

    Thanks for your reply camickr.
    I've been looking into ways around the rendering issues of paintComponent and it is interesting to see some of the methods necessary to overcome this (e.g setOpaque, repaint etc).
    One method I saw was putting the objects you want to draw into a data structure (i.e ArrayList) and then using this to draw multiple objects onto the screen. Thus overcomming the super.paintComponent issue of erasing previous drawings. Is this the "preferred" way or is there a more practical solution.
    Chris.

  • Over riding hashtable get and put method

    Hi all
    Anyone have any idea about over ride HashTable get() and put(). Is it possible to over ride HashTable methods.

    Yes_me wrote:
    I want to change the structure of the java HashTable get and put method. As put method is having two object parameters I want to send one more parameter as String to it. Is it possible to change the structure in this way.What would you want to be returned when calling get()? I would go with the suggestion to create a class to keep that information. If you really want to, you can completely hide that information class inside your extended HashTable. You could create an overloaded put method that takes three parameters and then creates an instance of the information class and put that into the map. If you only want the data for display only, the get method could get the information class mapped to the given key, then simply return a nicely formatted String containing the two values.

  • Overriding paintcomponent method JButton

    Hi,
    I'm trying to make my own buttons (with a JPEG image as template and a string painted on this template, depending on which button it is) by overriding the paintComponent-method of the JButton class, but I still have a small problem. I want to add some mouse-events like rollover and click and the appropriate animation with it (when going over the button, the color of the button becomes lighter, when clicking, the button is painted 2 pixels to the left and to the bottom). But my problem is there is some delay on these actions, if you move the mousepointer fast enough, the pointer can already be on another button before the previous button is restored to its original state. And of course, this isn't what I want to see.
    I know you can use methods like setRollOverIcon(...), but if doing so, I think you need a lot of images ( for each different button at least 3) and I want to keep the number of images to a minimum.
    I searched the internet and these forums for a solution, but I didn't found any. I'm quite sure there is at least one good tutorial on this since I already tried to do this once, but I forgot how to do it, and I can't find the tutorial anymore.
    This is an example of the MyButton-class I already wrote, I hope it clarifies my problem:
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class MyButton extends JButton{
         BufferedImage button = null;
         int x, y;
         String text = "";
         MyButton(String t){
              super(t);
              text = t;
              setContentAreaFilled(false);
              setBorderPainted(false);
              setFocusPainted(false);
              addMouseListener(new MouseListener(){
                   public void mouseClicked(MouseEvent arg0) {
                        x += 2;
                        y += 2;
                   public void mouseEntered(MouseEvent arg0) {
                        //turn lighter
                   public void mouseExited(MouseEvent arg0) {
                        x -= 2;
                        y -= 2;
                   public void mousePressed(MouseEvent arg0) {}
                   public void mouseReleased(MouseEvent arg0) {}
         protected void paintComponent(Graphics g){
              Graphics2D g2d = (Graphics2D)g;
              try{
                   button = ImageIO.read(new File("Red_Button.jpg"));
              }catch(IOException ioe){}
              //Drawing JButton
              g2d.drawImage(button, null, x, y);
              g2d.drawString(text, x+5, y+5);     
    }Thanks in advance,
    Sam

    Okay, thanks, I replaced the image-read-in into the constructor of a JButton, and I think it goes a lot faster now (but that can be my imagination).
    I still use a mouseListener because I have no idea how to use the ButtonModelinterface. I searched to find a good tutorial, but I didn't really find one? Any recommendations (yes, I read the sun-tutorial, but did not find it really explanatory).
    Here's a complete SSCCE (although it isn't really necessary anymore since my main problem seams to be solved):
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class MyButton extends JButton{
         BufferedImage button = null;
         int x, y;
         String text = "";
         public MyButton(String t){
              super(t);
              text = t;
              try{
                   button = ImageIO.read(new File("Blue_Button.jpg"));
              }catch(IOException ioe){}
              setBorderPainted(false);
              addMouseListener(new MouseListener(){
                   public void mouseClicked(MouseEvent arg0) {}
                   public void mouseEntered(MouseEvent arg0) {
                        x += 2;
                        y += 2;
                   public void mouseExited(MouseEvent arg0) {
                        x -= 2;
                        y -= 2;
                   public void mousePressed(MouseEvent arg0) {}
                   public void mouseReleased(MouseEvent arg0) {}
         protected void paintComponent(Graphics g){
              Graphics2D g2d = (Graphics2D)g;
              g2d.drawImage(button, null, x, y);
              g2d.drawString(text, x+25, y+15);     
         public void fireGUI(){
              JFrame frame = new JFrame("ButtonModelTester");
              frame.setLayout(new GridLayout(2,1,10,10));
              frame.add(new MyButton("Test1"));
              frame.add(new MyButton("Test2"));
              frame.setSize(200,100);
              frame.setVisible(true);
         public static void main(String[] args){
              SwingUtilities.invokeLater(new Runnable(){
                   public void run(){
                        new MyButton(null).fireGUI();
    }Thanks,
    Sam
    PS: you mentioned my earlier posts? So they are still somewhere on this forum, because I couldn't find the anymore, they aren't in my watch list. I Checked this since I thought I asked something similar before...

  • Problem with overridding JButton paintComponent

    I have written an extension of JButton that simply paints an octagon on the button:
    package myPackage;
    import javax.swing.JButton;
    import javax.swing.JPanel;
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Polygon;
    import javax.swing.JFrame;
    import java.io.Serializable;
    public class MyButton extends JButton implements Serializable {
    public MyButton() {
    super();
    public void paintComponent(Graphics g) {
    super.paintComponent(g);
    int[] xPoints = new int[9];
    int[] yPoints = new int[9];
    int endX, beginX, endY, beginY;
    super.paintComponent(g);
    int w = getSize().width;
    int h = getSize().height;
    // get the smaller of the two
    int min = (w > h ? h : w);
    System.out.println(w + ", " + h + ", " + min + ", " + getLocation());
    beginX = getLocation().x + (w - min) / 2;
    endX = beginX + min;
    beginY = getLocation().y + (h - min) / 2;
    endY = beginY + min;
    System.out.println(beginX + ", " + beginY + ", " + endX + ", " + endY);
    // Set the proper points to draw a 8 sided polygon
    // These formulas are based on where a point should be
    // proportionally relitive to the starting point (x1,y1)
    // and the ending point (x,y)
    xPoints[0] = (endX - beginX) / 4 + beginX;
    xPoints[1] = (endX - beginX) * 3 / 4 + beginX;
    xPoints[2] = endX;
    xPoints[3] = endX;
    xPoints[4] = (endX - beginX) * 3 / 4 + beginX;
    xPoints[5] = (endX - beginX) / 4 + beginX;
    xPoints[6] = beginX;
    xPoints[7] = beginX;
    xPoints[8] = (endX - beginX) / 4 + beginX;
    yPoints[0] = beginY;
    yPoints[1] = beginY;
    yPoints[2] = (endY - beginY) / 4 + beginY;
    yPoints[3] = (endY - beginY) * 3 / 4 + beginY;
    yPoints[4] = endY;
    yPoints[5] = endY;
    yPoints[6] = (endY - beginY) * 3 / 4 + beginY;
    yPoints[7] = (endY - beginY) / 4 + beginY;
    yPoints[8] = beginY;
    Polygon p = new Polygon(xPoints, yPoints, 8);
    g.setColor(Color.RED);
    g.fillPolygon(p);
    public static void main(String args[]) {
    JFrame jf = new JFrame("Stop Button");
    // change false to true to see it in a JPanel
    if (false) {
    JPanel jp = new JPanel();
    jp.setLayout(new BorderLayout());
    jp.add(new MyButton(), BorderLayout.NORTH);
    jf.add(jp);
    } else {
    jf.add(new MyButton());
    jf.setSize(new Dimension(100, 100));
    jf.setVisible(true);
    This works fine ... until I reference it from a larger program. I used Netbeans 6.1 GUI builder for a more complicated structure. When I run the larger app ... the button is blank. Here's the main part of the code that the builder generated:
    javax.swing.GroupLayout topPanelLayout = new javax.swing.GroupLayout(topPanel);
    topPanel.setLayout(topPanelLayout);
    topPanelLayout.setHorizontalGroup(
    topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGroup(topPanelLayout.createSequentialGroup()
    .addContainerGap()
    .addGroup(topPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
    .addGroup(topPanelLayout.createSequentialGroup()
    .addComponent(stopButton, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)) <---------------------
    .addComponent(tickerField))
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
    .addComponent(srButton)
    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
    .addComponent(channelButton)
    .addGap(14, 14, 14)
    .addComponent(measurementPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
    .addContainerGap())
    I'm using JDK 1.6, and don't have a lot of experience chasing down Swing problems. Could you please make some suggestions as to what I'm doing wrong?? The print statements show me that the paintComponent method is being reached when I move the mouse over the button, but nothing gets drawn!!!
    Thanks in advance for any help you can provide.
    Dwight

    Here's some of your code,
    if (false) {
          JPanel jp = new JPanel();
          jp.setLayout(new BorderLayout());
          jp.add(new MyButton(), BorderLayout.NORTH);
          jf.add(jp);
    } else {
         jf.add(new MyButton());
    jf.setSize(new Dimension(100, 100));In both cases your button is being added to a container using BorderLayout. When the container resizes so to does the button. That's why this works,
    public MyButton() {
         super();
    public void paintComponent(Graphics g) {
         int w = getSize().width;
         int h = getSize().height;
    }Initially MyButton has zero size, but when the frame's size is set the BorderLayout will change the size of MyButton.
    However, with a more complicated GUI and GroupLayout the button may not necessarily change size when the frame's size is set. It may remain at its preferred size - which is zero or close to it (since it has no text or icon). So now all of a sudden getWidth() and getHeight() return zero (or close to it). You need to set an appropriate preferred size
    public MyButton() {
         super();
         setPreferredSize(...);  //<--- add a line like this
    }

  • Multiple Samsung Stratosphere problems after FF1 update

    There have been multiple posts on various issues users have found after the recent Stratopshere FF1 update.  Some were replys to older posts and some only touched on a single issue.  I wanted to consolodate into one thread, and hopefully get teh attention of Verizon to maybe reply here.
    For reference, a lot has been discuss here --> https://community.verizonwireless.com/message/874446
    Summary:  Verizon and Samsung have finally updated the Stratosphere almost 1 year after release.  This updated the phone from Android 2.3.5 to Android 2.3.6.  Going by filename, this is known as the FF1 update.   This update went live at the end of August 2012, and most users were upgraded before mid September 2012.
    There were some noticable changes in this update:
    -Lock screen has changed.  The puzzle piece and glass lock options have been removed.  New options have been added, such as facial recognition unlock.
    -Call answering screen has changed, introducing the option to ignore call with a message.
    -Camera now has digital zoom ability.
    -Ability to uninstall the 2 games the phone comes with (Need for Speed and Lets Golf)
    -Phone icon has changed ever so slightly
    -Wifi icon now included up and down arrows to indicate data is being sent or recieved
    -Wallpaper no longer "stretches" over multiple screens - ie, it no longer scrolls as you move from screen to screen
    -The visual voicemail app has been improved (I have personally not used this feature)
    -Callback number is now supported in text / picture messages
    -Android core OS updated from 2.3.5 to 2.3.6 (both versions are still Gingerbread)
    -Update to how the device deals with the end of scrolling.  It used to rubber-band bounce back, now it will just give a green bar and expand the bar as you scroll.  (I cannot fault Samsung for this change as this was at teh core of an Apple lawsuit and has been changed in newer versions of Android.)
    -(I am sure there are more.  please list any others you may have noticed)
    I have found some problems, and others have confirmed that this is (at least) somewhat widespread:
    -The biggest problem is with wifi connectivity.  Upon an initial connection to wifi, everything works great.  After somewhere between 15minutes and 2 hours, problems start happening.  Its as if the wifi keeps hanging or reconnecting.  Download speeds (tested with the SpeedTest.com app) slow to about one third of normal.  Apps like Facebook that require a constant connection will just time out.
    -It appears the signal strength for 3g and 4g connections is lower.  There are places where I used to get a 4g connection, and now I only get 3g.  Some palces I fall back to just 2g digital.
    Another minor issue i found was with text messages.  When you reply to a message, it no longer automatically focuses the text in the input box.  You have to first click into the box to start typing.  Not a huge deal, but one more step to take over and over.  Minor annoyence.
    At my house, I struggle to get a 3g or 4g signal.  I depend on wifi for my data connection.  So with the wifi connection problem introduced by teh FF1 update, my phone is somewhat useless to me now while at home.  Here are teh troubleshooting steps I have been through so far to attempt to fix the wifi problem:
    -Complete factory reset on my phone.  (did not help)
    -Pull battery and SIM card out of phone for 15 minutes.  (did not help)
    -Went to a Verizon store.  The guy at the store was helpful, and said he also had a Stratosphere and was getting the same wifi problems after the update.  He said all he could do was to send me out a replacement phone. I got the replacement phone, and it had the same problems.
    -I read in multiple palces that Android 2.3.6 has a bug within wifi and DHCP.  Apparently if you have a DHCP lease set to "forever", the phone will keep requesting a new address.  Setting the DHCP server on the router to something like 2 weeks, or using a static IP is supposed to solve this.  I have a NetGear N900 router, and I can not change teh DHCP lease time.  It appears, however, that my router is not sending out "forever" leases.  But just to make sure, I gave my phone a static IP.  (None of these steps made any difference).
    The only thing that temporarily fixes the problem is a reboot of the phone.  This will again give you anywhere from 15min to 2 hours of good wifi use before problems start happening.
    I have now had this update for over a week, and on 2 phones.  I still can't maintain a wifi connection for much longer than 15 minutes without problems starting up.
    I am asking Verizon or Samsung to at least confirm this issue if possible.  Maybe there are newer revs of the Stratopshere hardware that don't have this problem.  Or there is something unique about my (and apparently others) situation.  But it seems like Verizon's current stance is to offer a repalcement phone (as currently all Stratospheres are within their 1 year manufacture warranty as the phone has not been ouy for quite 1 year yet).
    I am asking for a workaround for this problem, or a true fix adressed by a new software update, or at least allow us to roll back to the original Andorid 2.3.5 software.
    I have had my original Stratosphere for almost a year with no wifi problems - then get the FF1 update and have had nothing but problems on 2 different phones.
    Thank you for your time.

    Thanks for starting a comprehensive thread on problems with this update. I want to add one more.
    I have Bluetooth in my car (a 2004 model), and previously the phone has connected to it practically instantly when I start the car. Since the update, I have never been able to connect the phone to the car by Bluetooth. Several times the phone has made a standard notification sound at the moment it should be connecting to Bluetooth, though no notification appears. I have no idea what that could mean.The car's Bluetooth shows up as paired in the list of devices in Settings > Wireless & networks > Bluetooth settings. I haven't seen this widely reported as an update issue, but perhaps some others have experienced it too.
    UPDATE: I finally did some testing, and found that the notification was to signal the extremely brief appearance of a dialog indicating that the car's Bluetooth was requesting a connection. Accepting that request let the phone connect with the car, and calls went to the car's sound system as they should. When I turned the car off and back on (just the electrical system; not wasting any gas on this!), the connection was established immediately, so apparently the acceptance only had to be done once. Nevertheless, it did have to be done, and the dialog notification disappears within seconds. I believe it would have been possible to go into Bluetooth settings and accept the connection request there if I missed the notification; but not seeing the notification, I might not know to do this.
    One further observation: When I turned the phone's Bluetooth off and back on after a connection had been established, leaving the car on the whole time, the two did not reconnect. I believe that may be different from before the update, but I'm not really sure.
    Message was updated by David Rensberger

  • Another major problem after 10.4.8 update

    Hi everyone,
    I've never had any major problem with any Mac OS update yet until I had the crazy idea to install the 10.4.8 update last week. I wish I would have never done this. This is also the first time I wish I had Windows since I can't remember such a big screw up with any Windows update I've seen.
    But back to the problem, after the installation on my old 12" Powerbook (1.33GHz with an additional 1GB of RAM) the system got really slow. The harddisk was accessed all the time, so after reading some forums people said that Spotlight would run a re-index of the database which made sense to me. So I just let it run over night and the next day the permanent HDD access was gone, but whenever I tried to access a folder it took ages (HDD access again...). So I decided to reboot which took about 20 minutes until the desktop fully showed up and was useable. Again, I had HDD access all the time. After two hours or so it stopped again, but as soon as I clicked on something, for example a folder, it started again. At that point the Powerbook was simply not useable anymore because I couldn't even start a program.
    So I start browsing through several forums and many people suggested to re-install the 10.4.8 combo update again. That's what I tried, after a while I could only hear the HDD access running and running. The installer said 29 minutes left and progress bar didn't move any further. I had it running for over a hour like that. I couldn't abort it, I could start no other software, nothing. It still showed 29 minutes and the HDD was accessed all the time.
    So I restarted the Powerbook since this obviously wasn't going anywhere. Apple logo came up, the little gear spinning thing as well and of course I could hear the HDD being accessed. After two hours of doing this I aborted and decided to boot into safe mode to install the combo update. Again, same situation. HDD running like crazy and Apple logo, but no login screen coming up.
    So I decided to boot from the Install disk and have the disc utility check the HDD... but of course after selecting the language and clicking continue at the screen when the HDD first shows up it starts to access the HDD... I can't select the HDD, I can't even get to the DU, nothing. It's been running like that for hours now. It seems like whenever the HDD is involved in something the accessing starts and just keeps running without any result. The HDD is getting very hot already.
    I've never run into such a problem before, so I'm kinda clueless what to do next. I don't mind to reinstall, but I have some files on that HDD that I need (some notes in text files, some emails and so on).
    So at this point I can't boot into OS X to access the HDD and I can't use the installer disk to access DU or even reinstall if I wanted to. I don't think the HDD is broken, this only happened after the 10.4.8 update. It just seems that every HDD access takes hours and hours longer than it should.
    What options do I have to get my data from the disk? I'll try to install OS X to a new external drive tomorrow (need one with firewire first). If that doesn't help I thought about pulling out the HDD from the Powerbook and hook it up to my MacMini or an iMac.
    If anyone has any other suggestion or solved a similar problem before, please let me know.
    Best,
    Stephan

    See my FAQ:
    http://www.macmaps.com/WIFI1048.html

  • Data Migration from 11i to R12 Global - Open POs,lines, receipts & on hand upload, Is it possible to do the onhand qty upload with over riding of all receipts which uploaded against Open PO lines?

    Hi Friends,
    We are in a phase of data migration from 11i to R12 
    I was discussed with client & they wants extraction of all open POs which was generated after 01 Jan 2014 to till date in 11i.
    Condition for open POs is PO qty-received qty=>0
    critical Example for open PO is :PO no: 10 has 4 lines, 3lines full qty has been received & for 1 line partial qty(say 50 out of 100) received.
    in this case he wants in R12 uploading as PO no:10 should entered as open PO with all 4lines & 3 lines complete receipt should be done, for 4th line partial qty i.e 50 should be received.
    the question is if we upload on hand qty first, then open POs & receipts, it will increase the onhand qty in new system(mismatch of on hand qty's 11i to R12) 
    Is it possible to do the onhand qty upload with over riding of all receipts which uploaded against Open PO lines.
    Or Please advice best solution.
    Thanks & Regards
    Giri

    adetoye50 wrote:
    Dear Contacts Journal Support Team,
    FYI, this is a user to user support forum.  You are NOT addressing Apple here.
    Honestly, I doubt anyone is really going to take the time to read the novel you have written.

  • Iphone 4 network problems after 5.1.1 -

         I'm wondering if others are having problems after updating to IOS 5.1.1. My Iphone 4 is constantly jumping from having 5 bars to 1, then saying it has no service for hours. I have gotten numerous messages saying MMS requires your phone number, after trying to enter my phone number it wouldn't save. A message saying that no calls can be made and the phone needs to be restored popped up, I restored the phone and the same problems still occur.

    Restore it as a new device. Do NOT restore your backup. It's possible something there is corrupt and keeps coming back when you restore.
    Set it up as new and test it out. See how it bahaves. If it's OK, re-install your apps (again, do not restore the backup, just re-install them) and sync your media over.
    If it's not better after restoring it as a new phone, make an appointment at the genius bar.

  • Problems after upgrade bios to v4.3 - P67A-GD65

    Hi to everybody,
    I was having a problems after upgrade bios to v4.3 of my mainboard P67A-GD65.
    After upgraded bios version (FW) its interface was changed and seemed better. also some specifiactions upgraded that i am now able to follow information of bios in my windows. with Control Center.
    1) first of all after bios upgrade XMP memory section can only be enable şf ş choose OC geniue on. but with this my cpu warm till 98C degree. because i have only stock cpu cooler of intel.
    in normal mode xmp can not be activated so that my memory that corsair vengeance dd3 1600mhz works at 1333mhz only.
    Also there was information about what is new in this version of bios fw as:
    - Enhanced PCI-E display card performance.
    - Improved memory compatibility.
    2) second problem that i have i wanted to turn cpu leds which were located above cpu slot blue leds. once i turn them off and it is ok. but when shutdown computer and restart it turn on itself.
    so may be there have benn occured a problem that mb can not save edited settings correctly?
    3) For last i could not find Winki 3 OS/linuz anywhere is there a link to it to integrate to my mb?
    Thanks for your replies from now on.
    Greetings.

    Quote from: momosala on 02-April-13, 17:54:22
    I think you had better to flash back to beta 4.39 bios, here : https://forum-en.msi.com/index.php?topic=164135.msg1214789#msg1214789
    And use and install on USB key MSI Forum HQ USB flashing tool from here : https://forum-en.msi.com/index.php?topic=108079.msg800577#msg800577
    Flash using method 1.
    And tell us if that works.
    thank you for reply that fast i will try asap and tell here.
    Btw, have you ever face a problem as i wrote above?

  • TS4088 why is there a limit on 3 years? it should be all the MacBook Pro mid 2010 with symptoms, there should get their logic board changed for free, mine mac is 3 month late and i had this problem for over a year, but i first saw this article today :(

    it should be all the MacBook Pro mid 2010 with symptoms, there should get their logic board changed for free, mine mac is 3 month late and i had this problem for over a year, but i first saw this article today

    Hey Clintonfrombirmingham
    I called Apple technical support in Denmark, but with no positive reply.
    She couldn't do anything, and said that They had sent a recall Email about the problem and with their offer to repair the Macbook Pro, but I'd never recieved an Email about the problem. She wasn't in power to make an exception. It can't be true that i paid a lot of money, for a product that can't barely stand on its own feets, Apple didn't tell me that the product I was about to buy, would restart every 5 minute. and now when  they know the problem, they wont repair it? it just don't make sense for me. If a car seller discovers that all the brakes in a car he had sold, will crash after some years he will call all the cars back to repair no mater what. i just don't understand how Apple will make good service for their custumers, by extending the warranty from 2 to 3 years, but wont take the computers there is a little bit to old, 4 months will make the difference. i can't believe it.
    What can i do now? 
    best regards Oskar

  • Problems after updating to 11.1.3.8 on Windows 8.1 Pro

    Hi,
    After updating my iTunes to the latest version 11.1.3.8 under Windows 8.1 Pro, iTunes in opening fine, but once I start trying to access the Store or my account or to run a diagnostic, iTunes shutts down and the windows message appears advising that a problem occurred on this program and same will be shutt down.
    Has somebody faced same problem? Any solution for it?Thanks

    bman 58, it did help, thank you. I battled this problem for over a month and your solution solved it. Previous recommendations (including two genius bar visits) to uninstall/reinstall iTunes lead to more problems, including iTunes failing to open with an error stating "iTunes cannot open 'itunes library.itl' because it was created with a more recent version of iTunes." Other forum posts to uninstall and reinstall Adobe Flash and Java got iTunes back to opening, but again crashing when trying to access the store. Copying the QTMovieWin.dll file put iTunes back to rights.

  • PaintComponent method refuses to be invoked.

    Hello All!
    I have a problem with graphics representation by swing. Namely I have an application based on Jframe object. It includes three Jpanel components. I need to map information from Jtable as diagram in the plotPanel. That�s code fragment I try to use:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.JComponent.*;
    import java.lang.*;
    import java.io.*;
    * @author  Administrator
    public class ROC extends javax.swing.JFrame{
    public ROC() {
            initComponents();
    /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        private void initComponents() {
            menuPanel = new javax.swing.JPanel();
            openButton = new javax.swing.JButton();
            tablePanel = new javax.swing.JPanel();
            pointsTable = new javax.swing.JTable();
            generateButton = new javax.swing.JButton();
            plotPanel = new javax.swing.JPanel();
            plotPanel.add(new PlotArea(), java.awt.BorderLayout.CENTER);
    ������ //This is a piece of code to initialize other components
            plotPanel.setLayout(new java.awt.BorderLayout());
            plotPanel.setBackground(java.awt.Color.white);
            plotPanel.setPreferredSize(new java.awt.Dimension(600, 380));
            plotPanel.setDebugGraphicsOptions(javax.swing.DebugGraphics.NONE_OPTION);
            plotPanel.addContainerListener(new java.awt.event.ContainerAdapter() {
                public void componentAdded(java.awt.event.ContainerEvent evt) {
                    plotPanelComponentAdded(evt);
            getContentPane().add(plotPanel, java.awt.BorderLayout.CENTER);
            pack();
    ������  // Different functions (such as loading data from the file to JTable i.e.)
           public static void main(String args[]) {
            System.out.println("Application starts");
            new ROC().show();
        // Variables declaration - do not modify
        private javax.swing.JPanel menuPanel;
        private javax.swing.JButton openButton;
        private javax.swing.JPanel tablePanel;
        private javax.swing.JTable pointsTable;
        private javax.swing.JButton generateButton;
        private javax.swing.JPanel plotPanel;
        // End of variables declaration
    public class PlotArea extends javax.swing.JComponent{
        /** Creates new plotPanel */
        public PlotArea() {
            System.out.println("PlotArea has been created");
            setPreferredSize(new java.awt.Dimension(600, 380));
            setMinimumSize(new java.awt.Dimension(200, 100));
            super.setBorder(BorderFactory.createLineBorder(Color.red, 5));
            repaint();
        public void paintComponent(java.awt.Graphics g) {
            System.out.println("PaintComponent method has been invoked");
            Graphics2D g2d = (Graphics2D)g;
    ������ // this is the code to implement custom painting
    }The trouble is that PaintComponent method hasn�t been invoked. Help me please. What should I do to cause PaintComponent to be performed?

    You might want to ensure your "plotPanel" uses a BorderLayout if you're specifying a constraint:
    plotPanel = new javax.swing.JPanel(new BorderLayout());
    plotPanel.add(new PlotArea(), java.awt.BorderLayout.CENTER);You shouldn't need to call "repaint" in the constructor of PlotArea, either. I doubt it'll make any difference.
    Hope this helps.

Maybe you are looking for