Cyberpunkgothic1 on 28/8/2012 at 17:49
Everything okay, but I still have the described problem with drawing.
Cyberpunkgothic1 on 2/9/2012 at 20:52
I uploaded the last developer preview and a screenshot of the first finished tab of Rickenbacker to (
www.ShockCfg.org).
There is still a Problem with RickenbackerMainEN. I can't draw in it. Everytime the german drawings are loaded. May be I did a mistake while loading the surface in Rickenbacker?
Can't see here a solution and don't have heared something from Al_B.
There are 3 more bugs, if anyone finds a solution please post the right codesnippets.
Cyberpunkgothic1 on 3/9/2012 at 16:24
Al_B has found the solution.
Thank you!
There remain 3 other little bugs. May be anyone has the solutions?
For the problem that the titlebar of rickenbacker isn't shown in green/black I have tried to copy over the code from xerxes from:
JFrame.setDefaultLookAndFeelDecorated(true);
until:
vonbraunPanel.setOpaque(true);
but this doesn't helped?
Edit:
This problem remains.
I have copyed the bugs over into the TODO.
Here is what is to do until the final release of 3.03.01:
- Icon.
- Rickenbacker.
- When the language is changed in xerxes the savebutton don't changes its text.
- The Buttons of the save and abort dialoges in xerxes don't show in the right color.
- The titlebar of rickenbacker don't showes in the right colors.
- The Icon isn't loaded.
Please help with the 2 Colores sheme of Xerxes and let me say, that Xerxes works now correct without Errors.
Cyberpunkgothic1 on 9/9/2012 at 11:30
I have just changed the colors for the titlebar in rickenbackker.
There is still the problem, that the ImageIcon isn't loaded?
And the problem with the Botton of the Dialoges in xerxes, they don't have a green border?
Cyberpunkgothic1 on 15/9/2012 at 10:03
I got a problem with MouseClicked. It don't works?
Cope snippet:
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
import javax.swing.*;
public class RickenbackerMainDE extends JPanel implements MouseListener
{
private static final long serialVersionUID = 1L;
private int x = 30;
private int y = 30;
private Double xx = 30.0;
private Double yy = 30.0;
private boolean joy=false;
private GeneralPath gp;
public void paintComponent(Graphics g)
{
super.paintComponent(g);
// Füllen des Hintergrundes mit der default color
g.setColor(Color.BLACK);
g.fillRect(0, 0, this.getWidth(), this.getHeight());
final Graphics2D g2 = (Graphics2D)g;
SetRes setres = new SetRes();
g2.setColor(Color.GREEN);
g2.setFont(new Font("Luicidan", Font.PLAIN, 11));
g2.drawString(setres.getTxt().getString("MainPaneJoy"), x, y);
gp = new GeneralPath();
gp.moveTo(x-5, y-5);
gp.lineTo(x-10, y-5);
gp.lineTo(x-10, y+35);
gp.lineTo(x+119, y+35);
gp.lineTo(x+119, y-5);
gp.lineTo(x+42, y-5);
g2.draw(gp);
g2.drawRect(x, y+11, 8, 8);
if(joy)
g2.fillOval(x+1, y+12, 6, 6);
g2.drawString(setres.getTxt().getString("MainJoy"), x+13, y+20);
addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if(e.getX()<=30 && e.getX()>=50 && e.getY()<=41 && e.getY()>=51)
{
if(joy)
{
joy = false;
g2.setColor(Color.BLACK);
g2.fillOval(x+1, y+12, 6, 6);
}
else
{
joy = true;
g2.setColor(Color.GREEN);
g2.fillOval(x+1, y+12, 6, 6);
}
repaint();
}
}
});
}
@Override
public void mouseClicked(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseEntered(MouseEvent arg0) {
// TODO Auto-generated method stub
}
@Override
public void mouseExited(MouseEvent arg0) {
// TODO Auto-generated method stub
}
Al_B on 15/9/2012 at 17:02
Ummm... Why are you adding a mouse listener with a click event when you already have overridden the mouse click event in your panel class?
Cyberpunkgothic1 on 16/9/2012 at 04:55
yes this is true, but doing it this way is wrong.
Running_Wild on 22/9/2012 at 08:07
Quote Posted by Ir0NiXdark
yes it needs java, because I love this language and want to learn something about it. If I would put some compiled exe on my page, some hackers could hack it! I think only the source code is the best solution. but I don't want discuss about hackers, I'm not interested in that. give me two weeks, and I will come back with a lot questions.
They could hack your source code and bytecode is easy to decompile. Much easier than a binary .exe. Just food for thought.