⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 miukono8.java

📁 查看效果之前。连接一下数据源。数据源名称为"miukou"。后效果会更佳。 解压密码www.21codes.com,一定升级到最新版[WinRAR3.5]才能正常解压
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
				{
					for(int j=i*14;j<197;j++)
					{
						g3[j].setVisible(true);
					}
				}
					repaint();
			}
		}
//;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
		if(e.getSource()==b1)
		{
			kkk();
			b11.setVisible(true);
			b12.setVisible(true);
			b0.setVisible(false);
			g0.setVisible(false);
			t1.setVisible(false);
			t2.setVisible(false);
			if(h2==true)
			{
				for(int i=0;i<197;i++)
					g3[i].setVisible(false);
				for(int i=0;i<197/14+1;i++)
					bb1[i].setVisible(false);
			}
			if(h4==true)
			{
				for(int i=0;i<1235;i++)
					g5[i].setVisible(false);
			}
			if(h3==true)
			{
				for(int i=0;i<243;i++)
				{
					g4[i].setVisible(false);
				}
				for(int i=0;i<243/14+1;i++)
				{
					bb2[i].setVisible(false);
				}
			}
			h1=true;
			h2=false;
			h3=false;
			mu1();
		}
		for (int i=0;i<(230/7+1) ;i++ )
		{
			if(e.getSource()==bb[i]&&h1==true)
			{
				u=i;
				o=i;
				for(int p=0;p<230;p++)
				{
					g[p].setVisible(false);
					g1[p].setVisible(false);
				}
				if(230>i*7+7)
				{
					for(int j=i*7;j<i*7+7;j++)
					{
						g[j].setVisible(true);
						g1[j].setVisible(true);
					}
				}
				else
				{
					for(int j=i*7;j<230;j++)
					{
						g[j].setVisible(true);
						g1[j].setVisible(true);
					}
				}
					repaint();
			}
		}
		if(e.getSource()==b11&&h1==true)
		{
				for(int p=0;p<230;p++)
				{
					g[p].setVisible(false);
					g1[p].setVisible(false);
				}
			if(u==0)
				u=0;
			else
				u=u-1;
					for(int j=u*7;j<u*7+7;j++)
					{
						g[j].setVisible(true);
						g1[j].setVisible(true);
					}
					o=u;
		}
		if(e.getSource()==b12&&h1==true)
		{
				for(int p=0;p<230;p++)
				{
					g[p].setVisible(false);
					g1[p].setVisible(false);
				}
			if(o==32)
				o=32;
			else
				o=o+1;
			if(o==32)
			{
				for (int j=o*7; j<230;j++ )
				{
					g[j].setVisible(true);
					g1[j].setVisible(true);
				}
			}
			else
			{
				for (int j=o*7; j<o*7+7;j++ )
				{
					g[j].setVisible(true);
					g1[j].setVisible(true);
				}
			}
			u=o;
		}
//666666666666------------------------==============================================================
		if(e.getSource()==b3)
		{
			b11.setVisible(true);
			b12.setVisible(true);
			kkk();
			b0.setVisible(false);
			g0.setVisible(false);
			t1.setVisible(false);
			t2.setVisible(false);
			if(h4==true)
			{
				for(int i=0;i<1235;i++)
					g5[i].setVisible(false);
			}
			if(h1==true)
			{
				for(int i=0;i<230;i++)
				{
					g[i].setVisible(false);
					g1[i].setVisible(false);
				}
				for(int i=0;i<33;i++)
				{
					bb[i].setVisible(false);
				}
			}
			if(h2==true)
			{
				for(int i=0;i<197;i++)
				{
					g3[i].setVisible(false);
				}
				for(int i=0;i<15;i++)
				{
					bb1[i].setVisible(false);
				}
			}
			int h=0,k=32,l=112;
			h1=false;
			h2=false;
			h3=true;
			for (int i=0;i<243 ;i++ )
			{
				if(k>=310)
				{
					k=32;
				}
				g4[i]=new Label();
				g4[i].setBounds(112,k,340,20);
				if(i%2==1)
				g4[i].setBackground(Color.green);
				else
				g4[i].setBackground(Color.orange);
				if(i<15)
				{
				g4[i].setVisible(true);
				}
				else
				{
				g4[i].setVisible(false);
				}
				add(g4[i]);
				g4[i].setText(s4[i]);
				k=k+21;
			}
			for(int i=0;i<18;i++)
			{
				int tt=300/(168/20+1)+3;
				if(i>8)
				{
				l=112+(i-9)*(tt+2);
				bb2[i]=new Button(""+(1+i));
				bb2[i].setBounds(l,347,tt+1,20);
				if(i%2==0)
				bb2[i].setBackground(Color.orange);
				else
				bb2[i].setBackground(c1);
				bb2[i].setVisible(true);
				bb2[i].addActionListener(this);
				add(bb2[i]);
				}
				else
				{
				bb2[i]=new Button(""+(1+i));
				bb2[i].setBounds(l,326,tt+1,20);
				if(i%2==0)
				bb2[i].setBackground(Color.orange);
				else
				bb2[i].setBackground(c1);
				bb2[i].setVisible(true);
				bb2[i].addActionListener(this);
				add(bb2[i]);
				l=l+tt+2;
				}
			}
		}

		for (int i=0;i<18 ;i++ )
		{
			if(e.getSource()==bb2[i]&&h3==true)
			{
				u=i;
				o=i;
				for(int p=0;p<243;p++)
				{
					g4[p].setVisible(false);
				}
				if(243>i*14+14)
				{
					for(int j=i*14;j<i*14+14;j++)
					{
						g4[j].setVisible(true);
					}
				}
				else
				{
					for(int j=i*14;j<243;j++)
					{
						g4[j].setVisible(true);
					}
				}
					repaint();
			}
		}
		if(e.getSource()==b11&&h3==true)
		{
				for(int p=0;p<243;p++)
				{
					g4[p].setVisible(false);
				}
			if(u==0)
				u=0;
			else
				u=u-1;
					for(int j=u*14;j<u*14+14;j++)
					{
						g4[j].setVisible(true);
					}
					o=u;
		}
		if(e.getSource()==b12&&h3==true)
		{
				for(int p=0;p<243;p++)
				{
					g4[p].setVisible(false);
				}
			if(o==17)
				o=17;
			else
				o=o+1;
			if(o==17)
			{
				for (int j=o*14; j<243;j++ )
				{
					g4[j].setVisible(true);
				}
			}
			else
			{
				for (int j=o*14; j<o*14+14;j++ )
				{
					g4[j].setVisible(true);
				}
			}
			u=o;
		}
/////////////////////////////////0000000000000000000000000000000000000000000000000000000000000000000
		if(e.getSource()==b11&&h2==true)
		{
				for(int p=0;p<197;p++)
				{
					g3[p].setVisible(false);
				}
			if(u==0)
				u=0;
			else
				u=u-1;
					for(int j=u*14;j<u*14+14;j++)
					{
						g3[j].setVisible(true);
					}
					o=u;
		}
		if(e.getSource()==b12&&h2==true)
		{
				for(int p=0;p<197;p++)
				{
					g3[p].setVisible(false);
				}
			if(o==14)
				o=14;
			else
				o=o+1;
			if(o==14)
			{
				for (int j=o*14; j<197;j++ )
				{
					g3[j].setVisible(true);
				}
			}
			else
			{
				for (int j=o*14; j<o*14+14;j++ )
				{
					g3[j].setVisible(true);
				}
			}
			u=o;
		}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@~~~~~~~~~~~~~~~~~~~~~~~~~~
		if(e.getSource()==b4)
		{
			kkk();
			b11.setVisible(true);
			b12.setVisible(true);
			b0.setVisible(true);
			g0.setVisible(true);
			t1.setVisible(true);
			t2.setVisible(true);
			if(h1==true)
			{
				for(int i=0;i<230;i++)
				{
					g[i].setVisible(false);
					g1[i].setVisible(false);
				}
				for(int i=0;i<33;i++)
				{
					bb[i].setVisible(false);
				}
			}
			if(h2==true)
			{
				for(int i=0;i<197;i++)
					g3[i].setVisible(false);
				for(int i=0;i<197/14+1;i++)
					bb1[i].setVisible(false);
			}
			if(h3==true)
			{
				for(int i=0;i<243;i++)
					g4[i].setVisible(false);
				for(int i=0;i<18;i++)
					bb2[i].setVisible(false);
			}
			int k=32,l=112,r=326;
			h1=false;
			h2=false;
			h3=false;
			h4=true;
			for (int i=0;i<1235;i++ )
			{
				if(k>=310)
				{
					k=32;
				}
				g5[i]=new Label();
				g5[i].setBounds(112,k,340,20);
				if(i%2==1)
				g5[i].setBackground(Color.green);
				else
				g5[i].setBackground(Color.orange);
				if(i<15)
				{
				g5[i].setVisible(true);
				}
				else
				{
				g5[i].setVisible(false);
				}
				add(g5[i]);
				g5[i].setText(s5[i]);
				k=k+21;
			}
		}
		if(e.getSource()==b0)
		{
			if(t1.getText().trim().equals(""))
			{
				ok o=new ok("页数不能为空");
				o.setBackground(c1);
				o.b1.setBackground(c1);
				o.setVisible(true);
			}
			else
			{
				nn=Integer.parseInt(t1.getText().trim())-1;
				for(int p=0;p<243;p++)
				{
					g5[p].setVisible(false);
				}
				if(nn>89)
				{
					nn=89;
				}
				if(nn<0)
				{
					nn=0;
				}
				u=nn;o=nn;
				if(1235>nn*14+14)
				{
					for(int j=nn*14;j<nn*14+14;j++)
					{
						g5[j].setVisible(true);
					}
				}
				else
				{
					for(int j=nn*14;j<1235;j++)
					{
						g5[j].setVisible(true);
					}
				}
					repaint();
					t1.setText("");
			}
		}
		if(e.getSource()==b11&&h4==true)
		{
				for(int p=0;p<1235;p++)
				{
					g5[p].setVisible(false);
				}
			if(u==0)
				u=0;
			else
				u=u-1;
					for(int j=u*14;j<u*14+14;j++)
					{
						g5[j].setVisible(true);
					}
					o=u;
		}
		if(e.getSource()==b12&&h4==true)
		{
				for(int p=0;p<1235;p++)
				{
					g5[p].setVisible(false);
				}
			if(o==88)
				o=88;
			else
				o=o+1;
			if(o==88)
			{
				for (int j=o*14; j<1235;j++ )
				{
					g5[j].setVisible(true);
				}
			}
			else
			{
				for (int j=o*14; j<o*14+14;j++ )
				{
					g5[j].setVisible(true);
				}
			}
			u=o;
		}
		if(e.getSource()==b9)
		{
			miuko0 f = new miuko0();
			f.setVisible(true);
			setVisible(false);
		}
		if(e.getSource()==b10)
		{
			miukook y=new miukook("确定要推出吗");
			y.setBackground(c3);
			y.b1.setBackground(c3);
			y.b2.setBackground(c3);
			y.setLocation(375,260);
			y.setVisible(true);
		}
		if(e.getSource()==b20)
		{
			q1.setText("");
			q2.setText("");
			q3.setText("");
			q4.setText("");
			q5.setText("");
			q6.setText("");
			q7.setText("");
		}
		if(e.getSource()==b21&&qy1==true)
		{
			if(q2.getText().trim().equals(""))
			{
				ok o=new ok("请正确填写单词");
				o.setBackground(c2);
				o.b1.setBackground(c2);
				o.setLocation(400,250);
				o.setVisible(true);
			}
			else if(q3.getText().trim().equals(""))
			{
				ok o=new ok("所改单词必须要有一个意思");
				o.setBackground(c2);
				o.b1.setBackground(c2);
				o.setLocation(400,250);
				o.setVisible(true);
			}
			else
			{
				char ch[]=new char[q2.getText().trim().length()];
				char ch1[]=new char[q3.getText().trim().length()];
				boolean bg=true,bg1=true;
				for(int i=0;i<q2.getText().trim().length();i++)
				{
					ch[i]=q2.getText().trim().charAt(i);
				}
				for(int i=0;i<q2.getText().trim().length();i++)
				{
					if(ch[i]<'a'&&ch[i]>'Z'||ch[i]>'z'||ch[i]<'A')
					{
						ok o=new ok(ch[i]+"不是合法的字母");
						o.setBackground(c2);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -