Coloca tudo no mesmo JPanel da imagem que funciona. Em 14 de julho de 2011 11:10, Matheus Henrique Klem Galvez < [email protected]> escreveu:
> O problema é que quando adicionam-se painéis em cima do ImagePanel a cor do > painel fica por cima da imagem. > > Resolvemos isso colocando todos os painéis que se adicionam ao imagePanel > como transparentes chamando o método: > > panel.setOpaque(false); > > Em 14 de julho de 2011 07:01, Lucian Sturião <[email protected]>escreveu: > > drawComponent não funciona. Eu tinha tentando charmar paintComponent (antes >> e depois de drawGraphics), mas não funcionou. Chamando antes não acontece >> nada (porque a imagem é desenhada depois), e chamando depois a tela fica >> "limpa", como se não tivesse nada lá. >> >> >> 2011/7/13 erick najjar <[email protected]> >> >>> tentem chamar a super dentro da função sobreescrita >>> >>> public void paintComponent(Graphics g){ >>> super.drawComponent(g); >>> >>> . . . >>> >>> } >>> >>> >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Comp 2 - Geral" group. >>> To post to this group, send email to [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]. >>> For more options, visit this group at >>> http://groups.google.com/group/comp2-geral?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Comp 2 - Geral" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/comp2-geral?hl=en. >> > > > > -- > ___________________________________ > *"Se, a princípio, a ideia não é absurda, então não há esperança para > ela." Albert Einstein :D * > ___________________________________ > > > -- > You received this message because you are subscribed to the Google Groups > "Comp 2 - Geral" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/comp2-geral?hl=en. > -- Atenciosamente, Mayara Morais dos Santos, Graduanda em Ciência da Computação - UFRJ -- You received this message because you are subscribed to the Google Groups "Comp 2 - Geral" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/comp2-geral?hl=en.
